9 Commits
Author SHA1 Message Date
Classic298 d0c7dec838 fix: replies end in a 400 on vLLM when tool use stops (#34176)
When tool use stopped for a reply (the tool call limit, the same call failing twice, or a reply cut off in the middle of a tool call), Open WebUI asks the model once more for a final answer, and that request carried an empty tools list. vLLM refuses that with a 400, so the reply ended in that error instead of an answer. The final answer request now keeps the chat's tools and turns tool calls off with tool choice "none", the standard setting for that. Ollama has no tool choice setting, so for Ollama models any request with tool choice "none" now leaves the tools out, which is the only way to keep the model from calling them.

Fixes #34169
2026-11-12 21:20:49 +09:00
Timothy Jaeryang Baek e46920dcc7 refac 2026-11-11 15:34:33 +09:00
Timothy Jaeryang Baek d612241790 refac 2026-11-09 08:05:51 +09:00
Timothy Jaeryang Baek e8c0ad85e5 refac 2026-11-08 18:37:29 +09:00
Timothy Jaeryang Baek 2416b1fc0b refac 2026-11-08 15:27:19 +09:00
Timothy Jaeryang Baek 003299641e refac 2026-11-08 01:44:08 +09:00
Timothy Jaeryang Baek 7f3e0d018e refac 2026-11-06 09:02:24 +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