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.62k stars 322 forks source link

typo #566

Closed noddler123 closed 1 month ago

noddler123 commented 2 months ago

Description of the bug:

https://github.com/google-gemini/generative-ai-python/blob/4f42118d3d4daf9addc1c18f7d6895f7cd74087d/google/generativeai/answer.py#L269

No response

Actual vs expected behavior:

contents not content as in example?

Any other information you'd like to share?

No response

gmKeshari commented 1 month ago

Hi @noddler123. In line 269 'content' is pointing to a single instance. But, In example 'contents' is part of the function definition which expects multiple content chunks.

github-actions[bot] commented 1 month 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 month ago

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