Skip to main content

MAX_PROMPT_ARG_UNITS

Constant MAX_PROMPT_ARG_UNITS 

Source
pub(super) const MAX_PROMPT_ARG_UNITS: usize = 30_000;
Expand description

The longest prompt append_prompt_arg passes on the command line. Windows caps a whole command line at 32,767 UTF-16 units; this leaves room for the executable path and the provider’s own flags.