Skip to content

Commit

Permalink
server : init stop and error fields of the result struct (ggerganov#9026
Browse files Browse the repository at this point in the history
)

Signed-off-by: Jiri Podivin <[email protected]>
  • Loading branch information
jpodivin authored Aug 15, 2024
1 parent 5fd89a7 commit 234b306
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,8 @@ struct server_context {
llama_lora_adapters_apply(ctx, lora_adapters);
server_task_result result;
result.id = task.id;
result.stop = true;
result.error = false;
result.data = json{{ "success", true }};
queue_results.send(result);
} break;
Expand Down

0 comments on commit 234b306

Please sign in to comment.