Skip to content

Commit

Permalink
the finish reason for function calling should be
Browse files Browse the repository at this point in the history
  • Loading branch information
tybalex committed Mar 26, 2024
1 parent 711fda9 commit eaa0f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ static json format_final_response_oaicompat(const json & request, json result, c
printf("format_final_response_oaicompat: tool_call: %s\n", tool_call.dump().c_str());
oai_format_tool_calls.push_back(tool_call);
}
choices = json::array({json{{"finish_reason", finish_reason},
choices = json::array({json{{"finish_reason", "tool_calls"},
{"index", 0},
{"message", json{{"tool_calls", oai_format_tool_calls},
{"role", "assistant"}}}}});
Expand Down

0 comments on commit eaa0f3d

Please sign in to comment.