1
0
Эх сурвалжийг харах

server : return error on too large embedding input (#7389)

Georgi Gerganov 1 жил өмнө
parent
commit
e932094d58

+ 1 - 2
examples/server/server.cpp

@@ -1981,8 +1981,7 @@ struct server_context {
                                 slot.state = SLOT_STATE_PROCESSING;
                                 slot.state = SLOT_STATE_PROCESSING;
                                 slot.command = SLOT_COMMAND_NONE;
                                 slot.command = SLOT_COMMAND_NONE;
                                 slot.release();
                                 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;
                                 continue;
                             }
                             }
                         } else {
                         } else {