mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
issue: trailing slash in OPENAI_API url isn't handled safely #6146
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 @theigel on GitHub (Aug 20, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.22
Ollama Version (if applicable)
Operating System
Ubuntu something
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
If I set up my configuration
I expect everything to work (model being detected and used), but instead I get empty list of models and nothing works.
The problem is with trailing slash in
"https://api.studio.nebius.com/v1/". If removed, everything works.I would expect https://github.com/open-webui/open-webui/blob/main/backend/open_webui/routers/openai.py#L506 to be something like
instead of
Of course, the API provider (Nebius) could also remove extra slashes and process this situation successfully, but anyway.
I assume there may be other similar places in the code. I would suggest using proper URL handling everywhere.
Actual Behavior
No available models detected. Besides, not much useful information in the logs:
Steps to Reproduce
Install a new installation with such a config. No models detected; besides, no clear explanation in the logs.
Logs & Screenshots
@tjbck commented on GitHub (Aug 21, 2025):
cd762db9bf