mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-23 18:45:45 -04:00
OpenAI Tools plugin is not using base URL value entered for authentication #909
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 @202472150920 on GitHub (Dec 27, 2025).
Self Checks
Dify version
Version1.11.2
Plugin version
0.1.2
Cloud or Self Hosted
Cloud
Steps to reproduce
I found 2 issue about this bug: #1984 & #1326 , specially in #1984 , yuki-js had provide solutions, but it still not fixed in Version1.11.2.
dify-official-plugins/tools/openai/provider/openai.py
✔️ Error log
@dosubot[bot] commented on GitHub (Dec 27, 2025):
Hi @202472150920! I'm Dosu and I’m helping the dify-official-plugins team.
The OpenAI Tools plugin in Dify v1.11.2 (plugin v0.1.2) does not use the custom base URL you enter for authentication. The code only passes the API key to the OpenAI client and ignores the base_url parameter, so custom endpoints like ChatAnywhere are not supported for authentication or validation right now. This is a known issue and is why you still see the 401 Unauthorized error even with the correct key and base URL. There are no official fixes or workarounds in the latest release, and no recent pull requests address this bug. For now, using custom OpenAI-compatible endpoints with this plugin is not possible without a code change.
See code reference
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other