Skip to content

Commit

Permalink
updated context shift error to ERROR_TYPE_INVALID_REQUEST
Browse files Browse the repository at this point in the history
  • Loading branch information
VJHack committed Sep 21, 2024
1 parent 9880e3a commit 4af076b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4af076b

Please sign in to comment.