7891 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek c1f3b6fd1e refac 2026-11-23 03:29:58 +04:00
Timothy Jaeryang Baek cc2e033b04 refac 2026-11-23 02:26:51 +04:00
Timothy Jaeryang Baek 9b6241e541 refac 2026-11-23 02:05:05 +04:00
Timothy Jaeryang Baek e5b098c681 refac 2026-11-22 23:44:38 +04:00
Timothy Jaeryang Baek a78a9663b6 refac 2026-11-22 22:45:57 +04:00
Timothy Jaeryang Baek 53d741157b refac 2026-11-22 22:20:19 +04:00
Classic298 69fe857c5d fix: Qdrant gRPC mode ignores the http or https scheme of QDRANT_URI (#34783)
With QDRANT_PREFER_GRPC enabled, the http:// or https:// part of QDRANT_URI was ignored and TLS was switched on whenever QDRANT_API_KEY was set. A self-hosted Qdrant on plain HTTP with an API key failed every vector DB call with a TLS handshake error, and an https:// address without a key was connected without TLS. gRPC mode now follows the scheme of QDRANT_URI, the same as REST mode already did. An address without http:// or https:// still uses TLS only when an API key is set.

Fixes #34780
2026-11-22 21:40:50 +04:00
Timothy Jaeryang Baek f62d8efc7c refac 2026-11-22 21:25:13 +04:00
Timothy Jaeryang Baek 657276cf88 refac 2026-11-22 20:47:46 +04:00
Timothy Jaeryang Baek a5058fa562 refac 2026-11-22 20:43:18 +04:00
Timothy Jaeryang Baek 7173e6bd56 refac 2026-11-22 20:33:28 +04:00
Classic298 d065a70483 feat: audit path filters also apply to the OpenAI and Ollama routes (#34665)
AUDIT_EXCLUDED_PATHS and AUDIT_INCLUDED_PATHS only matched paths under /api/ and /api/v1/, so the OpenAI and Ollama routes could not be left out of the audit log, and with an include list set they were never logged. Values are now matched against the path with or without that prefix, so openai or ollama cover those routes.

Part of #33249
2026-11-22 20:29:06 +04:00
Classic298 45f489bea8 fix: chats fail when a Tether OpenAPI tool has the same name as another tool (#34730)
When two tool servers offer a tool with the same name, Open WebUI puts the server ID in front of the second one so the model can tell them apart. Tool servers added in Tether have IDs with colons, so the renamed tool broke the name rules of OpenAI-compatible providers and the provider rejected the whole chat for an invalid tool name. The same happened for admin tool servers whose ID has a dot. Characters outside letters, digits, underscores and dashes are now replaced with underscores in the renamed tool, and calls still reach the right server. Same cause as #34718, which covered MCP servers from Tether.

Fixes #34729
2026-11-22 20:28:37 +04:00
Timothy Jaeryang Baek d711d12aad refac 2026-11-22 19:36:12 +04:00
Timothy Jaeryang Baek b5a9aead84 refac 2026-11-22 17:23:24 +04:00
Timothy Jaeryang Baek df6be8c3a1 refac 2026-11-22 17:13:34 +04:00
Timothy Jaeryang Baek 3f54f781be refac 2026-11-22 16:34:32 +04:00
Timothy Jaeryang Baek 9442dca957 refac 2026-11-22 16:29:29 +04:00
Timothy Jaeryang Baek c8aede457d refac 2026-11-22 16:26:59 +04:00
Timothy Jaeryang Baek 37477fe189 refac 2026-11-22 16:18:52 +04:00
Timothy Jaeryang Baek 4ffe27a9d4 refac 2026-11-22 16:08:38 +04:00
Timothy Jaeryang Baek 67863f310c refac 2026-11-22 15:54:36 +04:00
Timothy Jaeryang Baek e72b31f01f refac 2026-11-22 02:51:42 +04:00
Timothy Jaeryang Baek c7c3ad5e78 refac 2026-11-22 02:24:25 +04:00
Timothy Jaeryang Baek f59a3aff85 refac 2026-11-22 02:10:33 +04:00
Timothy Jaeryang Baek 91344e88f7 refac 2026-11-21 23:58:03 +04:00
Timothy Jaeryang Baek 0ee690e272 refac 2026-11-21 22:27:07 +04:00
Timothy Jaeryang Baek d798367389 refac 2026-11-21 21:41:24 +04:00
Timothy Jaeryang Baek e7406ce2f3 refac 2026-11-21 20:04:01 +04:00
Timothy Jaeryang Baek 61b5a267fc refac 2026-11-21 19:27:11 +04:00
Timothy Jaeryang Baek a8e6e5d777 refac 2026-11-21 19:18:19 +04:00
Timothy Jaeryang Baek 679087e7b3 refac 2026-11-21 18:55:53 +04:00
Timothy Jaeryang Baek 3097ac6666 refac 2026-11-21 18:41:47 +04:00
Classic298 5c55ccf39f fix: knowledge search fails silently after an embedding size change (#34764)
With the default Chroma vector database, a failed knowledge search was dropped without a trace. The common case is switching to an embedding model with a different vector size without reindexing. Every search then came back empty, and neither the response nor the server log said why. The error, including Chroma's dimension mismatch message, now shows up in the server log, so an admin can see that a reindex is needed. Search results themselves do not change, and a knowledge base with no files yet still stays quiet.

Fixes #34761
2026-11-21 18:36:46 +04:00
Timothy Jaeryang Baek e8b6f620e8 refac 2026-11-21 16:45:48 +04:00
Timothy Jaeryang Baek c5c42fe3b7 refac 2026-11-21 16:20:44 +04:00
Classic298 26a6ce4e84 fix: editing an image from a Windows terminal fails with a 404 (#34727)
With an Open Terminal running on Windows, asking the model to edit an image stored on the terminal failed with a 404, because a path such as C:\Users\user\photo.jpg was treated as a link instead of a terminal file. Starting a video from a terminal image failed the same way. Both now read Windows paths, written with forward or back slashes, from the terminal just like Linux and macOS paths. Links, data URLs and files uploaded to Open WebUI work as before.

Fixes #34719
2026-11-21 15:51:35 +04:00
Timothy Jaeryang Baek bc754ef4ec refac 2026-11-20 22:15:12 +04:00
Timothy Jaeryang Baek 7aa18c48fe refac 2026-11-20 21:51:19 +04:00
Timothy Jaeryang Baek 8fb2bf35ad refac 2026-11-19 19:13:33 +04:00
Classic298 3a7291ba7e perf: large chats open faster when context compaction is off (#34671)
Opening a chat loaded the whole conversation a second time to work out how full the model's context is, even with Context Compaction off, which is the default. The server only sends that figure while compaction is on, so with it off every open of a large chat read the conversation twice for nothing. Chats now skip the second read while Context Compaction is off, and nothing changes with it on.

Server time to open a chat with Context Compaction off, fastest of repeated opens:

| Chat size | Postgres before | Postgres after | SQLite before | SQLite after |
|---|---|---|---|---|
| 1 MB | 25 ms | 17 ms | 21 ms | 9 ms |
| 10 MB | 66 ms | 44 ms | 39 ms | 20 ms |
| 50 MB | 337 ms | 184 ms | 119 ms | 71 ms |
| 130 MB | 653 ms | 464 ms | 264 ms | 143 ms |

Fixes #34670
2026-11-18 23:38:50 +04:00
Timothy Jaeryang Baek 43d7281f4e refac 2026-11-18 18:55:30 +04:00
Classic298 47cf51eb78 perf: send tool results to the model as compact JSON (#34640)
Tool results returned as a JSON object or list were re-indented with two spaces before being handed to the model, so those tool calls paid tokens for whitespace nobody reads. They now go to the model as compact JSON. The tool call panel in the chat still shows them pretty-printed, because it formats the result on its own.

Measured on real Open Terminal responses (o200k tokenizer):

| Tool | Before | After | Saved |
|---|---|---|---|
| list_files | 1013 | 672 | 34% |
| glob_search | 2821 | 2061 | 27% |
| grep_search | 2233 | 1652 | 26% |
| run_command | 649 | 614 | 5% |
| read_file | 3254 | 3245 | 0% |

Fixes #34639
2026-11-18 15:47:28 +04:00
Classic298 d8ba9d5538 fix: stopping a long tool-calling reply makes the next message compact too early (#34627)
A stopped reply was saved without the token counts the model had already reported for it, so the next message had to estimate the reply's size from its text. That estimate includes the model's thinking, which is often not sent back to the model, so after a long tool-calling run it could come out far larger than the real context and trigger compaction well before the threshold. A stopped reply now keeps the counts reported so far, marked incomplete, so the size check starts from the real number; text the stopped round produced after its last report is not counted, which is far less than what the old estimate added. Stopped replies now also show their token usage and count toward the analytics token totals, still not as complete responses.

Fixes #34626
2026-11-18 04:56:20 +04:00
Timothy Jaeryang Baek cb19060e8f refac 2026-11-18 01:13:09 +09:00
Timothy Jaeryang Baek 10be890bce refac 2026-11-17 23:28:54 +09:00
Timothy Jaeryang Baek a59b4099c6 refac 2026-11-17 23:22:18 +09:00
Timothy Jaeryang Baek 916c03829d chore: format 2026-11-17 22:37:26 +09:00
Timothy Jaeryang Baek 4dad777cdb refac 2026-11-17 22:30:21 +09:00
Timothy Jaeryang Baek c48832a6d4 refac 2026-11-17 22:28:32 +09:00