From 85137247b2de79aeede8cf0a8dbd8be9ddc0bafb Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 19 May 2024 19:01:34 +0300 Subject: [PATCH] server : return error on too large embedding input --- examples/server/server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 7978f979dde66..6af5cb96e6d13 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -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 {