Skip to content

Commit 6cf4558

Browse files
committed
the finish reason for function calling should be
1 parent 6c41695 commit 6cf4558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ static json format_final_response_oaicompat(const json & request, json result, c
741741
printf("format_final_response_oaicompat: tool_call: %s\n", tool_call.dump().c_str());
742742
oai_format_tool_calls.push_back(tool_call);
743743
}
744-
choices = json::array({json{{"finish_reason", finish_reason},
744+
choices = json::array({json{{"finish_reason", "tool_calls"},
745745
{"index", 0},
746746
{"message", json{{"tool_calls", oai_format_tool_calls},
747747
{"role", "assistant"}}}}});

0 commit comments

Comments
 (0)