server
: rm superfluous is_alive check in streamed code
This commit is contained in:
parent
5f00747a90
commit
419e9952c9
1 changed files with 0 additions and 3 deletions
|
@ -3025,9 +3025,6 @@ int main(int argc, char ** argv) {
|
|||
});
|
||||
} else {
|
||||
ctx_server.receive_cmpl_results_stream(task_ids, [&](server_task_result result) -> bool {
|
||||
if (!is_alive()) {
|
||||
return false; // connection is closed
|
||||
}
|
||||
std::vector<json> result_array = format_partial_response_oaicompat(result.data, completion_id);
|
||||
for (auto & event_data : result_array) {
|
||||
if (event_data.empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue