MCPcopy Create free account
hub / github.com/enowdev/enowX-Coder / uses_anthropic_format

Method uses_anthropic_format

src-tauri/src/models/provider.rs:32–36  ·  view source on GitHub ↗

Returns `true` when the provider should use the Anthropic Messages API format (content blocks, system-as-top-level, prompt caching).

(&self)

Source from the content-addressed store, hash-verified

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
39pub fn fixed_base_url(provider_type: &str) -> Option<&'static str> {

Callers 4

list_modelsFunction · 0.80
send_message_innerFunction · 0.80
generate_titleFunction · 0.80
run_react_loopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected