diff --git a/app/client/platforms/anthropic.ts b/app/client/platforms/anthropic.ts index 91434ffcc06..d6958dfc53c 100644 --- a/app/client/platforms/anthropic.ts +++ b/app/client/platforms/anthropic.ts @@ -271,6 +271,8 @@ export class ClaudeApi implements LLMApi { toolCallMessage: any, toolCallResult: any[], ) => { + // reset index value + index = -1; // @ts-ignore requestPayload?.messages?.splice( // @ts-ignore