mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #17576] issue: Open-web UI does not support openrouter preset, with the ability to leverage a single modell, and obtain openrouter diagnostics #56999
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 @omonimus1 on GitHub (Sep 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17576
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.26
Ollama Version (if applicable)
latest
Operating System
MacOS 26
Browser (if applicable)
Edge 139
Confirmation
README.md.Expected Behavior
https://openrouter.ai/settings/presets
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())
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?"
}
]
}'