Skip to content

Commit d261b13

Browse files
committed
server : Add verbose output to OAI compatible chat endpoint.
Add verbose output to server_task_result_cmpl_final::to_json_oaicompat_chat_stream, making it conform with server_task_result_cmpl_final::to_json_oaicompat_chat, as well as the other to_json methods.
1 parent 18b663d commit d261b13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/server/server.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,11 @@ struct server_task_result_cmpl_final : server_task_result {
830830
ret.push_back({"timings", timings.to_json()});
831831
}
832832

833+
// extra fields for debugging purposes
834+
if (verbose) {
835+
ret["__verbose"] = to_json_non_oaicompat();
836+
}
837+
833838
return ret;
834839
}
835840
};

0 commit comments

Comments
 (0)