mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-31 00:10:22 +08:00
fix(ApiService.test): add getClientCompatibilityType mock to Anthropic API client for enhanced testing (#8421)
This commit is contained in:
parent
4075a13c58
commit
5ed6912e0b
@ -1602,7 +1602,8 @@ const mockAnthropicApiClient = {
|
||||
provider: {} as Provider,
|
||||
useSystemPromptForTools: true,
|
||||
getBaseURL: vi.fn(() => 'https://api.anthropic.com'),
|
||||
getApiKey: vi.fn(() => 'mock-api-key')
|
||||
getApiKey: vi.fn(() => 'mock-api-key'),
|
||||
getClientCompatibilityType: vi.fn(() => ['AnthropicAPIClient'])
|
||||
} as unknown as AnthropicAPIClient
|
||||
|
||||
const mockAnthropicApiClientStream = cloneDeep(mockAnthropicApiClient)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user