diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 36db183b3..531c0dddf 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -1949,7 +1949,7 @@ struct server_context { // context shift is disabled and prompt is too large - discard it if (!params.ctx_shift && (slot.n_prompt_tokens > slot.n_ctx) ){ slot.release(); - send_error(slot, "Input is too large to process. Either enable context shift or increase the context length.", ERROR_TYPE_SERVER); + send_error(slot, "Input is too large to process. Either enable context shift or increase the context length.", ERROR_TYPE_INVALID_REQUEST); continue; }