Skip to content

Commit 7fc54f5

Browse files
author
ochafik
committed
Allow content in parse_json_tool_calls
1 parent 582420e commit 7fc54f5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

common/chat.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,7 @@ static common_chat_msg parse_json_tool_calls(
580580
}
581581

582582
if (!result.tool_calls.empty()) {
583-
if (!string_strip(result.content).empty()) {
584-
LOG_WRN("Content found with tool calls: %s\n", result.content.c_str());
585-
}
586-
result.content = "";
583+
result.content = string_strip(result.content);
587584
}
588585
return result;
589586
}

0 commit comments

Comments
 (0)