Эх сурвалжийг харах

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

butterfly 1 жил өмнө
parent
commit
6dad353e1c

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