MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / supports_caching

Method supports_caching

crates/opencode-provider/src/transform.rs:44–52  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

42 }
43
44 pub fn supports_caching(&self) -> bool {
45 matches!(
46 self,
47 ProviderType::Anthropic
48 | ProviderType::OpenRouter
49 | ProviderType::Bedrock
50 | ProviderType::Gateway
51 )
52 }
53
54 pub fn supports_interleaved_thinking(&self) -> bool {
55 matches!(self, ProviderType::Anthropic | ProviderType::OpenRouter)

Callers 1

apply_cachingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected