CANNOT set the openai api key and url using api from third-party provider #6855

Closed
opened 2026-02-21 18:17:37 -05:00 by yindo · 2 comments
Owner

Originally created by @WSDzju on GitHub (Nov 20, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.11.2

Cloud or Self Hosted

Cloud

Steps to reproduce

when setting the openai api key and url using api from third-party provider on the openai model setting page, a long error code comes up.
image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @WSDzju on GitHub (Nov 20, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.11.2 ### Cloud or Self Hosted Cloud ### Steps to reproduce when setting the openai api key and url using api from third-party provider on the openai model setting page, a long error code comes up. ![image](https://github.com/user-attachments/assets/4d586587-aa68-46e4-a45b-4abeec8c3a41) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:17:37 -05:00
yindo closed this issue 2026-02-21 18:17:37 -05:00
Author
Owner

@crazywoola commented on GitHub (Nov 20, 2024):

The openai provider is meant to use official keys. If you have 3rd party keys, please use openai compatiable provider instead, we will not fix those incompatible issues in this provider.

@crazywoola commented on GitHub (Nov 20, 2024): The openai provider is meant to use official keys. If you have 3rd party keys, please use openai compatiable provider instead, we will not fix those incompatible issues in this provider.
Author
Owner

@WSDzju commented on GitHub (Nov 20, 2024):

The openai provider is meant to use official keys. If you have 3rd party keys, please use openai compatiable provider instead, we will not fix those incompatible issues in this provider.

previously, it works. just replacing the offical api url can make it work. I thought this is a typical practice when using openai api

@WSDzju commented on GitHub (Nov 20, 2024): > The openai provider is meant to use official keys. If you have 3rd party keys, please use openai compatiable provider instead, we will not fix those incompatible issues in this provider. previously, it works. just replacing the offical api url can make it work. I thought this is a typical practice when using openai api
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6855