Can't reach ollama => /ollama/api/api/tags #1136
-
Hi, I have a dumb trouble since I pulled newest update of open webui today (but i'm not sure the problem comes from this) I can't reach Ollama because, inside the get request, there is two /api instead of one : INFO: 192.168.186.21:50946 - "GET /openai/api/models HTTP/1.1" 200 OK In web browser console : However, I have inspected : ollamawebui/config.py : The base URL is fine ... I also looked inside ollamawebui/backend/apps/ollama/main.py : async def fetch_url(url): The url is the right one !! : http://localhost:11434/api/tags So, I don't understand where it is adding one /api ... The /api addition is happenning only for /ollama endpoints, in other cases it is fine. In my opinion, this should come from OLLAMA_BASE_URL, but looks like it is not coming from there ... Getting stuck on such a dumb thing is quite annoying, thank you for your help ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Try updating again just to be sure you've got the lastest version, and change the Docker (non-Compose method):docker rm -f open-webui
docker pull ghcr.io/open-webui/open-webui:main
<the docker run command you used previously> Docker (Compose method):docker compose down
docker pull ghcr.io/open-webui/open-webui:main
docker compose up -d Manual (direct method):cd open-webui
git pull
npm i
npm run build
cd backend
pip3 install -r requirements.txt
bash start.sh |
Beta Was this translation helpful? Give feedback.
-
You might also want to delete your browser cache just in case! |
Beta Was this translation helpful? Give feedback.
Try updating again just to be sure you've got the lastest version, and change the
OLLAMA_API_BASE_URL=http://localhost:11434/api
toOLLAMA_BASE_URL=http://localhost:11434
instead, note that the name of the variable has changed and we no longer put/api
on the end of the URL.Docker (non-Compose method):
Docker (Compose method):
Manual (direct method):