Skip to content

Commit e932094

Browse files
authored
server : return error on too large embedding input (#7389)
1 parent 2789baf commit e932094

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,8 +1981,7 @@ struct server_context {
19811981
slot.state = SLOT_STATE_PROCESSING;
19821982
slot.command = SLOT_COMMAND_NONE;
19831983
slot.release();
1984-
slot.print_timings();
1985-
send_final_response(slot);
1984+
send_error(slot, "input is too large to process. increase the physical batch size", ERROR_TYPE_SERVER);
19861985
continue;
19871986
}
19881987
} else {

0 commit comments

Comments
 (0)