Skip to content
1 min read · 39 words

Variable: E_LITERT_LM_CONTEXT_OVERFLOW

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

Defined in: src/batteries/llm/litert_lm/exceptions.ts:31

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.