mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-03 11:19:10 +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,
|
provider: {} as Provider,
|
||||||
useSystemPromptForTools: true,
|
useSystemPromptForTools: true,
|
||||||
getBaseURL: vi.fn(() => 'https://api.anthropic.com'),
|
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
|
} as unknown as AnthropicAPIClient
|
||||||
|
|
||||||
const mockAnthropicApiClientStream = cloneDeep(mockAnthropicApiClient)
|
const mockAnthropicApiClientStream = cloneDeep(mockAnthropicApiClient)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user