Skip to main content

thinking_payload

Function thinking_payload 

Source
pub fn thinking_payload(cfg: &RemoteMultimodalConfig) -> Option<Value>
Expand description

Build an Anthropic-compatible thinking payload when configured.

Returns Some({"type":"enabled","budget_tokens":N}) if thinking budget is configured, otherwise returns None.