Gemini models are broken in 1.0.0 #8820

Closed
opened 2026-02-21 18:27:54 -05:00 by yindo · 16 comments
Owner

Originally created by @mjp0 on GitHub (Mar 1, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Upgrade to 1.0.0
  2. Notice all previous model configs have disappeared
  3. Install Gemini plugin
  4. Try to use Gemini 2 Pro 1205 in a flow

✔️ Expected Behavior

I was expecting it to work as it did before 1.0.0.

Actual Behavior

Image
Originally created by @mjp0 on GitHub (Mar 1, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Upgrade to 1.0.0 2. Notice all previous model configs have disappeared 3. Install Gemini plugin 4. Try to use Gemini 2 Pro 1205 in a flow ### ✔️ Expected Behavior I was expecting it to work as it did before 1.0.0. ### ❌ Actual Behavior <img width="377" alt="Image" src="https://github.com/user-attachments/assets/d223e006-fd3a-457d-b6f9-5a94cd8447ee" />
yindo added the 🐞 bug label 2026-02-21 18:27:54 -05:00
yindo closed this issue 2026-02-21 18:27:54 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 1, 2025):

@mjp0 Hello there! I'm here to help you with any bugs, questions, or contributions you have for the Dify project. Let me know how I can assist you!

The 404 Bad Request Error you're encountering with the Gemini 2 Pro 1205 model in Dify version 1.0.0 is due to Dify attempting to validate your API key using the deprecated 'gemini-pro' model. Although your API key is valid, the validation fails because of this deprecated model check. As a temporary workaround, you can specify the model as 'gemini-1.5-pro-latest' instead of 'gemini-pro'. A permanent fix has been submitted via PR #324 in the dify-official-plugins repository and will be available in an upcoming version [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 1, 2025): <!-- Greeting --> @mjp0 Hello there! I'm here to help you with any bugs, questions, or contributions you have for the Dify project. Let me know how I can assist you! <!-- Answer --> The 404 Bad Request Error you're encountering with the Gemini 2 Pro 1205 model in Dify version 1.0.0 is due to Dify attempting to validate your API key using the deprecated 'gemini-pro' model. Although your API key is valid, the validation fails because of this deprecated model check. As a temporary workaround, you can specify the model as 'gemini-1.5-pro-latest' instead of 'gemini-pro'. A permanent fix has been submitted via PR #324 in the dify-official-plugins repository and will be available in an upcoming version <sup>[[1]](https://github.com/langgenius/dify/issues/14352)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/d8a2dcbe-58ce-484d-b747-bbd2af0592bc?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/d8a2dcbe-58ce-484d-b747-bbd2af0592bc?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/d8a2dcbe-58ce-484d-b747-bbd2af0592bc?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/d8a2dcbe-58ce-484d-b747-bbd2af0592bc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d8a2dcbe-58ce-484d-b747-bbd2af0592bc?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/d8a2dcbe-58ce-484d-b747-bbd2af0592bc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d8a2dcbe-58ce-484d-b747-bbd2af0592bc?feedback_type=other)</sup>
Author
Owner

@fdb02983rhy commented on GitHub (Mar 1, 2025):

Upgrade the plugin ver should fix this.

@fdb02983rhy commented on GitHub (Mar 1, 2025): Upgrade the plugin ver should fix this.
Author
Owner

@jerry-udensi commented on GitHub (Mar 1, 2025):

Upgrade the plugin ver should fix this.

How do I upgrade a plugin?

@jerry-udensi commented on GitHub (Mar 1, 2025): > Upgrade the plugin ver should fix this. How do I upgrade a plugin?
Author
Owner

@fdb02983rhy commented on GitHub (Mar 1, 2025):

Upgrade the plugin ver should fix this.

How do I upgrade a plugin?

You will see a update button here if there are new version avaliable.
Image

@fdb02983rhy commented on GitHub (Mar 1, 2025): > > Upgrade the plugin ver should fix this. > > How do I upgrade a plugin? You will see a update button here if there are new version avaliable. <img width="1863" alt="Image" src="https://github.com/user-attachments/assets/c7bcfcaf-d8ca-4145-b22d-ae5aa772c809" />
Author
Owner

@jerry-udensi commented on GitHub (Mar 1, 2025):

I'm already on 0.0.5 and still having the same issue.

I think I should just downgrade my Dify version back to 0.15.3

@jerry-udensi commented on GitHub (Mar 1, 2025): I'm already on 0.0.5 and still having the same issue. I think I should just downgrade my Dify version back to 0.15.3
Author
Owner

@fdb02983rhy commented on GitHub (Mar 1, 2025):

I'm already on 0.0.5 and still having the same issue.

I think I should just downgrade my Dify version back to 0.15.3

Try use the debug mode if you can, its a quick fix if you can see the log.

@fdb02983rhy commented on GitHub (Mar 1, 2025): > I'm already on 0.0.5 and still having the same issue. > > I think I should just downgrade my Dify version back to 0.15.3 Try use the debug mode if you can, its a quick fix if you can see the log.
Author
Owner

@shelltea commented on GitHub (Mar 1, 2025):

Encountering the same issue, after enabling DEBUG, the error log of the api component is as follows:

2025-03-02 01:28:37.595 DEBUG [Dummy-12] [based_generate_task_pipeline.py:45] - error: [models] Bad Request Error, 404 models/gemini-2.0-flash-thinking-exp-0121 is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.
@shelltea commented on GitHub (Mar 1, 2025): Encountering the same issue, after enabling DEBUG, the error log of the api component is as follows: ``` 2025-03-02 01:28:37.595 DEBUG [Dummy-12] [based_generate_task_pipeline.py:45] - error: [models] Bad Request Error, 404 models/gemini-2.0-flash-thinking-exp-0121 is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods. ```
Author
Owner

@DeepDarkBoy48 commented on GitHub (Mar 1, 2025):

No need to downgrade the Dify back to 0.15.3. Downgrading the gemini plugin version to v4.0.0 will fix this.

@DeepDarkBoy48 commented on GitHub (Mar 1, 2025): No need to downgrade the Dify back to 0.15.3. Downgrading the gemini plugin version to v4.0.0 will fix this.
Author
Owner

@hjlarry commented on GitHub (Mar 1, 2025):

it's fixed in this PR https://github.com/langgenius/dify-official-plugins/pull/324
please wait for it merged

@hjlarry commented on GitHub (Mar 1, 2025): it's fixed in this PR https://github.com/langgenius/dify-official-plugins/pull/324 please wait for it merged
Author
Owner

@mjp0 commented on GitHub (Mar 2, 2025):

it's fixed in this PR langgenius/dify-official-plugins#324 please wait for it merged

Installed 0.0.6, still broken for me. Same error. 0.0.4 works.

@mjp0 commented on GitHub (Mar 2, 2025): > it's fixed in this PR [langgenius/dify-official-plugins#324](https://github.com/langgenius/dify-official-plugins/pull/324) please wait for it merged Installed 0.0.6, still broken for me. Same error. 0.0.4 works.
Author
Owner

@fdb02983rhy commented on GitHub (Mar 2, 2025):

it's fixed in this PR langgenius/dify-official-plugins#324 please wait for it merged

I guess you need to modify the ver to 0.0.7. There are already a 0.0.6.

@fdb02983rhy commented on GitHub (Mar 2, 2025): > it's fixed in this PR [langgenius/dify-official-plugins#324](https://github.com/langgenius/dify-official-plugins/pull/324) please wait for it merged I guess you need to modify the ver to 0.0.7. There are already a 0.0.6.
Author
Owner

@hjlarry commented on GitHub (Mar 2, 2025):

I guess you need to modify the ver to 0.0.7. There are already a 0.0.6.

thanks, I changed it to 0.0.7

@hjlarry commented on GitHub (Mar 2, 2025): > > I guess you need to modify the ver to 0.0.7. There are already a 0.0.6. thanks, I changed it to 0.0.7
Author
Owner

@hjlarry commented on GitHub (Mar 2, 2025):

Installed 0.0.6, still broken for me. Same error. 0.0.4 works.

0.0.6 is another PR, please wait for 0.0.7

@hjlarry commented on GitHub (Mar 2, 2025): > > Installed 0.0.6, still broken for me. Same error. 0.0.4 works. 0.0.6 is another PR, please wait for 0.0.7
Author
Owner

@rion-x-coffee commented on GitHub (Mar 2, 2025):

I also fix it and add some latest models the var to 0.0.7 in PR langgenius/dify-official-plugins#356.
Please wait for it checked and merged.

note:
If 0.07 is still broken after released, it's probably due to google's genai library update.
(So it should be fixed the var to 0.0.8)

@rion-x-coffee commented on GitHub (Mar 2, 2025): I also fix it and add some latest models the var to 0.0.7 in PR langgenius/dify-official-plugins#356. Please wait for it checked and merged. note: If 0.07 is still broken after released, it's probably due to google's genai library update. (So it should be fixed the var to 0.0.8) - [https://ai.google.dev/gemini-api/docs/migrate](url) - [https://github.com/google-gemini/generative-ai-python](url) - [https://github.com/googleapis/python-genai](url)
Author
Owner

@fakers777 commented on GitHub (Mar 4, 2025):

how to fix in 0.15.3

@fakers777 commented on GitHub (Mar 4, 2025): how to fix in 0.15.3
Author
Owner

@rion-x-coffee commented on GitHub (Mar 4, 2025):

I recommend you to upgrade your Dify version to 1.0.0, because repository that manages LLM model providers ware changed form ver. 1.0.0.
LLM model providers ware managed in langgenius/dify repo before ver.1.0.0, but they have managed in langgenius/dify-official-plugins repo since that version.

more details: https://github.com/langgenius/dify-official-plugins?tab=readme-ov-file#introduction

@rion-x-coffee commented on GitHub (Mar 4, 2025): I recommend you to upgrade your Dify version to 1.0.0, because repository that manages LLM model providers ware changed form ver. 1.0.0. LLM model providers ware managed in langgenius/dify repo before ver.1.0.0, but they have managed in langgenius/dify-official-plugins repo since that version. more details: https://github.com/langgenius/dify-official-plugins?tab=readme-ov-file#introduction
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8820