mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #16349] issue: API of OpenWebUI not in OpenAI compatible format #17869
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 @jsivu on GitHub (Aug 7, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16349
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.18
Ollama Version (if applicable)
No response
Operating System
Rocky Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
My OpenWebUI instance is running on http://192.168.254.42:8080. For an open ai compatible endpoint the endpoint post http://192.168.254.42:8080/v1/chat/completions should return the chat completion. Generally the api works but only with curl -X POST http://192.168.254.42:8080/api/chat/completions, so without the v1. For connecting OpenWebUI with services that expect OpenAI compatible Endpoints, that's really a problem.
Actual Behavior
That's the output for the call
curl -X POST http://192.168.254.42:8080/api/v1/chat/completions
-H "Content-Type: application/json"
-H "Authorization: Bearer sk-123 (real API KEY hidden)" \
-d '{
"model": "coding-assistent",
"messages": [
{
"role": "user",
"content": "Wie kann ich eine SQL-Abfrage schreiben, um alle Benutzer aus einer Datenbank zu selektieren?"
}
]
}'
{"detail":"Method Not Allowed"}%
Steps to Reproduce
Logs & Screenshots
Logs from the OpenWebUI container 2025-08-07 10:51:45.957 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 192.168.200.125:51757 - "GET /api/v1/chats/?page=2 HTTP/1.1" 200 - {}
2025-08-07 10:51:45.967 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 192.168.200.125:51757 - "GET /api/v1/folders/ HTTP/1.1" 200 - {}
2025-08-07 10:51:47.458 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.20.200.134:54983 - "POST /api/v1/chat/completions HTTP/1.1" 405 - {}
Additional Information
No response