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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
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.
http://localhost:3000/ollama/api/chatreturns{"detail":"Ollama: 400, message='Bad Request', url='http://host.docker.internal:11434/api/chat'"}with status code 400.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
@tjbck commented on GitHub (Jun 13, 2025):
Agreed, taking a look!
@tjbck commented on GitHub (Jun 16, 2025):
Addressed in dev!
@flange-ipb commented on GitHub (Jun 20, 2025):
Kudos! LGTM in v0.6.15.