Classic298
75df948f34
feat: forward client User-Agent to model backends via {{USER_AGENT}} placeholder ( #26333 )
...
Adds a {{USER_AGENT}} custom-header placeholder that relays the inbound
client's User-Agent to upstream model backends, so providers see the real
client instead of Open WebUI's internal aiohttp UA. This makes upstream
usage/cost attribution and backend telemetry possible, and is opt-in
per-connection (no global flag): admins add {{USER_AGENT}} to a connection's
custom headers in Admin > Settings > Connections.
The placeholder is sourced from the live inbound request (with a metadata
fallback for detached RAG/tool calls), so it resolves on every prompt-sending
path, not just chat completions:
- OpenAI completions, Responses API, and proxy — all route through
get_headers_and_cookies, which now passes the request into get_custom_headers.
- Anthropic Messages API (/api/v1/messages) — already covered, it delegates
to the chat completion handler.
- Ollama (/api/chat, /v1/completions, /v1/chat/completions, /v1/messages,
/v1/responses) — previously had no custom-header support at all; send_request
now applies per-connection custom headers (with templating) for every
Ollama prompt endpoint.
Custom headers are applied after the built-in user-info headers so explicit
admin-configured headers take precedence. The other existing placeholders
({{CHAT_ID}}, {{USER_ID}}, ...) now also work on the newly covered paths.
Frontend: the connection editor's Headers field is now shown for Ollama
connections too (previously gated to non-Ollama), so the placeholder can be
configured there.
Ref: open-webui/open-webui#26159
2026-06-29 05:58:19 -05:00
Timothy Jaeryang Baek
eb4eebc3ce
refac
2026-06-01 13:10:19 -07:00
Timothy Jaeryang Baek
c8f851bd2d
refac
...
Co-Authored-By: Sergey Zinchenko <sergey.zinchenko.rnd@gmail.com>
2026-05-20 00:26:22 +04:00
Timothy Jaeryang Baek
bf4f44ee9c
refac
2026-05-09 05:27:47 +09:00
Timothy Jaeryang Baek
4fe2de7864
refac
2026-05-09 01:13:16 +09:00
Timothy Jaeryang Baek
139e764b2f
refac
2026-03-23 23:39:52 -05:00
Timothy Jaeryang Baek
157ff57c40
refac
2026-03-13 16:28:01 -05:00
Shirasawa
7d45459a47
fix: keep save button spinner inline ( #22227 )
2026-03-04 13:56:49 -06:00
G30
f95cff0895
fix(ui): replace static dropdown backgrounds with transparent mapping ( #21728 )
2026-02-22 14:23:34 -06:00
Timothy Jaeryang Baek
49c36238d0
refac
2026-02-18 13:54:59 -06:00
Timothy Jaeryang Baek
ea9c58ea80
feat: experimental responses api support
2026-02-01 19:39:28 -06:00
Matthew Kusz
17bfd38696
Fix dropdown backgrounds ( #19693 )
2025-12-02 15:16:36 -05:00
Timothy Jaeryang Baek
da42850eff
enh: custom headers for external tool servers
2025-11-12 23:39:27 -05:00
Timothy Jaeryang Baek
19ba6c06dd
refac/fix: verify connection
2025-10-07 22:56:52 -05:00
Timothy Jaeryang Baek
f25b7b73b4
refac: openai additional headers support
2025-10-03 00:23:26 -05:00
Timothy Jaeryang Baek
c01255570b
chore: format
2025-09-17 11:11:46 -05:00
Timothy Jaeryang Baek
caf0a1fbb6
feat: Allow Azure OpenAI to authenticate using DefaultAzureCredential
...
Co-Authored-By: Selene Blok <20491756+selenecodes@users.noreply.github.com>
2025-09-17 11:04:47 -05:00
Timothy Jaeryang Baek
6f6412dd16
refac
2025-09-08 19:53:44 +04:00
Timothy Jaeryang Baek
2b2d123531
refac: oauth auth type in openai connection
2025-09-08 19:42:50 +04:00
Timothy Jaeryang Baek
474df5e534
refac
2025-09-08 19:18:55 +04:00
Timothy Jaeryang Baek
8a9f862701
refac
2025-09-08 19:07:00 +04:00
Timothy Jaeryang Baek
001dab0439
refac: wording
2025-09-08 18:55:57 +04:00
Timothy Jaeryang Baek
5bdd334b74
enh: azure openai toggle
2025-09-03 20:28:29 +04:00
silentoplayz
82ed9b0a97
i18n.t: updates
2025-08-13 20:15:16 -04:00
Timothy Jaeryang Baek
ffa8ad0a22
refac: azure url detection
2025-07-23 12:15:02 +04:00
Timothy Jaeryang Baek
c8e8111dd9
refac
2025-06-27 15:44:26 +04:00
Silentoplayz
d1e3940abd
refac: Spinner and XMark components
2025-06-25 18:44:45 -04:00
Sine Jespersen
33a3aed698
remove repeated classes
2025-06-13 14:42:55 +02:00
Sine Jespersen
7d8fb116b6
Use <ul and <li because the items are a list
2025-06-13 14:10:29 +02:00
Sine Jespersen
a710ea1f07
add aria label to delete button
2025-06-13 14:10:29 +02:00
Sine Jespersen
b95bc727df
add label for screen readers for model id input
2025-06-13 14:10:29 +02:00
Sine Jespersen
ba9e9e8095
add aria label to button with no label
2025-06-13 14:10:29 +02:00
Sine Jespersen
85018dd106
high contrast mode on placeholder
2025-06-13 14:10:29 +02:00
Sine Jespersen
669a9f0777
highContrastMode (for accessibility) on text color in add connection modal
2025-06-13 14:10:28 +02:00
Sine Jespersen
1160a03644
change label for url to label instead of div
2025-06-13 14:10:28 +02:00
Sine Jespersen
843810cc9f
add aria hidden to decorative svg
2025-06-13 14:10:28 +02:00
Sine Jespersen
8b5f5bb327
add label to verify connection button
2025-06-13 14:10:28 +02:00
Sine Jespersen
15efb07961
add label to toggle connection button in configure connect modal
2025-06-13 14:10:28 +02:00
Sine Jespersen
a1034a4ca3
correct classname to inputclassname as prop is named this
2025-06-13 14:10:28 +02:00
Sine Jespersen
b446bea6d1
hide decorative svg from screen readers
2025-06-12 14:37:01 +02:00
Sine Jespersen
6faa9db4a7
add aria-label to button without label
2025-06-12 14:36:44 +02:00
Sine Jespersen
2b276583c3
change div to h1, because it is the main header in the modal
2025-06-12 14:34:26 +02:00
Zyfax
e353f15a3c
fix: remove ending slash form test connection url
...
Removes the ending slash when testing openai and ollama api url.
2025-06-03 09:11:01 +02:00
Timothy Jaeryang Baek
eafb8e014a
chore: format
2025-05-19 04:32:00 +04:00
Timothy Jaeryang Baek
2ab5aa4d34
refac: azure openai
2025-05-19 04:31:04 +04:00
Timothy Jaeryang Baek
2f2a7ee0b0
chore: format
2025-05-19 03:58:42 +04:00
Timothy Jaeryang Baek
caeb822cdc
feat: azure openai support
2025-05-19 03:40:32 +04:00
Timothy Jaeryang Baek
47f8b3500b
feat: azure openai connections ui
2025-05-19 03:29:14 +04:00
Timothy Jaeryang Baek
08e4c163ea
feat: local/external connections
2025-05-17 01:47:48 +04:00
Timothy Jaeryang Baek
69dee19568
refac
2025-03-27 01:42:33 -07:00