Skip to content

Commit 07a43f8

Browse files
author
openingnow
committed
catch up origin/master
1 parent cddf872 commit 07a43f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/server/server-context.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3455,13 +3455,15 @@ void server_routes::init_routes() {
34553455
};
34563456

34573457
this->post_responses_oai = [this](const server_http_req & req) {
3458+
auto res = std::make_unique<server_res_generator>(ctx_server);
34583459
std::vector<raw_buffer> files;
34593460
json body = convert_responses_to_chatcmpl(json::parse(req.body));
34603461
json body_parsed = oaicompat_chat_params_parse(
34613462
body,
34623463
ctx_server.oai_parser_opt,
34633464
files);
34643465
return handle_completions_impl(
3466+
std::move(res),
34653467
ctx_server,
34663468
SERVER_TASK_TYPE_COMPLETION,
34673469
body_parsed,

0 commit comments

Comments
 (0)