Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d261b13

Browse filesBrowse 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
Copy full SHA for d261b13

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎examples/server/server.cpp

Copy file name to clipboardExpand all lines: 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.