return thoughts in reasoning_content field

This commit is contained in:
Olivier Chafik 2025-02-04 11:37:09 +00:00
parent d1b66910c5
commit 39c1d8163b
5 changed files with 23 additions and 23 deletions

View file

@ -745,8 +745,8 @@ struct server_task_result_cmpl_final : server_task_result {
{"tool_calls", tool_calls},
{"role", "assistant"},
};
if (!msg.thoughts.empty()) {
message["thoughts"] = msg.thoughts;
if (!msg.reasoning_content.empty()) {
message["reasoning_content"] = msg.reasoning_content;
}
if (!msg.tool_plan.empty()) {
message["tool_plan"] = msg.tool_plan;