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.45k stars 286 forks source link

typo #566

Open noddler123 opened 1 week ago

noddler123 commented 1 week 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 week 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.