(model fantasy.LanguageModel)
| 1920 | } |
| 1921 | |
| 1922 | func 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 |
no test coverage detected