mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #22470] issue: temp chats: openai api native tool calling doesn't follow json schema #35247
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 @pfn on GitHub (Mar 9, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22470
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.8.9
Ollama Version (if applicable)
No response
Operating System
linux
Browser (if applicable)
chrome
Confirmation
README.md.Expected Behavior
Temp chats should send proper schema to openai backend as normal chats do.
This is a continuation of https://github.com/open-webui/open-webui/discussions/22379 as it was originally stated to be for everything, however it only occurs in temp chats.
Actual Behavior
Temp chats collapse tool-role content into assistant-role content. This causes models to stop calling tools because they are entrained to thinking that they can just output the tool result directly.
Steps to Reproduce
Logs & Screenshots
see https://github.com/open-webui/open-webui/discussions/22379 for full logs
Additional Information
Why is this important? There are very often times when I'm generating image content that I do not want logged into my chat history. After a while, the image generator stops running because the model refuses to make the tool_call and instead thinks it can perform the tool function by simply emitting hallucinated result json.