| 280 | |
| 281 | impl CustomLoader for AnthropicLoader { |
| 282 | fn load( |
| 283 | &self, |
| 284 | _provider: &ModelsProviderInfo, |
| 285 | _provider_state: Option<&ProviderState>, |
| 286 | ) -> CustomLoaderResult { |
| 287 | let mut result = CustomLoaderResult::default(); |
| 288 | result.headers.insert( |
| 289 | "anthropic-beta".to_string(), |
| 290 | "claude-code-20250219,interleaved-thinking-2025-05-14,fine-grained-tool-streaming-2025-05-14".to_string(), |
| 291 | ); |
| 292 | result |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | /// OpenCode custom loader - checks API keys, filters paid models if no key. |