[GH-ISSUE #17576] issue: Open-web UI does not support openrouter preset, with the ability to leverage a single modell, and obtain openrouter diagnostics #18333

Closed
opened 2026-04-20 00:32:52 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @omonimus1 on GitHub (Sep 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17576

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

0.6.26

Ollama Version (if applicable)

latest

Operating System

MacOS 26

Browser (if applicable)

Edge 139

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

  • From the API connection, in open Web UI, I should be able to add my open router endpoint, key and module name, to leverage a specific model served by open router, and leverage open router analytics and costs.

https://openrouter.ai/settings/presets

Image ``` import requests import json import os

url = "https://openrouter.ai/api/v1/chat/completions"
headers = {
"Authorization": f"Bearer {os.environ.get('OPENROUTER_API_KEY')}",
"Content-Type": "application/json"
}
payload = {
"model": "@preset/mental-health-support",
"messages": [
{
"role": "user",
"content": "Hello! How are you today?"
}
]
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())

or curl:

curl https://openrouter.ai/api/v1/chat/completions
-H "Authorization: Bearer $OPENROUTER_API_KEY"
-H "Content-Type: application/json"
-d '{
"model": "@preset/mental-health-support",
"messages": [
{
"role": "user",
"content": "Hello! How are you today?"
}
]
}'


open web should support the chat/completitions and does not allow me leverage my specific present, with its analytics

### Actual Behavior

- open web ui just let me set the open router key and as endpoint, it expects https://openrouter.ai/api/v1, loading JUST any given model, in the list, provided by open router (which is not the expected behavior, as I should expose, my single, unique, well defined model, defined in my preset, so manage costs and analytics, and system prompts, from open router).

### Steps to Reproduce

1. Create your open router key.
2. Create your open router preset, from: https://openrouter.ai/settings/presets
3. Obtain module name, api key from open router and try to add such connection to open web ui.

### Logs & Screenshots

<img width="1008" height="711" alt="Image" src="https://github.com/user-attachments/assets/e35c6379-61d0-48fa-870c-454c3e318ab8" />

<img width="869" height="490" alt="Image" src="https://github.com/user-attachments/assets/2400fc3a-dab9-4667-b689-abf2438c1022" />

### Additional Information

_No response_
Originally created by @omonimus1 on GitHub (Sep 18, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17576 ### 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 am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.6.26 ### Ollama Version (if applicable) latest ### Operating System MacOS 26 ### Browser (if applicable) Edge 139 ### 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 - From the API connection, in open Web UI, I should be able to add my open router endpoint, key and module name, to leverage a specific model served by open router, and leverage open router analytics and costs. https://openrouter.ai/settings/presets <img width="964" height="637" alt="Image" src="https://github.com/user-attachments/assets/3dbbae1f-b777-4524-81b7-76318eba805c" /> ``` import requests import json import os url = "https://openrouter.ai/api/v1/chat/completions" headers = { "Authorization": f"Bearer {os.environ.get('OPENROUTER_API_KEY')}", "Content-Type": "application/json" } payload = { "model": "@preset/mental-health-support", "messages": [ { "role": "user", "content": "Hello! How are you today?" } ] } response = requests.post(url, headers=headers, json=payload) print(response.json()) ``` or curl: ``` curl https://openrouter.ai/api/v1/chat/completions \ -H "Authorization: Bearer $OPENROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "@preset/mental-health-support", "messages": [ { "role": "user", "content": "Hello! How are you today?" } ] }' ``` open web should support the chat/completitions and does not allow me leverage my specific present, with its analytics ### Actual Behavior - open web ui just let me set the open router key and as endpoint, it expects https://openrouter.ai/api/v1, loading JUST any given model, in the list, provided by open router (which is not the expected behavior, as I should expose, my single, unique, well defined model, defined in my preset, so manage costs and analytics, and system prompts, from open router). ### Steps to Reproduce 1. Create your open router key. 2. Create your open router preset, from: https://openrouter.ai/settings/presets 3. Obtain module name, api key from open router and try to add such connection to open web ui. ### Logs & Screenshots <img width="1008" height="711" alt="Image" src="https://github.com/user-attachments/assets/e35c6379-61d0-48fa-870c-454c3e318ab8" /> <img width="869" height="490" alt="Image" src="https://github.com/user-attachments/assets/2400fc3a-dab9-4667-b689-abf2438c1022" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-20 00:32:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#18333