mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[PR #22475] [CLOSED] fix: preserve tool_calls and output fields in temp chat messages #65575
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22475
Author: @gambletan
Created: 3/9/2026
Status: ❌ Closed
Base:
dev← Head:fix/temp-chat-tool-calling📝 Commits (2)
59f8e88fix: preserve tool_calls and output fields in temp chat messages75a07fcstyle: fix prettier formatting for filter chain📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+7 -1)📄 Description
Description
The issue was that when sending messages to the backend for temp chats, the message mapping function was only preserving 'role' and 'content' fields, stripping out 'tool_calls' and 'output' fields which are essential for proper tool calling behavior.
This caused temp chats to collapse tool-role content into assistant-role content, breaking native tool calling with JSON schema.
Contributor License Agreement
Fixes #22470
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.