Skip to content

Commit 24086e7

Browse files
bhuvansinglaclaude
andcommitted
fix(anthropic-base): pass through top-level cache_control for automatic caching
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 31cf0b6 commit 24086e7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/providers/anthropic-base/messages.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ export const messagesBaseConfig: ProviderConfig = {
4848
param: 'thinking',
4949
required: false,
5050
},
51+
cache_control: {
52+
param: 'cache_control',
53+
required: false,
54+
},
5155
tool_choice: {
5256
param: 'tool_choice',
5357
required: false,

0 commit comments

Comments
 (0)