Skip to main content

UNKNOWN_MODEL_CONTEXT_FLOOR

Constant UNKNOWN_MODEL_CONTEXT_FLOOR 

Source
pub const UNKNOWN_MODEL_CONTEXT_FLOOR: u64 = 200_000;
Expand description

Conservative fallback context limit (tokens), used by the PARITY-18 preflight guard when model_context_limit doesn’t recognize the resolved model slug (a custom --base-url, a new/unlisted OpenRouter model, etc.). “Unknown” must never be treated as “unlimited” — this floor is the smallest limit in [KNOWN_MODEL_CONTEXT_LIMITS], so an unrecognized model is never assumed to have MORE headroom than any known one.