@@ -4062,7 +4062,7 @@ int main(int argc, char ** argv) {
4062
4062
const std::vector<raw_buffer> & files,
4063
4063
const std::function<bool ()> & is_connection_closed,
4064
4064
httplib::Response & res,
4065
- oaicompat_type oaicompat) {
4065
+ oaicompat_type oaicompat) -> void {
4066
4066
GGML_ASSERT (type == SERVER_TASK_TYPE_COMPLETION || type == SERVER_TASK_TYPE_INFILL);
4067
4067
4068
4068
if (ctx_server.params_base .embedding ) {
@@ -4224,7 +4224,7 @@ int main(int argc, char ** argv) {
4224
4224
const auto handle_completions = [&handle_completions_impl](const httplib::Request & req, httplib::Response & res) {
4225
4225
json data = json::parse (req.body );
4226
4226
std::vector<raw_buffer> files; // dummy
4227
- return handle_completions_impl (
4227
+ handle_completions_impl (
4228
4228
SERVER_TASK_TYPE_COMPLETION,
4229
4229
data,
4230
4230
files,
@@ -4236,7 +4236,7 @@ int main(int argc, char ** argv) {
4236
4236
const auto handle_completions_oai = [&handle_completions_impl](const httplib::Request & req, httplib::Response & res) {
4237
4237
json data = oaicompat_completion_params_parse (json::parse (req.body ));
4238
4238
std::vector<raw_buffer> files; // dummy
4239
- return handle_completions_impl (
4239
+ handle_completions_impl (
4240
4240
SERVER_TASK_TYPE_COMPLETION,
4241
4241
data,
4242
4242
files,
@@ -4315,7 +4315,7 @@ int main(int argc, char ** argv) {
4315
4315
);
4316
4316
4317
4317
std::vector<raw_buffer> files; // dummy
4318
- return handle_completions_impl (
4318
+ handle_completions_impl (
4319
4319
SERVER_TASK_TYPE_INFILL,
4320
4320
data,
4321
4321
files,
@@ -4341,7 +4341,7 @@ int main(int argc, char ** argv) {
4341
4341
ctx_server.mctx ,
4342
4342
files);
4343
4343
4344
- return handle_completions_impl (
4344
+ handle_completions_impl (
4345
4345
SERVER_TASK_TYPE_COMPLETION,
4346
4346
data,
4347
4347
files,
0 commit comments