server/oai: ensure content is null when there are tool calls
This commit is contained in:
parent
04d511b5b5
commit
28345877e4
1 changed files with 1 additions and 1 deletions
|
@ -740,7 +740,7 @@ struct server_task_result_cmpl_final : server_task_result {
|
|||
}
|
||||
|
||||
json message {
|
||||
{"content", msg.content},
|
||||
{"content", msg.content == "" && !tool_calls.empty() ? json() : json(msg.content)},
|
||||
{"tool_calls", tool_calls},
|
||||
{"role", "assistant"},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue