mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
why qwen always error with ANY model #749
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 @dwlinn on GitHub (Oct 24, 2025).
Self Checks
Dify version
1.9.2
Cloud or Self Hosted
Cloud
Steps to reproduce
The model plugin of Tongyi Qianwen has a high probability of encountering various errors when selecting any model, resulting in failure to call. Downgrading to an older version of the plugin also causes errors, and adding a new API key may also lead to errors. What exactly is the reason?
✔️ Expected Behavior
qianwen model running normally.
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Oct 24, 2025):
Hi @dwlinn! I'm Dosu and I’m helping the dify team.
The "Incorrect model credentials provided" error with the Qwen (Tongyi Qianwen) plugin in Dify is usually caused by how the plugin handles API keys and credentials. The plugin expects the API key to be present and correctly formatted (typically starting with
sk-), and it uses this key for all Qwen models. If the key is missing, malformed, or the endpoint is misconfigured, you'll get this error for any model you select.A recurring bug is that some plugin versions try to access the API key using dot notation (
credentials.dashscope_api_key) instead of dictionary key access (credentials['dashscope_api_key']). This can break authentication, especially when memory is enabled or in certain agent node scenarios. Downgrading the plugin sometimes helps, but not always—especially if the bug is present in both old and new versions. The robust fix is to patch the plugin code so all credential access uses dictionary keys, or to ensure credentials are always normalized before use. See more details and user reports here.Other common causes: network issues (especially in cloud environments), plugin installation failures, or missing required fields in the plugin manifest/schema. Make sure your API key matches the expected provider config, the endpoint (domestic/international) is correct, and the plugin version is compatible with your Dify version (for Qwen3, you need plugin v0.0.19+). If you update the plugin or config and still see the error, check backend logs for more details and confirm that Dify can reach the Tongyi API endpoints.
If you need a workaround, try disabling memory, switching agent strategies, or using a different plugin version (some users report v0.0.18 works). For persistent issues, patching the plugin credential logic is the most reliable solution. More troubleshooting tips and config advice are available here and here.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@dosubot[bot] commented on GitHub (Oct 24, 2025):
The errors you're seeing with the Tongyi Qianwen (Qwen) model plugin—such as "Incorrect model credentials provided" and "Invalid API-key provided"—are likely due to authentication or API key handling issues in the plugin. Recent updates in Dify addressed problems with model list refresh and authentication state when changing credentials, which could impact how plugins like Qwen validate and use API keys. If you're on version 1.9.2 cloud, these fixes may not be present yet, or there could be a compatibility issue between the plugin and the platform's credential management logic. See the relevant merged pull requests for details: model list refresh on credential change and plugin authentication/data source refresh.
If updating credentials or downgrading the plugin doesn't resolve the issue, it's likely a systemic bug or incompatibility. Double-check that your API key is valid and has the correct permissions, and consider whether a platform update or patch is needed to pick up these recent fixes.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@crazywoola commented on GitHub (Oct 29, 2025):
@dosu List all tongyi related issues with the link
@dosubot[bot] commented on GitHub (Oct 29, 2025):
Here are all Tongyi (Qianwen/Qwen) related issues in the dify-official-plugins repository:
For related discussions:
qwen-omni-turbo-2025-01-19modelTo reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
