From ff0eb8fa7774290d86c781c6944707fa6b588815 Mon Sep 17 00:00:00 2001 From: Dennis Bartlett Date: Thu, 27 Feb 2025 16:18:49 -0800 Subject: [PATCH] Fix rebase conflict resolution discrepency --- src/api/providers/anthropic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/providers/anthropic.ts b/src/api/providers/anthropic.ts index 959916e9a8..1b087bcda7 100644 --- a/src/api/providers/anthropic.ts +++ b/src/api/providers/anthropic.ts @@ -20,7 +20,7 @@ export class AnthropicHandler implements ApiHandler { @withRetry() async *createMessage(systemPrompt: string, messages: Anthropic.Messages.MessageParam[]): ApiStream { const model = this.getModel() - let stream: AnthropicStream + let stream: AnthropicStream const modelId = model.id switch (modelId) { // 'latest' alias does not support cache_control @@ -38,7 +38,7 @@ export class AnthropicHandler implements ApiHandler { ) const lastUserMsgIndex = userMsgIndices[userMsgIndices.length - 1] ?? -1 const secondLastMsgUserIndex = userMsgIndices[userMsgIndices.length - 2] ?? -1 - stream = await this.client.beta.promptCaching.messages.create( + stream = await this.client.messages.create( { model: modelId, max_tokens: model.info.maxTokens || 8192,