mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
issue: OLLAMA_BASE_URL being passed as OLLAMA_API_BASE_URL #4538
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 @deboboy on GitHub (Mar 23, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20 - 2025-03-05
Ollama Version (if applicable)
0.6.3
Operating System
Ubuntu
Browser (if applicable)
Chromium 133
Confirmation
README.md.Expected Behavior
Actual Behavior
Steps to Reproduce
Logs & Screenshots
Browser console shows this error:
Failed to load resource: the server responded with a status of 404 (Not Found) - /ollama/api/pull/0:1
Further inspection of the browser console shows this specific line in ollama/index.ts where the API call is failing:
const res = await fetch(
${OLLAMA_API_BASE_URL}/api/pull${urlIdx !== null ?/${urlIdx}: ''}, {Yet here's my Docker compose YML setting the Ollama BASE URL correctly:
Create docker-compose directory and file
mkdir -p /opt/ollama
cat > /opt/ollama/docker-compose.yml <<'COMPOSE'
version: '3.8'
services:
ollama:
container_name: ollama
image: ollama/ollama:latest
restart: always
ports:
- "127.0.0.1:11434:11434"
volumes:
- ollama:/root/.ollama
openwebui:
container_name: open-webui
image: ghcr.io/open-webui/open-webui:ollama
restart: always
ports:
- "127.0.0.1:3000:8080"
environment:
- OLLAMA_BASE_URL=http://ollama:11434
volumes:
- ollama:/root/.ollama
- open-webui:/app/backend/data
depends_on:
- ollama
volumes:
ollama:
driver: local
open-webui:
driver: local
COMPOSE
Additional Information
No response
@tjbck commented on GitHub (Mar 23, 2025):
Intended behaviour.