From ade9b90e950a95322af791393aeb8249c0c0fd67 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 11 Mar 2024 10:09:11 +0200 Subject: [PATCH] Update examples/server/utils.hpp --- examples/server/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index 002eaa255..3429f0b43 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -427,7 +427,7 @@ static json format_final_response_oaicompat(const json & request, json result, s } // return value is vector as there is one case where we might need to generate two responses -static std::vector format_partial_response_oaicompat(json result, std::string completion_id) { +static std::vector format_partial_response_oaicompat(json result, const std::string & completion_id) { if (!result.contains("model") || !result.contains("oaicompat_token_ctr")) { return std::vector({result}); }