mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 11:20:07 +08:00
fix(getSdkClient): add authToken to anthropic client initialization for claude code
This commit is contained in:
parent
958edc0017
commit
26ac9e3c2e
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user