Commit Graph
842 Commits
Author SHA1 Message Date
Classic298 c557cf58aa fix: background memory review saves memories from temporary chats (#34263)
With the background memory review on, Open WebUI looks back over the chat every few messages (10 by default) to save or update memories, and it did this in temporary chats too. Facts from a temporary chat could end up as memories that stayed after the chat was closed and showed up in later chats. The automatic review now skips temporary chats, so they leave no memories behind unless the user asks for one. Normal chats are reviewed as before, and memories already saved from a temporary chat are not removed.

Fixes #34262
2026-11-12 21:42:03 +09:00
Timothy Jaeryang Baek e46920dcc7 refac 2026-11-11 15:34:33 +09:00
Timothy Jaeryang Baek 28c5fba889 refac 2026-11-11 13:49:51 +09:00
Classic298 974367529c fix: DeepSeek thinking mode errors when a chat uses skills, knowledge or memories (#33950)
Starting with 0.13.1, DeepSeek in thinking mode returned the error "The `reasoning_content` in the thinking mode must be passed back to the API." for any chat that uses skills, attached knowledge or memories, even with the connection's Provider set to llama.cpp. Since that release these features reach the model through tool calls behind the scenes, and DeepSeek requires reasoning on every earlier tool call, which these tool calls never have. On connections with Provider set to llama.cpp, Open WebUI now fills in an empty reasoning for any earlier tool call that has none, which DeepSeek accepts, so these chats work again. Connections with Provider set to Default are unchanged: they send no reasoning back, so DeepSeek still needs the llama.cpp setting.

Fixes #33940
2026-11-09 06:40:57 +09:00
Timothy Jaeryang Baek e8c0ad85e5 refac 2026-11-08 18:37:29 +09:00
Timothy Jaeryang Baek 9126f2262c refac 2026-11-08 15:30:13 +09:00
Timothy Jaeryang Baek 2416b1fc0b refac 2026-11-08 15:27:19 +09:00
Classic298 06ff3f9195 fix: a malformed tool call with Tool Search on ends tool use for the rest of the reply (#33872)
With Tool Search on, when the model sent a broken call for a tool Tool Search had not loaded yet (arguments that were not a JSON object, or a list of tool calls that was empty or in the wrong format), Open WebUI handled it like an unfinished model response and the rest of the reply ran without any tools. Now the model gets a tool error back, like it does for an unknown tool name, and can retry with its tools. Only a model response that really was cut off still ends tool use.

Fixes #33871
2026-11-08 10:53:50 +09:00
Timothy Jaeryang Baek 003299641e refac 2026-11-08 01:44:08 +09:00
Classic298 842261a4a8 fix: skip the knowledge and skill lists when there is nothing to list (#33812)
With native function calling, the model got a hidden list of the attached knowledge and of the user's skills before every new reply, even when no knowledge was attached and the user had no skills, so every chat spent tokens on two empty lists. A custom pipe function that reads the last message as the user's question got the empty knowledge list instead of the question. Each list is now left out when it is empty, as in 0.13.0.

Fixes #33807
2026-11-06 22:03:50 +09:00
Timothy Jaeryang Baek 18f7633afa refac 2026-11-06 13:40:53 +09:00
Timothy Jaeryang Baek 8eb2cabf49 refac 2026-11-06 13:33:33 +09:00
Timothy Jaeryang Baek e037ad0735 refac 2026-11-06 13:29:44 +09:00
Timothy Jaeryang Baek 003c9e0854 refac 2026-11-06 13:24:49 +09:00
Timothy Jaeryang Baek 6f4c7f8935 refac 2026-11-06 13:23:52 +09:00
Timothy Jaeryang Baek e6ae368f51 refac 2026-11-06 13:17:42 +09:00
Timothy Jaeryang Baek 0986adfb15 refac 2026-11-06 12:58:35 +09:00
Timothy Jaeryang Baek 0f3bd0a7ea refac 2026-11-06 12:40:49 +09:00
Timothy Jaeryang Baek 6e8a6c4467 refac 2026-11-06 11:34:51 +09:00
Timothy Jaeryang Baek bd6fc15bee refac 2026-11-06 11:12:04 +09:00
Timothy Jaeryang Baek 8e2ba2937e refac 2026-11-06 10:38:09 +09:00
Timothy Jaeryang Baek 97f71f6ebb refac 2026-11-06 08:53:00 +09:00
Timothy Jaeryang Baek d878373728 refac 2026-11-06 08:41:30 +09:00
Classic298 c384d8e514 fix: split tool calls leave an extra unfinished tool call in the chat (#33779)
When a model sends several tool calls glued into one (for example GPT-5.4 putting two JSON argument sets in a single call), Open WebUI ran each part but also kept the original call in the message with the broken combined arguments and no result. That showed up as an extra tool call that never gets a result, and it was dropped silently when the chat was sent back to the model. The first part now reuses the original call, so every tool call in the message has exactly one result.

Fixes #33778
2026-11-06 08:19:36 +09:00
Classic298 dd42f4e913 refac: skip background work for accounts that were deactivated meanwhile (#33801)
Follow-up generation after a response and replies to channel mentions are now skipped when the account that triggered them has been deactivated in the meantime.
2026-11-06 07:53:32 +09:00
Classic298 f59552efff perf: stop resending the whole reply on every reasoning chunk with OpenRouter-style providers (#33698)
Providers such as OpenRouter attach reasoning details to every reasoning chunk, and each of those chunks made Open WebUI send the entire reply so far to the browser and, with Redis, rewrite the copy kept for page reloads. The browser never shows these details, so a long reasoning reply moved tens of megabytes for a few kilobytes of text. Those chunks now stream like any other reasoning text, and the details are still saved with the reply and still sent back to the provider on the next request.

Measured against a simulated OpenRouter-style provider streaming 1,500 reasoning chunks:

| | before | after |
|---|---|---|
| Data sent to the browser | 73.6 MB | 0.73 MB |
| Redis writes for the reload copy | 1,504 | 19 |
2026-11-05 22:30:39 +09:00
Timothy Jaeryang Baek 8366e28725 refac 2026-11-05 21:59:46 +09:00
Timothy Jaeryang Baek 404d27a36e refac 2026-11-05 11:41:25 +09:00
Timothy Jaeryang Baek a8b478ed7b refac 2026-11-03 17:17:59 +09:00
Timothy Jaeryang Baek e789513ea6 refac 2026-11-03 16:25:23 +09:00
Timothy Jaeryang Baek ddb43c83ba refac 2026-11-02 12:45:15 +09:00
Timothy Jaeryang Baek 47a9e7d48d refac 2026-11-02 12:09:54 +09:00
Timothy Jaeryang Baek d99ec1c02c refac 2026-11-02 08:48:51 +09:00
Timothy Jaeryang Baek 0e0ba872a4 refac 2026-10-30 07:50:55 +09:00
Timothy Jaeryang Baek 858c1e9665 chore: bump 2026-10-29 17:47:24 +09:00
Timothy Jaeryang Baek ef29fb12f1 refac 2026-10-29 16:44:26 +09:00
Timothy Jaeryang Baek f2cdbbebe3 refac 2026-10-29 16:39:42 +09:00
Classic298 63ca4237eb feat: keep tool images away from models with Vision turned off (#33345)
When a tool returned an image, for example Open Terminal reading a PNG, a native tool or an MCP screenshot tool, the image was sent to the model even when the model has Vision turned off. A provider serving a text-only model rejects that request, so the reply failed with an error like "At most 0 image(s) may be provided in one prompt", and every later message in the chat failed the same way. With Vision off the model now gets a short "[image]" note in place of each tool image, including images already saved in the chat, so stuck chats work again. The images stay saved, so they reach the model again once Vision is turned on.

Fixes #32720
2026-10-29 16:24:47 +09:00
Timothy Jaeryang Baek b34885efc6 refac 2026-10-28 10:02:45 +09:00
Timothy Jaeryang Baek b420726ff1 refac 2026-10-27 08:41:51 +09:00
Timothy Jaeryang Baek 7b303cf496 refac 2026-10-26 07:24:36 +09:00
Timothy Jaeryang Baek 52e155019f refac 2026-10-25 08:24:14 +09:00
Classic298 c69e5a73c0 fix: "More Concise" and "Add Details" now revise the reply instead of answering the instruction (#33084)
Choosing Add Details, More Concise, or typing a suggestion under a reply sent the model your original question followed straight by the bare instruction, with the reply itself missing, so it answered the instruction on its own (for example "OK, I'll keep answers shorter") instead of rewriting that reply. The model now receives the reply it is being asked to change, so it returns a shorter, more detailed or altered version of it. Plain Try Again and temporary chats were not affected.

Fixes #33083
2026-10-25 08:07:21 +09:00
Classic298 f3f9af594f fix: MCP tools whose input has alternative forms are called with no arguments (#32903)
* fix: MCP tools that list their arguments under anyOf are called with no arguments

When an MCP tool described its input as alternatives, for example a page by id or by path and locale, and had no top-level list of fields, every argument the model sent was dropped and the tool was called with nothing, so the server rejected the call. Arguments for MCP tools now reach the server as the model sent them, and the MCP server checks them against its own schema. Other tool types still keep only the arguments their schema lists.

Fixes #32898

* refac: shorten the MCP arguments comment

The comment now only says why MCP tools skip the argument filter.
2026-10-25 06:22:08 +09:00
Timothy Jaeryang Baek d5cd7f4907 refac 2026-10-21 09:26:26 +09:00
Timothy Jaeryang Baek 079fb19e75 refac 2026-10-16 18:58:58 +04:00
Timothy Jaeryang Baek 5cf7c03332 refac 2026-10-16 14:35:09 +04:00
Timothy Jaeryang Baek 92e64c1d59 refac 2026-10-16 14:31:39 +04:00
Classic298 3ccea416b4 fix: built-in tools disappear when a model has a custom tools parameter (#32530)
Adding a custom parameter named tools to a model, for example to turn on a provider's native web search, made Open WebUI drop all of its own tools for that model: notes, knowledge, tasks and any tools attached to the model stopped working, and attached files lost their context. Those tools now stay, and the model's custom tools are sent alongside them. API calls that pass their own tools, or an empty list to turn tools off, behave as before.

Fixes #32528
2026-10-16 14:09:32 +04:00
Timothy Jaeryang BaekandClassic298 f5a26f53a0 refac
Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com>
2026-10-16 04:20:53 +04:00