8000 handle_completions_impl returns void · ngxson/llama.cpp@b2906a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2906a9

Browse files
committed
8000
handle_completions_impl returns void
1 parent 689035c commit b2906a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/server/server.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4062,7 +4062,7 @@ int main(int argc, char ** argv) {
40624062
const std::vector<raw_buffer> & files,
40634063
const std::function<bool()> & is_connection_closed,
40644064
httplib::Response & res,
4065-
oaicompat_type oaicompat) {
4065+
oaicompat_type oaicompat) -> void {
40664066
GGML_ASSERT(type == SERVER_TASK_TYPE_COMPLETION || type == SERVER_TASK_TYPE_INFILL);
40674067

40684068
if (ctx_server.params_base.embedding) {
@@ -4224,7 +4224,7 @@ int main(int argc, char ** argv) {
42244224
const auto handle_completions = [&handle_completions_impl](const httplib::Request & req, httplib::Response & res) {
42254225
json data = json::parse(req.body);
42264226
std::vector<raw_buffer> files; // dummy
4227-
return handle_completions_impl(
4227+
handle_completions_impl(
42284228
SERVER_TASK_TYPE_COMPLETION,
42294229
data,
42304230
files,
@@ -4236,7 +4236,7 @@ int main(int argc, char ** argv) {
42364236
const auto handle_completions_oai = [&handle_completions_impl](const httplib::Request & req, httplib::Response & res) {
42374237
json data = oaicompat_completion_params_parse(json::parse(req.body));
42384238
std::vector<raw_buffer> files; // dummy
4239-
return handle_completions_impl(
4239+
handle_completions_impl(
42404240
SERVER_TASK_TYPE_COMPLETION,
42414241
data,
42424242
files,
@@ -4315,7 +4315,7 @@ int main(int argc, char ** argv) {
43154315
);
43164316

43174317
std::vector<raw_buffer> files; // dummy
4318-
return handle_completions_impl(
4318+
handle_completions_impl(
43194319
SERVER_TASK_TYPE_INFILL,
43204320
data,
43214321
files,
@@ -4341,7 +4341,7 @@ int main(int argc, char ** argv) {
43414341
ctx_server.mctx,
43424342
files);
43434343

4344-
return handle_completions_impl(
4344+
handle_completions_impl(
43454345
SERVER_TASK_TYPE_COMPLETION,
43464346
data,
43474347
files,

0 commit comments

Comments
 (0)
0