fix(getSdkClient): add authToken to anthropic client initialization for claude code

This commit is contained in:
Vaayne 2025-09-22 15:02:24 +08:00
parent 958edc0017
commit 26ac9e3c2e

View File

@ -72,6 +72,7 @@ export function getSdkClient(provider: Provider, oauthToken?: string | null): An
}
return new Anthropic({
apiKey: provider.apiKey,
authToken: provider.apiKey,
baseURL: provider.apiHost,
dangerouslyAllowBrowser: true,
defaultHeaders: {