mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #23715] [CLOSED] fix: exclude empty assistant placeholder from Notes chat payload #66186
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/23715
Author: @Classic298
Created: 4/14/2026
Status: ❌ Closed
Base:
dev← Head:claude/sync-dev-branches-LP3qO📝 Commits (1)
1008658fix: exclude empty assistant placeholder from Notes chat payload📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/notes/NoteEditor/Chat.svelte(+1 -1)📄 Description
The Notes AI Chat pushes an empty assistant message to the local messages array so it can stream delta content into it. That placeholder was also being sent in the chat/completions request, which llama.cpp interprets as an assistant response prefill. For models with thinking enabled in their chat template (Qwen3, gpt-oss, etc.), llama.cpp rejects the combination with: "Assistant response prefill is incompatible with enable_thinking." (400).
Filter the streaming placeholder out of the outgoing payload so the conversation ends with the user turn, matching the OpenAI spec and avoiding the prefill interpretation. The placeholder is still used locally for streaming UI updates.
Fixes open-webui/open-webui#23703
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.