From 4af076b4946abf70bb5b0869c2528c93e1214170 Mon Sep 17 00:00:00 2001 From: VJHack Date: Sat, 21 Sep 2024 00:35:11 -0500 Subject: [PATCH] updated context shift error to ERROR_TYPE_INVALID_REQUEST --- examples/server/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 36db183b3aa21..531c0dddf487d 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; }