pub fn margin(context_window: u64, configured: Option<u64>) -> u64
The margin before the limit: the environment’s, else max(2048, 10% of the context window).
max(2048, 10% of the context window)