ZHO-ZHO-ZHO / ComfyUI-Gemini

Using Gemini in ComfyUI
GNU General Public License v3.0
643 stars 58 forks source link

The Gemini 1.0 Pro Vision model will be deprecated from Google AI services #31

Open ShmuelRonen opened 2 months ago

ShmuelRonen commented 2 months ago

can you add: gemini-1.5-flash

Deprecation of Gemini 1.0 Pro Vision from Google AI for Developers

The Gemini 1.0 Pro Vision model will be deprecated from Google AI services and tools as of June 12, 2024. Usage of the model in Vertex AI is not affected by this notice. What this means for you You’ll be able to use Gemini 1.0 Pro Vision until July 12, 2024. After July 12, saved prompts using Gemini 1.0 Pro Vision in Google AI Studio will switch to using Gemini 1.5 Flash. API calls that specify Gemini 1.0 Pro Vision will fail. To avoid interruptions, we encourage switching to Gemini 1.5 Flash, our next-generation model that is faster and more cost-efficient with advanced vision understanding. Update your code to call 1.5 Flash:

Old model = genai.GenerativeModel(name='gemini-pro-vision') New model = genai.GenerativeModel(name='gemini-1.5-flash’)

Please note this change does not affect the Gemini 1.0 Pro NLP model.

Thanks, The Google AI Studio team

HaoJingang commented 1 month ago

是呀,今天用不了了,快快更新呀

zhuofengli commented 1 month ago

Got the same error:

Error occurred when executing Gemini_API_S_Zho:

404 POST https://generativelanguage.googleapis.com/v1beta/models/gemini-pro-vision:generateContent?%24alt=json%3Benum-encoding%3Dint: Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash.

Can you please update it with gemini-1.5-flash?

ShmuelRonen commented 1 month ago

Got the same error:

Error occurred when executing Gemini_API_S_Zho:

404 POST https://generativelanguage.googleapis.com/v1beta/models/gemini-pro-vision:generateContent?%24alt=json%3Benum-encoding%3Dint: Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash.

Can you please update it with gemini-1.5-flash?

You can use this instead: https://github.com/ShmuelRonen/ComfyUI_Gemini_Flash

zhuofengli commented 1 month ago

Got the same error: Error occurred when executing Gemini_API_S_Zho: 404 POST https://generativelanguage.googleapis.com/v1beta/models/gemini-pro-vision:generateContent?%24alt=json%3Benum-encoding%3Dint: Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash. Can you please update it with gemini-1.5-flash?

You can use this instead: https://github.com/ShmuelRonen/ComfyUI_Gemini_Flash

It's working, thank you!