Skip to content

Commit 2a3544c

Browse files
committed
fix
1 parent b93b52f commit 2a3544c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/server/utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ static json format_response_rerank(
741741
const json & request,
742742
const json & ranks,
743743
bool is_tei_format,
744-
const std::vector<std::string> & texts) {
744+
std::vector<std::string> & texts) {
745745
json res;
746746
if (is_tei_format) {
747747
// TEI response format
@@ -771,7 +771,7 @@ static json format_response_rerank(
771771
n_tokens += json_value(rank, "tokens_evaluated", 0);
772772
}
773773

774-
res = json {
774+
res = json{
775775
{"model", json_value(request, "model", std::string(DEFAULT_OAICOMPAT_MODEL))},
776776
{"object", "list"},
777777
{"usage", json{

0 commit comments

Comments
 (0)