MCPcopy Index your code
hub / github.com/coder/coder / shouldApplyAnthropicPromptCaching

Function shouldApplyAnthropicPromptCaching

coderd/x/chatd/chatloop/chatloop.go:1922–1927  ·  view source on GitHub ↗
(model fantasy.LanguageModel)

Source from the content-addressed store, hash-verified

1920}
1921
1922func shouldApplyAnthropicPromptCaching(model fantasy.LanguageModel) bool {
1923 if model == nil {
1924 return false
1925 }
1926 return model.Provider() == fantasyanthropic.Name
1927}
1928
1929// addAnthropicPromptCaching mutates messages in-place, setting
1930// ProviderOptions for Anthropic prompt caching on the last system

Callers 1

Calls 1

ProviderMethod · 0.45

Tested by

no test coverage detected