mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
gemini api add error!!! #594
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 @Vampxgg on GitHub (Aug 27, 2025).
Self Checks
Dify version
1.7.2
Plugin version
0.5.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
2025-08-27 04:14:44.073 DEBUG [Dummy-33] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002
2025-08-27 04:14:44.091 DEBUG [Dummy-33] [connectionpool.py:544] - http://plugin_daemon:5002 "GET /plugin/72305e0d-3ec5-4ff1-871b-3f11ee2f754a/management/models?page=1&page_size=256 HTTP/1.1" 200 None
2025-08-27 04:14:44.230 DEBUG [Dummy-33] [opendal_storage.py:52] - file privkeys/72305e0d-3ec5-4ff1-871b-3f11ee2f754a/private.pem loaded
2025-08-27 04:14:44.352 DEBUG [Dummy-33] [connectionpool.py:241] - Starting new HTTP connection (1): plugin_daemon:5002
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Aug 27, 2025):
The most common cause of Gemini API add errors in Dify is that the platform tries to validate your API key using the deprecated
gemini-promodel, which is no longer supported by Google's API and results in a 404 error. To fix this, make sure you select a supported Gemini model such asgemini-1.5-pro-latest,gemini-2.0-flash, orgemini-1.5-flashwhen configuring the integration. You can use thelist_models()function from the Google Generative AI Python library to check which models your API key supports [source].Recent updates to the Gemini plugin (now at version 0.5.1) added filtering for unsupported document types and improved memory handling, which helps prevent errors during file uploads [source]. Also, the credentials validation method was updated to use a direct API call with
genai.Client, and the default model for validation is nowgemini-2.5-flash[source].If you still see errors, double-check that your API key is valid, your Dify and Gemini plugin versions are up to date, and you are not trying to upload unsupported document types. If possible, provide the exact error message you see when saving the Gemini API configuration—this will help pinpoint the issue faster.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@crazywoola commented on GitHub (Aug 27, 2025):
I didn't see any useful logs here. Afaik, the can be added successfully.