| 270 | #[derive(Debug, Serialize)] |
| 271 | #[serde(tag = "type")] |
| 272 | enum AnthropicThinking { |
| 273 | #[serde(rename = "enabled")] |
| 274 | Enabled { |
| 275 | #[serde(rename = "budget_tokens")] |
| 276 | budget_tokens: u64, |
| 277 | }, |
| 278 | } |
| 279 | |
| 280 | fn anthropic_thinking_config(variant: Option<&str>, max_tokens: u64) -> Option<AnthropicThinking> { |
| 281 | let variant = variant?.trim().to_ascii_lowercase(); |
nothing calls this directly
no outgoing calls
no test coverage detected