You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logged in as Weights & Biases user: michael-erasmus.
View Weave data at https://wandb.ai/chesscom/repro-error/weave
Error creating call:
Traceback (most recent call last):
File "/Users/michaelerasmus/.pyenv/versions/3.10.13/envs/venv-chess.com-weave-repro/lib/python3.10/site-packages/weave/trace/op.py", line 444, in _do_call
call = _create_call(op, *args, __weave=__weave, **kwargs)
File "/Users/michaelerasmus/.pyenv/versions/3.10.13/envs/venv-chess.com-weave-repro/lib/python3.10/site-packages/weave/trace/op.py", line 259, in _create_call
return client.create_call(
File "/Users/michaelerasmus/.pyenv/versions/3.10.13/envs/venv-chess.com-weave-repro/lib/python3.10/site-packages/weave/trace/trace_sentry.py", line 204, in wrapper
return func(*args, **kwargs)
File "/Users/michaelerasmus/.pyenv/versions/3.10.13/envs/venv-chess.com-weave-repro/lib/python3.10/site-packages/weave/trace/weave_client.py", line 766, in create_call
inputs_redacted = redact_sensitive_keys(inputs)
File "/Users/michaelerasmus/.pyenv/versions/3.10.13/envs/venv-chess.com-weave-repro/lib/python3.10/site-packages/weave/trace/weave_client.py", line 1654, in redact_sensitive_keys
dict_res[k] = redact_sensitive_keys(v)
File "/Users/michaelerasmus/.pyenv/versions/3.10.13/envs/venv-chess.com-weave-repro/lib/python3.10/site-packages/weave/trace/weave_client.py", line 1651, in redact_sensitive_keys
if should_redact(k):
File "/Users/michaelerasmus/.pyenv/versions/3.10.13/envs/venv-chess.com-weave-repro/lib/python3.10/site-packages/weave/trace/sanitize.py", line 11, in should_redact
return key.lower() in REDACT_KEYS
AttributeError: 'HarmCategory' object has no attribute 'lower'
(subsequent messages of this type will be suppressed)
Hello! How can I help you today?
🍩 https://wandb.ai/chesscom/repro-error/r/call/0194526d-983e-7691-bc38-2850e3d2fc94
It seems like the code assumes that the keys will be strings when they're not.
The text was updated successfully, but these errors were encountered:
I'm using google-cloud-aiplatform with weave and running into the error
'HarmCategory' object has no attribute 'lower
when specifyingsafety_settings
Here's a minimal reproducible example:
Install dependencies
$ pip install weave google-cloud-aiplatform
Then create a
run.py
file like this:Then run
This results in the error:
It seems like the code assumes that the keys will be strings when they're not.
The text was updated successfully, but these errors were encountered: