Qwen API Integration in Dify
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
0.15.2
Cloud or Self Hosted
Cloud
Steps to reproduce
Signed up for Alibaba Cloud and obtained an API key from https://bailian.console.alibabacloud.com/. Attempted to use the API key in Dify but it did not work. Tried creating an API key from https://bailian.console.aliyun.com/ but encountered an error. The entire interface is in Chinese, making troubleshooting difficult.
✔️ Expected Behavior
The Qwen API key should work correctly in Dify. The API key creation process should be clear and accessible in English.
❌ Actual Behavior
The API key obtained from Alibaba Cloud does not function in Dify. Unable to generate a new API key due to an error on https://bailian.console.aliyun.com/. The lack of an English interface makes it difficult to navigate and resolve the issue.
To address the issue with the Qwen API integration in Dify, here are some steps and considerations:
-
Verify API Key Format: Ensure that the API key is in the correct format expected by Dify. The error message
"Invalid Authorization header format. Expected 'Bearer <api-key>' format."suggests that the API key should be used in a specific format [1]. -
Check Configuration Settings: Make sure that the environment variables for Alibaba Cloud are correctly set in Dify. The relevant variables include
ALIYUN_OSS_ACCESS_KEYandALIYUN_OSS_SECRET_KEYamong others [2]. -
Language Support: Dify supports multiple languages, including Chinese and English. If the interface is in Chinese, you might want to switch to English if possible. Dify's localization features might help in navigating non-English interfaces [3].
-
Troubleshooting: If the API key still doesn't work, double-check the permissions and settings in the Alibaba Cloud console. Ensure that the API key has the necessary permissions to access the required services.
-
Documentation: Unfortunately, specific documentation for integrating Qwen API with Dify wasn't found, but checking the Dify documentation or code comments related to API integrations might provide additional insights.
If these steps do not resolve the issue, consider reaching out to Alibaba Cloud support for assistance with the API key generation process, especially if the interface language is a barrier.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other