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

This commit is contained in:
butterfly 2024-04-08 15:33:02 +08:00
parent 5446d8d4a2
commit 6dad353e1c
2 changed files with 1 additions and 10 deletions

View File

@ -189,7 +189,7 @@ export class ClaudeApi implements LLMApi {
"anthropic-version": accessStore.anthropicApiVersion, "anthropic-version": accessStore.anthropicApiVersion,
Authorization: getAuthKey(accessStore.anthropicApiKey), Authorization: getAuthKey(accessStore.anthropicApiKey),
}, },
credentials: "include" as RequestCredentials, // credentials: "include" as RequestCredentials,
}; };
if (shouldStream) { if (shouldStream) {

View File

@ -327,15 +327,6 @@ export const DEFAULT_MODELS = [
providerType: "anthropic", providerType: "anthropic",
}, },
}, },
{
name: "claude-3",
available: true,
provider: {
id: "anthropic",
providerName: "Anthropic",
providerType: "anthropic",
},
},
{ {
name: "claude-3-opus-20240229", name: "claude-3-opus-20240229",
available: true, available: true,