Skip to content

Commit ff0eb8f

Browse files
committed
Fix rebase conflict resolution discrepency
1 parent db4f6a7 commit ff0eb8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/providers/anthropic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)