[GH-ISSUE #20340] issue: Model Presets send undefined as model ID, causing 404/400 errors #34686

Closed
opened 2026-04-25 08:47:14 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @peetuhr on GitHub (Jan 2, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20340

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.43

Ollama Version (if applicable)

0.13.5

Operating System

Windows 11

Browser (if applicable)

Arc 1.85.1.3

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

Selecting a Model Preset should send the configured base model ID to the backend and generate a response.

Actual Behavior

When using a Model Preset, the model ID is sent as undefined to the backend, resulting in "model not found" errors (404 from OpenRouter, 400 from Ollama).

Direct model selection from the dropdown works perfectly with the same models.

Steps to Reproduce

  1. Existing Open WebUI installation via Docker Compose
  2. Configure OpenRouter connection in Admin Settings > Connections (or Ollama)
  3. Navigate to Workspace > Models > Create New Model
  4. Select any base model from dropdown (e.g., anthropic/claude-sonnet-4)
  5. Save the preset
  6. Start a new chat
  7. Select the preset from the model dropdown
  8. Send any message
  9. Expected: Response from model
  10. Actual: "Model not found" error (404/400)

Logs & Screenshots

Browser Network Tab:
Requests show ?id=undefined parameter:

GET /api/v1/models/model/profile/image?id=undefined

Docker Container Logs:

GET /api/v1/models/model/profile/image?id=undefined&lang=en-US HTTP/1.1" 200

No relevant JavaScript errors in console

Additional Information

Environment Variables

  - OLLAMA_BASE_URL=http://host.docker.internal:11434
  - ENABLE_ADMIN_CHAT_ACCESS=False
  - ENABLE_ADMIN_EXPORT=False
  - SHOW_ADMIN_DETAILS=False
  - ENABLE_PUBLIC_ACTIVE_USERS_COUNT=False
  - USER_PERMISSIONS_WORKSPACE_MODELS_ACCESS=True
  - USER_PERMISSIONS_WORKSPACE_KNOWLEDGE_ACCESS=True
  - USER_PERMISSIONS_WORKSPACE_PROMPTS_ACCESS=True
  - USER_PERMISSIONS_WORKSPACE_TOOLS_ACCESS=True
  - UVICORN_WORKERS=4
  - REDIS_URL=redis://redis:6379/0
  - WEBSOCKET_MANAGER=redis
  - WEBSOCKET_REDIS_URL=redis://redis:6379/0
  - ENABLE_WEBSOCKET_SUPPORT=True
  - WEBUI_SECRET_KEY=[redacted]
  • Direct model selection works fine
  • Both OpenRouter and Ollama models affected
  • Possibly related to #20329 (also involves undefined references)
Originally created by @peetuhr on GitHub (Jan 2, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20340 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.43 ### Ollama Version (if applicable) 0.13.5 ### Operating System Windows 11 ### Browser (if applicable) Arc 1.85.1.3 ### 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 Selecting a Model Preset should send the configured base model ID to the backend and generate a response. ### Actual Behavior When using a Model Preset, the model ID is sent as `undefined` to the backend, resulting in "model not found" errors (404 from OpenRouter, 400 from Ollama). Direct model selection from the dropdown works perfectly with the same models. ### Steps to Reproduce 1. Existing Open WebUI installation via Docker Compose 2. Configure OpenRouter connection in Admin Settings > Connections (or Ollama) 3. Navigate to Workspace > Models > Create New Model 4. Select any base model from dropdown (e.g., `anthropic/claude-sonnet-4`) 5. Save the preset 6. Start a new chat 7. Select the preset from the model dropdown 8. Send any message 9. **Expected:** Response from model 10. **Actual:** "Model not found" error (404/400) ### Logs & Screenshots **Browser Network Tab:** Requests show `?id=undefined` parameter: ``` GET /api/v1/models/model/profile/image?id=undefined ``` **Docker Container Logs:** ``` GET /api/v1/models/model/profile/image?id=undefined&lang=en-US HTTP/1.1" 200 ``` No relevant JavaScript errors in console ### Additional Information ### Environment Variables - OLLAMA_BASE_URL=http://host.docker.internal:11434 - ENABLE_ADMIN_CHAT_ACCESS=False - ENABLE_ADMIN_EXPORT=False - SHOW_ADMIN_DETAILS=False - ENABLE_PUBLIC_ACTIVE_USERS_COUNT=False - USER_PERMISSIONS_WORKSPACE_MODELS_ACCESS=True - USER_PERMISSIONS_WORKSPACE_KNOWLEDGE_ACCESS=True - USER_PERMISSIONS_WORKSPACE_PROMPTS_ACCESS=True - USER_PERMISSIONS_WORKSPACE_TOOLS_ACCESS=True - UVICORN_WORKERS=4 - REDIS_URL=redis://redis:6379/0 - WEBSOCKET_MANAGER=redis - WEBSOCKET_REDIS_URL=redis://redis:6379/0 - ENABLE_WEBSOCKET_SUPPORT=True - WEBUI_SECRET_KEY=[redacted] - Direct model selection works fine - Both OpenRouter and Ollama models affected - Possibly related to #20329 (also involves `undefined` references)
GiteaMirror added the bugconfirmed issue labels 2026-04-25 08:47:14 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Jan 2, 2026):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #19711 issue: Editing function for models broken
    by skleffmann • Dec 03, 2025 • bug

  2. #19899 issue: openrouter Models not showing up in the model selection list.
    by AZComputerSolutions • Dec 12, 2025 • bug

  3. #19549 issue: usage model setting becomes unticked when model is changed
    by YetheSamartaka • Nov 27, 2025 • bug

  4. #19755 issue: Error: 404, message='Not Found', url='http://ollama:11434/api/embed'
    by stevewillett • Dec 04, 2025 • bug

  5. #19606 issue: Error while deleting download/installed models.
    by malvarez00 • Nov 30, 2025 • bug

Show 5 more related issues
  1. #19788 issue: Every time I update OWUI my model get deleted
    by M4th12 • Dec 06, 2025 • bug

  2. #19194 issue: Prefix ID doesn't reliably show up in model names.
    by MicahZoltu • Nov 15, 2025 • bug

  3. #16255 issue: 404: Model not found
    by wade3po • Aug 04, 2025 • bug

  4. #19604 issue: Cannot create a custom model or edit a custom model because base model list is empty
    by blazejp83 • Nov 30, 2025 • bug

  5. #15930 issue: GET /models 404 Not Found
    by latel • Jul 22, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3706299788 --> @owui-terminator[bot] commented on GitHub (Jan 2, 2026): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#19711](https://github.com/open-webui/open-webui/issues/19711) **issue: Editing function for models broken** *by skleffmann • Dec 03, 2025 • `bug`* 2. [#19899](https://github.com/open-webui/open-webui/issues/19899) **issue: openrouter Models not showing up in the model selection list.** *by AZComputerSolutions • Dec 12, 2025 • `bug`* 3. [#19549](https://github.com/open-webui/open-webui/issues/19549) **issue: usage model setting becomes unticked when model is changed** *by YetheSamartaka • Nov 27, 2025 • `bug`* 4. [#19755](https://github.com/open-webui/open-webui/issues/19755) **issue: Error: 404, message='Not Found', url='http://ollama:11434/api/embed'** *by stevewillett • Dec 04, 2025 • `bug`* 5. [#19606](https://github.com/open-webui/open-webui/issues/19606) **issue: Error while deleting download/installed models.** *by malvarez00 • Nov 30, 2025 • `bug`* <details> <summary>Show 5 more related issues</summary> 6. [#19788](https://github.com/open-webui/open-webui/issues/19788) **issue: Every time I update OWUI my model get deleted** *by M4th12 • Dec 06, 2025 • `bug`* 7. [#19194](https://github.com/open-webui/open-webui/issues/19194) **issue: Prefix ID doesn't reliably show up in model names.** *by MicahZoltu • Nov 15, 2025 • `bug`* 8. [#16255](https://github.com/open-webui/open-webui/issues/16255) **issue: 404: Model not found** *by wade3po • Aug 04, 2025 • `bug`* 9. [#19604](https://github.com/open-webui/open-webui/issues/19604) **issue: Cannot create a custom model or edit a custom model because base model list is empty** *by blazejp83 • Nov 30, 2025 • `bug`* 10. [#15930](https://github.com/open-webui/open-webui/issues/15930) **issue: GET /models 404 Not Found** *by latel • Jul 22, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Author
Owner

@silentoplayz commented on GitHub (Jan 3, 2026):

I can confirm I am able to reproduce this issue on the latest dev with both an Ollama API and an OpenAI API connection set up in the admin Connections settings menu. https://github.com/open-webui/open-webui/pull/20333 does not solve it upon testing.

Image Image Image
<!-- gh-comment-id:3706648389 --> @silentoplayz commented on GitHub (Jan 3, 2026): I can confirm I am able to reproduce this issue on the latest `dev` with both an Ollama API and an OpenAI API connection set up in the admin `Connections` settings menu. https://github.com/open-webui/open-webui/pull/20333 does not solve it upon testing. <img width="610" height="263" alt="Image" src="https://github.com/user-attachments/assets/ba8cbde2-8fec-49a9-bde0-4afadca168c0" /> <img width="2290" height="957" alt="Image" src="https://github.com/user-attachments/assets/b791a2e5-9f02-4cd9-a0ca-a3774d8c99de" /> <img width="2290" height="957" alt="Image" src="https://github.com/user-attachments/assets/3d9ce269-36a1-4eee-a246-483260584f3b" />
Author
Owner

@tjbck commented on GitHub (Jan 4, 2026):

Should be addressed in dev.

<!-- gh-comment-id:3708541568 --> @tjbck commented on GitHub (Jan 4, 2026): Should be addressed in dev.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#34686