mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 16:28:32 -05:00
[GH-ISSUE #11906] issue: ollama route does not behave like Ollama in case of errors (wrong JSON field used to provide details) #87140
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 @csware on GitHub (Mar 20, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11906
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
0.6.2
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The API should return a JSON object with the "error" field filled with the error message such as
{"error":"model \"doesnotexist:1gogol\" not found, try pulling it first"}. The problem is that this is not specified currently in the Ollama API documentation (cf. https://github.com/ollama/ollama/issues/9905).Actual Behavior
The API returns a JSON object with the "detail" field filled with the error message such as
{"detail":"Model 'doesnotexist:1gogol' was not found"}.Steps to Reproduce
Logs & Screenshots
not applicable
Additional Information
No response
@tjbck commented on GitHub (Mar 20, 2025):
Intended behaviour, however, PR welcome.