Skip to main content

MAX_INSTRUCTIONS_PREVIEW_CHARS

Constant MAX_INSTRUCTIONS_PREVIEW_CHARS 

Source
pub const MAX_INSTRUCTIONS_PREVIEW_CHARS: usize = 50_000;
Expand description

Cap on instructions_preview (Phase 3 spec §3.1, round 5) — generous for a glance-and-decide preview; bounds worst-case JSON-escaped response size to roughly 300 KB rather than the ~300 MB a maximally-adversarial, unbounded instructions string could otherwise force.