mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 08:22:50 -05:00
[GH-ISSUE #8834] [>= 0.5.5] Ollama requiring a Key for Bearer auth via header to connect is failing to load models #118591
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 @mbentley on GitHub (Jan 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8834
Installation Method
Running the docker images from
ghcr.io/open-webui/open-webuiEnvironment
Open WebUI Version: [e.g., v0.3.11]
v0.5.5andv0.5.6Ollama (if applicable): [e.g., v0.2.0, v0.1.32-rc1]
0.5.7Operating System: [e.g., Windows 10, macOS Big Sur, Ubuntu 20.04] Linux (docker images from
ghcr.io/open-webui/open-webui)Browser (if applicable): [e.g., Chrome 100.0, Firefox 98.0] n/a
Confirmation:
Expected Behavior:
I expect that the models are able to be loaded.
Actual Behavior:
The models do not load and an error is seen in the container logs:
Description
Bug Summary:
Reproduction Details
Steps to Reproduce:
Configure Ollama with nginx reverse proxy with auth using a bearer token auth header:
Happy to provide more details on this configuration, if needed.
Logs and Screenshots
I have my ollama connection pointing to my nginx instance and the key passed for the bearer auth:

Browser Console Logs:
n/a
Docker Container Logs:
When saving the connection settings dialog, the following error shows where it seems that it is not attempting to pass the bearer header when accessing the
/api/tagsendpoint.Screenshots/Screen Recordings (if applicable):
I then have no models showing on my instance with model access control disabled:
Additional Information
This worked before using 0.5.4 and earlier. If I set the API endpoint for
/api/tagsto not require auth, it seems that everything works fine but I don't think it is expected to have to do so.@tjbck commented on GitHub (Jan 23, 2025):
You might want to try the latest main!
@mbentley commented on GitHub (Jan 23, 2025):
Ah shoot, I was looking at the commits against
6c8d68b6fc/backend/open_webui/routers/ollama.pyand thought I had compared the date of that last commit to the v0.5.6 release but I apparently can't read 😆The latest
maindoes indeed fix it. Thanks for the quick reply!@mbentley commented on GitHub (Jan 23, 2025):
@tjbck - spoke too soon. the models load on the latest
mainimage but chats fail:If you would prefer that I open a new issue, I can. Rolling back to
0.5.4, chats work as expected.*edit: disregard - 0.5.7 works fine now.