-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set openai key failed #2619
Comments
🤖 Hey @LinightKira! Long time no see, hope you've been well. Let's dive into this issue you're facing. Based on the information you've provided and the similar issues I found in the repository, it seems like the error you're encountering might be due to a misconfiguration or a connectivity issue. Here are some steps you can follow to troubleshoot this issue:
You can refer to this issue for more details. Additionally, check the connectivity to If the problem persists, could you please provide more details about the exact error message returned with the 400 status code when trying to set the OpenAI key? This could help in identifying the root cause of the issue. Regarding your question about the exact endpoint in the codebase that handles the request to set the OpenAI key, the OpenAI key is utilized within the I hope this helps! If you have any other questions or need further clarification, feel free to ask. Sources
|
Connection error means you need to have access api.openai.com |
电脑开了全局代理,访问openai 很通畅 |
@LinightKira 我也遇到这个问题,使用阿里的到通义千问正常 |
Self Checks
Dify version
0.5.7
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
报错地址: post:http://localhost/console/api/workspaces/current/model-providers/openai 无法设置openai key ,返回400 连接错误✔️ Expected Behavior
set sucess
❌ Actual Behavior
400 ,connection error
The text was updated successfully, but these errors were encountered: