mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
issue: NameError: name 'api_config' is not defined in /ollama/api/embed Route (Versions > v0.6.5) #5070
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 @pranitl on GitHub (May 6, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.5
Ollama Version (if applicable)
No response
Operating System
MacOS Sequoia 15.4.1
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The /ollama/api/embed request should be successfully proxied to the Ollama backend, and the Ollama backend's response (embeddings or an error from Ollama itself) should be returned to the client with a 2xx status code.
Actual Behavior
When a POST request is made to the /ollama/api/embed endpoint (proxied by OpenWebUI), OpenWebUI returns a 500 Internal Server Error. The OpenWebUI server logs show a NameError: name 'api_config' is not defined occurring within its internal routing logic for this specific endpoint.
OpenWebUI returns a 500 Internal Server Error due to an internal NameError.
Relevant Server Log Snippet (from OpenWebUI when the error occurs):
Steps to Reproduce
Here is a curl command:
@tjbck commented on GitHub (May 6, 2025):
Already addressed in dev, 0.6.7 imminent.