mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #15124] issue: API returns "405 Method Not Allowed" on /v1/chat/completions #33005
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 @chisel900 on GitHub (Jun 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15124
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.15
Ollama Version (if applicable)
v0.9.1
Operating System
Windows 11 pro
Browser (if applicable)
any
Confirmation
README.md.Expected Behavior
I am running the latest OpenWebUI container on Docker for Windows 11, with Ollama running as a native Windows application.
Actual Behavior
Note: Unnecessary use of -X or --request, POST is already inferred.
< HTTP/1.1 405 Method Not Allowed
< date: Wed, 18 Jun 2025 14:08:59 GMT
< server: uvicorn
< content-length: 31
< content-type: application/json
< x-process-time: 0
Steps to Reproduce
curl -v -X POST http://192.168.1.25:3000/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer ****MY API KEY ***" -d "{"model": "llama3:latest", "messages": [{"role": "user", "content": "This is a direct API test."}]}"
Logs & Screenshots
Additional Information
No response
@tjbck commented on GitHub (Jun 18, 2025):
/v1/chat/completionis not a valid endpoint,/api/chat/completionis probably what you're after.@chisel900 commented on GitHub (Jun 18, 2025):
Tried that one as well and get "Method not allowed" .....

@DarkSession commented on GitHub (Jun 22, 2025):
The endpoint is wrong. It's /api/chat/completions (with an s at the end).