From 6dad353e1c940b33c2a243b70b9a604af3a8f794 Mon Sep 17 00:00:00 2001 From: butterfly Date: Mon, 8 Apr 2024 15:33:02 +0800 Subject: [PATCH] feat: call claude api not in credential 'include' mode --- app/client/platforms/anthropic.ts | 2 +- app/constant.ts | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/client/platforms/anthropic.ts b/app/client/platforms/anthropic.ts index 673f32b11a2..6472fd8bb0a 100644 --- a/app/client/platforms/anthropic.ts +++ b/app/client/platforms/anthropic.ts @@ -189,7 +189,7 @@ export class ClaudeApi implements LLMApi { "anthropic-version": accessStore.anthropicApiVersion, Authorization: getAuthKey(accessStore.anthropicApiKey), }, - credentials: "include" as RequestCredentials, + // credentials: "include" as RequestCredentials, }; if (shouldStream) { diff --git a/app/constant.ts b/app/constant.ts index df8627778e9..9570737d4d6 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -327,15 +327,6 @@ export const DEFAULT_MODELS = [ providerType: "anthropic", }, }, - { - name: "claude-3", - available: true, - provider: { - id: "anthropic", - providerName: "Anthropic", - providerType: "anthropic", - }, - }, { name: "claude-3-opus-20240229", available: true,