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
When calling .text on the response it may fail with an AttributeError:
yaml_content = _parse_model_response(response.text)
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/google/generativeai/types/generation_types.py", line 476, in text
if candidate.finish_message:
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/proto/message.py", line 906, in __getattr__
raise AttributeError(
AttributeError: Unknown field for Candidate: finish_message. Did you mean: 'finish_reason'?
Description of the bug:
When calling
.text
on the response it may fail with anAttributeError
:Actual vs expected behavior:
No response
Any other information you'd like to share?
This appears to be lines recently changed in #527
The text was updated successfully, but these errors were encountered: