Skip to content

Commit c3260ca

Browse files
committed
fix
1 parent ba2af58 commit c3260ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/server/server-context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2668,7 +2668,7 @@ static std::unique_ptr<server_res_generator> handle_completions_impl(
26682668
}
26692669
res->status = 200;
26702670
res->content_type = "text/event-stream";
2671-
res->next = [res_this = res.get(), res_type, &should_stop](std::string & output) mutable -> bool {
2671+
res->next = [res_this = res.get(), res_type, &should_stop](std::string & output) -> bool {
26722672
static auto format_error = [](task_response_type res_type, const json & res_json) {
26732673
if (res_type == TASK_RESPONSE_TYPE_ANTHROPIC) {
26742674
return format_anthropic_sse({

tools/server/server-queue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ server_task_result_ptr server_response_reader::next(const std::function<bool()>
304304
}
305305
if (!states.empty()) {
306306
// update the generation state if needed
307-
auto idx = result->get_index();
307+
size_t idx = result->get_index();
308308
GGML_ASSERT(idx >= 0 && idx < states.size());
309309
result->update(states[idx]);
310310
}

0 commit comments

Comments
 (0)