mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Unable to add Gemini token #255
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jerry-0202 on GitHub (May 6, 2025).
Self Checks
Dify version
1.3.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When adding the Gemini API, clicking the save button prompts the following message:
"404 models/gemini-pro 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."
Throughout the process, I can ensure the correctness of the API key.
✔️ Expected Behavior
Correct preservation.
❌ Actual Behavior
Error message
@QIN2DIM commented on GitHub (May 6, 2025):
@Jerry-0202 hi, What is the version of the GEMINI plugin you are using?
@Jerry-0202 commented on GitHub (May 7, 2025):
A somewhat amusing situation occurred. I followed the official tutorial to execute a local deployment and found that the version I opened was Version 0.15.3.
https://docs.dify.ai/en/getting-started/install-self-hosted/docker-compose
Then I realized that the documentation provided this:
Clone Dify
Clone the Dify source code to your local machine:
So when you mentioned the concept of plugins, I realized it might be a version issue. By default, I assumed the version I downloaded yesterday was the latest. Then I used the update commands:
After testing the API again, I found it was working normally. Thanks for reminding me about using plugins.
Everything boiled down to a version problem.