Returns `true` when the provider should use the Anthropic Messages API format (content blocks, system-as-top-level, prompt caching).
(&self)
| 30 | /// Returns `true` when the provider should use the Anthropic Messages API |
| 31 | /// format (content blocks, system-as-top-level, prompt caching). |
| 32 | pub fn uses_anthropic_format(&self) -> bool { |
| 33 | self.api_format == "anthropic" |
| 34 | || self.provider_type == "anthropic" |
| 35 | || self.provider_type == "enowxlabs" |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | pub fn fixed_base_url(provider_type: &str) -> Option<&'static str> { |
no outgoing calls
no test coverage detected