mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-09 23:35:09 -05:00
issue: #6062
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 @Sawrz on GitHub (Aug 12, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.22
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04 runs behind Docker
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
According to src/lib/apis/models/index.ts I should be able to create, delete and update my agents/models/personas via the API.
Actual Behavior
It doesn't happen, however. I get a 405 error once I try to create a model. If I search for a model, I get the webpage.
api/model and api/model/base works.
Steps to Reproduce
Call {my_url}/api/models/create with or without the body
Error 405
{my_url}/api/models/model?id={model_id}
Returns webpage
Logs & Screenshots
models/create
2025-08-12T18:28:53.497307431Z 2025-08-12 18:28:53.497 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:50772 - "GET / HTTP/1.1" 200
2025-08-12T18:28:53.541643333Z 2025-08-12 18:28:53.541 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.68.243.83:0 - "POST /api/models/create HTTP/1.1" 405
2025-08-12T18:28:53.638677463Z 2025-08-12 18:28:53.638 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.68.243.83:0 - "GET /_app/version.json HTTP/1.1" 304
2025-08-12T18:28:58.533764588Z 2025-08-12 18:28:58.533 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:35828 - "GET / HTTP/1.1" 200
models/model
2025-08-12T18:30:03.987144595Z 2025-08-12 18:30:03.987 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:53906 - "GET / HTTP/1.1" 200
2025-08-12T18:30:06.402782275Z 2025-08-12 18:30:06.402 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.68.243.83:0 - "POST /api/models/model?id=sage-openstack-martinez HTTP/1.1" 405
2025-08-12T18:30:09.019359388Z 2025-08-12 18:30:09.019 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:37532 - "GET / HTTP/1.1" 200
2025-08-12T18:30:12.876397841Z 2025-08-12 18:30:12.876 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 162.158.134.5:0 - "GET /api/models/model?id=sage-openstack-martinez HTTP/1.1" 200
2025-08-12T18:30:14.061875527Z 2025-08-12 18:30:14.061 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:37544 - "GET / HTTP/1.1" 200
models
2025-08-12T18:31:04.411861729Z 2025-08-12 18:31:04.411 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:50038 - "GET / HTTP/1.1" 200
2025-08-12T18:31:07.253366175Z 2025-08-12 18:31:07.253 | INFO | open_webui.routers.openai:get_all_models:397 - get_all_models()
2025-08-12T18:31:07.262283689Z 2025-08-12 18:31:07.262 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 162.158.134.9:0 - "GET /api/models HTTP/1.1" 200
Additional Information
No response