mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
OpenRouter Plugin - Completion Mode Configuration Issue #137
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 @esuxiao on GitHub (Mar 27, 2025).
Self Checks
Dify version
1.1.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
❌ Actual Behavior
@dosubot[bot] commented on GitHub (Mar 27, 2025):
Hello, @esuxiao! I'm here to help you with any bugs, questions, or contributions you have regarding the OpenRouter plugin. I'm a bot designed to assist you while waiting for a human maintainer.
The issue you're experiencing with the OpenRouter plugin's Completion Mode reverting to 'Chat' after saving might be related to how the state of the Completion Mode is stored and retrieved. Unfortunately, I couldn't find specific details in the codebase about where the logic for saving the OpenRouter plugin's configuration settings is implemented. However, there are known issues related to configuration settings in Dify v15.0, which might be relevant to your situation. These issues have been addressed in a recent pull request (PR langgenius/dify#12463) [1].
To resolve this, you might want to check if there are any updates or patches available for your version (1.1.2) that address this issue. Additionally, reviewing the pull request mentioned might provide insights into the changes made to fix similar configuration issues.
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
@esuxiao commented on GitHub (Mar 27, 2025):
@dosu.
Description
When attempting to configure Perplexity models in the OpenRouter plugin, there is a persistent issue with the Completion Mode setting that may prevent proper model configuration and usage.
Additional Observations
Run failed: [openrouter] Error: PluginInvokeError: {"args":{},"error_type":"KeyError","message":"'choices'"}All other configuration parameters (model name, API key, max tokens, context) are correctly set
-Other models in OpenRouter (DeepSeek, Gemini, Claude series) work correctly
Environment Details
Plugin: OpenRouter
Affected Models: Perplexity series
Working Models: DeepSeek, Gemini, Claude series
@dosubot[bot] commented on GitHub (Mar 27, 2025):
The "PluginInvokeError: KeyError: 'choices'" error when configuring Perplexity models in the OpenRouter plugin is likely due to insufficient tokens in your free OpenRouter account. Upgrading to a paid account with sufficient tokens should resolve this issue [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
@backrunner commented on GitHub (Mar 28, 2025):
Same here, cannot use "google/gemini-2.5-pro-exp-03-25:free", it's completely free and I do have a paid account in OpenRouter with available credits, which is not helpful in this case
@hnrna commented on GitHub (Apr 2, 2025):
Same here, cannot use "google/gemini-2.5-pro-exp-03-25:free" and "google/gemini-2.0-pro-exp-02-05:free", it's completely free and I do have a paid account in OpenRouter with available credits.
Error information:
[openrouter] Error: PluginInvokeError: {"args":{},"error_type":"KeyError","message":"'choices'"}@dosubot[bot] commented on GitHub (Aug 20, 2025):
Hi, @esuxiao. 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!