Skip to main content

MIN_BUDGET_TOKENS

Constant MIN_BUDGET_TOKENS 

Source
pub const MIN_BUDGET_TOKENS: u32 = 1_024;
Expand description

Anthropic’s documented minimum for extended-thinking budget_tokens. Requests below this are rejected with 400 by the provider; clamping at resolution time gives a clearer error site than the first API call.