mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #15579] issue: Ask/Explain buttons in chat context do not use users OpenAI direct connections #17608
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 @wilstdu on GitHub (Jul 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15579
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.14
Ollama Version (if applicable)
No response
Operating System
macOS, Ubuntu
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
If a user has a direct connection to OpenAI-compatible service configured, it should also use that connection settings when trying to fetch any OpenAI format information.
In my case, it was only about the
AskandExplainbuttons, but there should be more places where this is a problem.Actual Behavior
Our setup:
Users create their tokens in LiteLLM and configure them in OpenWebUI - Settings - Connections - Manage Direct Connections:
Behaviour:

When trying to continue a discussion about certain points of the generated response in the chat via these buttons:
It results an error:

After setting these environment variables:
OPENAI_API_BASE_URLSOPENAI_API_KEYSIt works.
The problem with those variables is that they are set system-wide, meaning that it would need a technical user in LiteLLM, and the requests that the individual user does would go to the technical user`s bills (doesn't make sense, heh?).
Steps to Reproduce
URL - your OpenAI domain address
Key - your OpenAI API key
Logs & Screenshots
OpenWebUI logs: openwebui-problem.log
Additional Information
This is the location where the error is thrown:

The main root cause:
