DeepSeek R1: parse thoughts / return in separate field in API (non streamed mode)
This commit is contained in:
parent
87de852b7f
commit
130ca222c9
4 changed files with 47 additions and 9 deletions
|
@ -744,6 +744,9 @@ 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.tool_plan.empty()) {
|
||||
message["tool_plan"] = msg.tool_plan;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue