Browse Source

feat: call claude api not in credential 'include' mode

butterfly 1 year ago
parent
commit
6dad353e1c
2 changed files with 1 additions and 10 deletions
  1. 1 1
      app/client/platforms/anthropic.ts
  2. 0 9
      app/constant.ts

+ 1 - 1
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) {

+ 0 - 9
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,