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:
...
saveSessionSelectedModels ['ol.deepseek-r1:1.5b'] ["ol.deepseek-r1:1.5b"]
RichTextInput.svelte:160 [tiptap warn]: Duplicate extension names found: ['codeBlock']. This can lead to issues.
...
Chat.svelte:1395 modelId ol.deepseek-r1:1.5b
index.ts:312
POST https://XXXXXXX/api/chat/completions 400 (Bad Request)
Chat.svelte:1593 404: Ollama: 404, message='Not Found', url='http://ollama:11434/api/chat'
Chat.svelte:1602 null
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:**
- [X] I have read and followed all the instructions provided in the README.md.
- [X] I am on 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 provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
## 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:**
```
...
saveSessionSelectedModels ['ol.deepseek-r1:1.5b'] ["ol.deepseek-r1:1.5b"]
RichTextInput.svelte:160 [tiptap warn]: Duplicate extension names found: ['codeBlock']. This can lead to issues.
...
Chat.svelte:1395 modelId ol.deepseek-r1:1.5b
index.ts:312
POST https://XXXXXXX/api/chat/completions 400 (Bad Request)
Chat.svelte:1593 404: Ollama: 404, message='Not Found', url='http://ollama:11434/api/chat'
Chat.svelte:1602 null
```
**Docker Container Logs:**
```│ open-webui INFO: 192.168.77.117:0 - "POST /api/chat/completions HTTP/1.1" 400 Bad Request```
ollama:
```│ [GIN] 2025/01/23 - 18:41:35 | 404 | 960.433µs | 10.1.105.139 | POST "/api/chat"```
**Screenshots/Screen Recordings (if applicable):**

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 @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.