From 39e4b1dc9bd00eb21a4e9cc6950855f94bc66de0 Mon Sep 17 00:00:00 2001 From: abhijitb11 <113058133+abhijitb11@users.noreply.github.com> Date: Thu, 19 Feb 2026 12:59:20 -0800 Subject: [PATCH] common : fix gpt-oss Jinja error when assistant message has both content and thinking with tool calls (#19704) --- common/chat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/chat.cpp b/common/chat.cpp index 3c4e9f5cf0..19f490c6b2 100644 --- a/common/chat.cpp +++ b/common/chat.cpp @@ -2043,6 +2043,7 @@ static common_chat_params common_chat_params_init_gpt_oss(const common_chat_temp if (has_reasoning_content && has_tool_calls) { auto adjusted_message = msg; adjusted_message["thinking"] = msg.at("reasoning_content"); + adjusted_message.erase("content"); adjusted_messages.push_back(adjusted_message); } else { adjusted_messages.push_back(msg);