mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[OpenRouter] Fix: Improve compatibility for Gemini 3 series models #880
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 @zhangtony239 on GitHub (Dec 18, 2025).
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
The OpenRouter provider currently has some Gemini 3 support, but it's "half-broken" and inconsistent. I've waited for a month for a proper update, but since the integration is still not fully functional, I'm going to take over and fix it myself.
If the OpenRouter team is already planning this or working on it, please feel free to take over anytime!
2. Additional context or comments
No response
3. Can you help us with this feature?
@dosubot[bot] commented on GitHub (Dec 18, 2025):
Hi @zhangtony239! I'm Dosu and I’m helping the dify-official-plugins team.
You're right that Gemini 3 support in the OpenRouter provider is currently incomplete. While the model definition for Gemini 3 Pro Preview exists, it doesn't expose key Gemini 3-specific parameters like
thinking_levelandmedia_resolution, which are available in other providers (such as Vertex AI and the Gemini plugin). The Python implementation (llm.py) also lacks logic to handle these new parameters and advanced multimodal features, which explains the "half-broken" experience you described. For example, the OpenRouter provider'sIMAGE_GENERATION_MODELSset doesn't include Gemini 3 models, limiting vision/multimodal support, and the request payload isn't adjusted for Gemini 3-specific features as it is in other plugins citation.Recent PRs in other plugins (like Vertex AI and Gemini) have added full Gemini 3 support, including these parameters and improved multimodal handling citation citation. You can use these as references for your implementation. To improve compatibility, update the Gemini 3 model YAML to include the missing parameters, and extend the Python logic to map and forward them in the request payload. Testing should cover both text and multimodal inputs, and you may want to add defensive checks for missing or malformed responses, as seen in recent fixes for related plugins.
There is no evidence that maintainers are actively working on a full fix for Gemini 3 in OpenRouter, so your contribution would be valuable. If you need code pointers or want to discuss implementation details, let me know!
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@zhangtony239 commented on GitHub (Dec 18, 2025):
Related PR(#2282) is currently in progress.
@dosubot[bot] commented on GitHub (Jan 3, 2026):
Hi, @zhangtony239. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!