Skip to content

Commit a29ac57

Browse files
committed
fix
1 parent f24aed8 commit a29ac57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/server/server.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3934,7 +3934,7 @@ int main(int argc, char ** argv) {
39343934

39353935
const auto handle_completions = [&handle_completions_impl](const httplib::Request & req, httplib::Response & res) {
39363936
if (req.body.find("chat_history") != std::string::npos) {
3937-
res_ok(res, "");
3937+
res_ok(res, {{ "success", true }});
39383938
return;
39393939
}
39403940

@@ -3949,7 +3949,7 @@ int main(int argc, char ** argv) {
39493949

39503950
const auto handle_completions_oai = [&handle_completions_impl](const httplib::Request & req, httplib::Response & res) {
39513951
if (req.body.find("chat_history") != std::string::npos) {
3952-
res_ok(res, "");
3952+
res_ok(res, {{ "success", true }});
39533953
return;
39543954
}
39553955

@@ -4047,7 +4047,7 @@ int main(int argc, char ** argv) {
40474047
}
40484048

40494049
if (req.body.find("chat_history") != std::string::npos) {
4050-
res_ok(res, "");
4050+
res_ok(res, {{ "success", true }});
40514051
return;
40524052
}
40534053

0 commit comments

Comments
 (0)