Skip to content
1 min read · 42 words

Variable: CONTEXT_OVERFLOW_PHRASE

ts
const CONTEXT_OVERFLOW_PHRASE: "prompt is too long" = "prompt is too long";

Defined in: src/batteries/llm/anthropic_messages/error_translation.ts:30

Body-text marker identifying an Anthropic context-overflow rejection.

Remarks

Context overflow arrives as a 400 BadRequestError and is detected from body TEXT, not status — the status alone cannot distinguish it from any other bad request.