]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common : fix gpt-oss Jinja error when assistant message has both content and thinking...
authorabhijitb11 <redacted>
Thu, 19 Feb 2026 20:59:20 +0000 (12:59 -0800)
committerGitHub <redacted>
Thu, 19 Feb 2026 20:59:20 +0000 (14:59 -0600)
common/chat.cpp

index 3c4e9f5cf0cd43f4efec6c5dfac226a9d8f7d698..19f490c6b29120b0390ae6f6bd480e0c325da488 100644 (file)
@@ -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);