Skip to content

Commit

Permalink
server : return error on too large embedding input
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed May 19, 2024
1 parent f030ec1 commit 8513724
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1981,8 +1981,7 @@ struct server_context {
slot.state = SLOT_STATE_PROCESSING;
slot.command = SLOT_COMMAND_NONE;
slot.release();
slot.print_timings();
send_final_response(slot);
send_error(slot, "input is too large to process. increase the physical batch size", ERROR_TYPE_SERVER);
continue;
}
} else {
Expand Down

0 comments on commit 8513724

Please sign in to comment.