Skip to content

Commit 35d63f1

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 7ab3643 commit 35d63f1

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
@@ -826,6 +826,11 @@ struct server_task_result_cmpl_final : server_task_result {
826826
ret.push_back({"timings", timings.to_json()});
827827
}
828828

829+
// extra fields for debugging purposes
830+
if (verbose) {
831+
ret["__verbose"] = to_json_non_oaicompat();
832+
}
833+
829834
return ret;
830835
}
831836
};

0 commit comments

Comments
 (0)