Skip to content
1 min read · 39 words

Variable: E_OPENAI_RESPONSES_CONTEXT_OVERFLOW

ts
const E_OPENAI_RESPONSES_CONTEXT_OVERFLOW: CreatedException<
  [number, number, string, string]
>;

Defined in: src/batteries/llm/openai_responses/exceptions.ts:32

Thrown when the total token weight of the resolved request exceeds contextWindow. Only raised when tokenEncoding is non-null. Carries { total, contextWindow, tokenEncoding, perBucket } in the message so middleware can target shedding.