Originally created by @Sawrz on GitHub (Aug 12, 2025).
Check Existing Issues
I have searched the existing issues and discussions.
I am using the latest version of Open WebUI.
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
I have read and followed all instructions in README.md.
I am using the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
I have provided every relevant configuration, setting, and environment variable used in my setup.
I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
Start with the initial platform/version/OS and dependencies used,
Specify exact install/launch/configure commands,
List URLs visited, user input (incl. example values/emails/passwords if needed),
Describe all options and toggles enabled or changed,
Include any files or environmental changes,
Identify the expected and actual result at each stage,
Ensure any reasonably skilled user can follow and hit the same issue.
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
Originally created by @Sawrz on GitHub (Aug 12, 2025).
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
### 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
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using the latest version of **both** Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.**
- [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
- [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps:
- Start with the initial platform/version/OS and dependencies used,
- Specify exact install/launch/configure commands,
- List URLs visited, user input (incl. example values/emails/passwords if needed),
- Describe all options and toggles enabled or changed,
- Include any files or environmental changes,
- Identify the expected and actual result at each stage,
- Ensure any reasonably skilled user can follow and hit the same issue.
### Expected Behavior
According to [src/lib/apis/models/index.ts](https://github.com/open-webui/open-webui/blob/main/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
1. Call {my_url}/api/models/create with or without the body
2. Error 405
1. {my_url}/api/models/model?id={model_id}
2. 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_
GiteaMirror
added the bug label 2025-11-11 16:43:40 -06:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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