mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #8836] ollama API connection fails when prefix id is set #15282
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 @neerax on GitHub (Jan 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8836
Bug Report
Installation Method
Kubernetes/Helm chart https://helm.openwebui.com/
Environment
Open WebUI Version: [dev]
Ollama (if applicable): [0.5.7-0-ga420a45-dirty]
Browser (if applicable): [Chrome/Firefox]
Confirmation:
Expected Behavior:
Start chatting without errors by using a prefix ID to avoid conflicts with other connections.
Actual Behavior:
404: Ollama: 404, message='Not Found', url='http://ollama:11434/api/chat'Description
Setting a prefix in the Ollama connection and attempting to chat results in the following error:
404: Ollama: 404, message='Not Found', url='http://ollama:11434/api/chat'Editing the connection and removing the prefix ID resolves the issue.
Bug Summary:
ollama API connection fails when prefix id is set
Reproduction Details
Steps to Reproduce:
Add an Ollama connection and set a prefix ID, then start a chat.
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
│ open-webui INFO: 192.168.77.117:0 - "POST /api/chat/completions HTTP/1.1" 400 Bad Requestollama:
│ [GIN] 2025/01/23 - 18:41:35 | 404 | 960.433µs | 10.1.105.139 | POST "/api/chat"Screenshots/Screen Recordings (if applicable):
@tjbck commented on GitHub (Jan 23, 2025):
Should be fixed with
bb45d35a36in dev!@neerax commented on GitHub (Jan 23, 2025):
Confirmed, it works, thanks.