File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class AnthropicHandler implements ApiHandler {
2020 @withRetry ( )
2121 async * createMessage ( systemPrompt : string , messages : Anthropic . Messages . MessageParam [ ] ) : ApiStream {
2222 const model = this . getModel ( )
23- let stream : AnthropicStream < Anthropic . Beta . PromptCaching . Messages . RawPromptCachingBetaMessageStreamEvent >
23+ let stream : AnthropicStream < Anthropic . RawMessageStreamEvent >
2424 const modelId = model . id
2525 switch ( modelId ) {
2626 // 'latest' alias does not support cache_control
@@ -38,7 +38,7 @@ export class AnthropicHandler implements ApiHandler {
3838 )
3939 const lastUserMsgIndex = userMsgIndices [ userMsgIndices . length - 1 ] ?? - 1
4040 const secondLastMsgUserIndex = userMsgIndices [ userMsgIndices . length - 2 ] ?? - 1
41- stream = await this . client . beta . promptCaching . messages . create (
41+ stream = await this . client . messages . create (
4242 {
4343 model : modelId ,
4444 max_tokens : model . info . maxTokens || 8192 ,
You can’t perform that action at this time.
0 commit comments