[GH-ISSUE #11906] issue: ollama route does not behave like Ollama in case of errors (wrong JSON field used to provide details) #55066

Closed
opened 2026-05-05 17:06:00 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @csware on GitHub (Mar 20, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11906

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

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

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

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

  1. Use The /ollama route e.g. to do a chat
  2. Request a non available model to be used.

Logs & Screenshots

not applicable

Additional Information

No response

Originally created by @csware on GitHub (Mar 20, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/11906 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### 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 - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### 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 1. Use The /ollama route e.g. to do a chat 2. Request a non available model to be used. ### Logs & Screenshots not applicable ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-05 17:06:00 -05:00
Author
Owner

@tjbck commented on GitHub (Mar 20, 2025):

Intended behaviour, however, PR welcome.

<!-- gh-comment-id:2741621250 --> @tjbck commented on GitHub (Mar 20, 2025): Intended behaviour, however, PR welcome.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#55066