Skip to main content

CONTEXT_SIZE_RANGE

Constant CONTEXT_SIZE_RANGE 

Source
pub const CONTEXT_SIZE_RANGE: RangeInclusive<u64>;
Expand description

The context sizes a person is allowed to configure.

One constant because more than one surface describes this range and they have to agree — validate_settings rejects anything outside it, and so do the flags that write this setting or default it. Spelling the numbers out separately on each is how they drift.

Not every context-size flag is bounded by it: --ctx-size names a per-launch value rather than this setting, and CtxSizeArg::parse accepts any u64. That is a separate surface with a separate contract, not an omission here.