Normalize disabled context-shift overflow error (#2051)

This commit is contained in:
Jun Yamog
2026-06-29 08:30:05 +02:00
committed by GitHub
parent d8bb57d644
commit 33dabeae21
+1 -1
View File
@@ -3386,7 +3386,7 @@ void server_context::context_shift() {
// we should never get here, because generation should already stopped in process_token()
slot.print_timings();
slot.release();
send_error(slot, "context shift is disabled", ERROR_TYPE_SERVER);
send_error(slot, "context_length_exceeded: the request exceeds the available context size; context shift is disabled", ERROR_TYPE_SERVER);
continue;
}
// Shift context