We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1acda5f commit a58e1fcCopy full SHA for a58e1fc
common/chat.cpp
@@ -134,7 +134,7 @@ json common_chat_msgs_to_json_oaicompat(const std::vector<common_chat_msg> & msg
134
jmsg["name"] = msg.tool_name;
135
}
136
if (!msg.tool_call_id.empty()) {
137
- jmsg["tool_call_id"] = json::parse(msg.tool_call_id);
+ jmsg["tool_call_id"] = msg.tool_call_id;
138
139
if (!msg.tool_calls.empty()) {
140
auto & tool_calls = jmsg["tool_calls"] = json::array();
0 commit comments