google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.19k stars 227 forks source link

Finish reason should be text not a number #371

Closed logankilpatrick closed 1 week ago

logankilpatrick commented 1 month ago

Description of the feature request:

See details reported by the user here: https://discuss.ai.google.dev/t/how-to-translate-finish-reason-4-from-generatecontentresponse-into-something-meaningful/4261

What problem are you trying to solve with this feature?

Making the response object more clear, I checked REST and it responds with the text not a number

Any other information you'd like to share?

No response

mayureshagashe2105 commented 1 month ago

340

github-actions[bot] commented 3 weeks ago

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

github-actions[bot] commented 1 week ago

This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. Thanks!