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.31k stars 257 forks source link

Add an image to use models/gemini-pro-vision, or switch your model to a text model. #210

Closed jun0wanan closed 6 months ago

jun0wanan commented 6 months ago

Description of the bug:

When I use the model gemini-vision-pro, I only give it the text . I will give me that bug. How can I solve it ?

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

markmcd commented 6 months ago

If you want to use text, use gemini-pro. If you want to use images, use gemini-pro-vision. You are free to switch between them as necessary.

wuhongsheng commented 2 months ago

+1