Commit b01272f 1 parent 3a3796c commit b01272f Copy full SHA for b01272f
File tree 1 file changed +1
-14
lines changed
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -108,20 +108,7 @@ export class AnthropicProvider implements Provider {
108
108
} ) ;
109
109
110
110
const tools : Anthropic . Tool [ ] = ToolManager . TOOL_SPECS . map (
111
- ( t , idx ) : Anthropic . Tool => {
112
- if ( idx == ToolManager . TOOL_SPECS . length - 1 ) {
113
- /** Assuming that the ordering when the prompt is sent to anthropic will be:
114
- * system
115
- * tools
116
- *
117
- * So marking the last tool with cache_control should use the first cache breakpoint to tag the end of this opening section.
118
- */
119
- return {
120
- ...t ,
121
- input_schema : t . input_schema as Anthropic . Messages . Tool . InputSchema ,
122
- cache_control : { type : "ephemeral" } ,
123
- } ;
124
- }
111
+ ( t ) : Anthropic . Tool => {
125
112
return {
126
113
...t ,
127
114
input_schema : t . input_schema as Anthropic . Messages . Tool . InputSchema ,
You can’t perform that action at this time.
0 commit comments