mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-22 16:44:06 -05:00
[GH-ISSUE #3489] /ollama/v1/chat/completions endpoint broke (405 Method Not Allowed) in v0.3.6 #28812
Reference in New Issue
Block a user
Originally created by @kobaltz on GitHub (Jun 28, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3489
Bug Report
Description
Bug Summary:
Making a HTTP POST to /ollama/v1/chat/completions worked in v0.3.5 but now returns 405 - Method not allowed
Steps to Reproduce:
Using the docker compose file which at the time was referencing v0.3.6, I was unable to make API calls to the Chat Completion
Reverting the open webui image to v0.3.5 and the POST works as expected.
Expected Behavior:
HTTP POST to /ollama/v1/chat/completions returns the JSON response
Actual Behavior:
405 Method Not Allowed when making HTTP POST to /ollama/v1/chat/completions
Environment
Open WebUI Version: main (and v0.3.6)
Ollama (if applicable): latest (and 0.1.47)
Operating System: Debian Bookworm
Browser (if applicable): n/a
Reproduction Details
Confirmation:
Logs and Screenshots
Docker Container Logs:
Installation Method
Docker Compose
@debemdeboas commented on GitHub (Jun 28, 2024):
Seeing this here as well.
Also seeing a
TypeError: signup() missing 1 required positional argument: 'form_data'.Going back to v0.3.5 fixes things.
@justinh-rahb commented on GitHub (Jun 28, 2024):
Can you share the exact cURL command you've used to test, as well as additional browser dev console logs, maybe some more backend logs as well to help us out.
@kobaltz commented on GitHub (Jun 28, 2024):
Here's the cURL command.
But, if I change the docker compose file to
v0.3.5and run the same command, I getSince I'm using just the cURL command, there isn't any additional logs as the docker container logas are just saying that the method isn't allowed. Maybe there is a debug ENV var I could add to get a more verbose output?
@abishekmuthian commented on GitHub (Jun 29, 2024):
I'm getting
Method Not Allowedfordeepseek-coder-v2:latestmodel in v0.3.6. Other models work fine.INFO: 127.0.0.1:41212 - "POST /ollama/api/chat HTTP/1.1" 405 Method Not Allowed@oleksii-davydchuk commented on GitHub (Jun 29, 2024):
I'm getting
Method Not Allowedfor any models in v0.3.6I used local k8s cluster, which was created with kind I got
Server connection verifiedfor the Ollama API urlollama.ollama.svc.cluster.local:11434@oleksii-davydchuk commented on GitHub (Jun 29, 2024):
Issue was resolved - there was a memory shortage and the OOM kicked in.
@tjbck commented on GitHub (Jun 29, 2024):
Fixed on dev, 0.3.7 coming soon!
@Lanhild commented on GitHub (Sep 4, 2024):
Commenting about this, I am getting an error
500with the completions endpoint:Updating ollama to
0.3.9fixed this.