DeepSeek R1: parse thoughts / return in separate field in API (non streamed mode)

This commit is contained in:
ochafik 2025-02-03 01:19:15 +00:00
parent 87de852b7f
commit 130ca222c9
4 changed files with 47 additions and 9 deletions

View file

@ -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;
}