[GH-ISSUE #14955] feat: Ollama API proxy should pass error details #56084

Closed
opened 2026-05-05 18:38:51 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @flange-ipb on GitHub (Jun 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14955

Originally assigned to: @tjbck on GitHub.

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

I tried to implement Agents using either LangChain or the OpenAI API Python library, but chose the wrong model that does not support tools (DeepSeek-R1). This was really hard to debug because the error returned by Open WebUI's Ollama proxy API is too unspecific and could be improved.

  • API call to http://localhost:3000/ollama/api/chat returns {"detail":"Ollama: 400, message='Bad Request', url='http://host.docker.internal:11434/api/chat'"} with status code 400.
  • API call directly to Ollama, http://localhost:11434/api/chat, returns {"error":"registry.ollama.ai/library/deepseek-r1:1.5b does not support tools"} with status code 400.

Desired Solution you'd like

Pass the error details from the Ollama call.

Alternatives Considered

No response

Additional Context

Open WebUI version: v0.6.14
Ollama version: 0.9.0

Originally created by @flange-ipb on GitHub (Jun 13, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/14955 Originally assigned to: @tjbck on GitHub. ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description I tried to implement Agents using either LangChain or the OpenAI API Python library, but chose the wrong model that does not support tools (DeepSeek-R1). This was really hard to debug because the error returned by Open WebUI's Ollama proxy API is too unspecific and could be improved. - API call to `http://localhost:3000/ollama/api/chat` returns `{"detail":"Ollama: 400, message='Bad Request', url='http://host.docker.internal:11434/api/chat'"}` with status code 400. - API call directly to Ollama, `http://localhost:11434/api/chat`, returns `{"error":"registry.ollama.ai/library/deepseek-r1:1.5b does not support tools"}` with status code 400. ### Desired Solution you'd like Pass the error details from the Ollama call. ### Alternatives Considered _No response_ ### Additional Context Open WebUI version: v0.6.14 Ollama version: 0.9.0
Author
Owner

@tjbck commented on GitHub (Jun 13, 2025):

Agreed, taking a look!

<!-- gh-comment-id:2970493079 --> @tjbck commented on GitHub (Jun 13, 2025): Agreed, taking a look!
Author
Owner

@tjbck commented on GitHub (Jun 16, 2025):

Addressed in dev!

<!-- gh-comment-id:2976045991 --> @tjbck commented on GitHub (Jun 16, 2025): Addressed in dev!
Author
Owner

@flange-ipb commented on GitHub (Jun 20, 2025):

Kudos! LGTM in v0.6.15.

<!-- gh-comment-id:2990261358 --> @flange-ipb commented on GitHub (Jun 20, 2025): Kudos! LGTM in v0.6.15.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#56084