common : fix gpt-oss Jinja error when assistant message has both content and thinking with tool calls (#19704)
This commit is contained in:
parent
11c325c6e0
commit
39e4b1dc9b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue