mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
test: update mock models configuration in compatibility tests
Replace SYSTEM_MODELS.defaultModel array with DEFAULT_MODEL_MAP object to better reflect actual model structure
This commit is contained in:
parent
4437871644
commit
c49c592175
@ -10,12 +10,12 @@ import type { EndpointType, Model, Provider } from '@renderer/types'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
vi.mock('@renderer/config/models', () => ({
|
||||
DEFAULT_MODEL_MAP: {
|
||||
assistant: { id: 'gpt-4', name: 'GPT-4' },
|
||||
quick: { id: 'gpt-4', name: 'GPT-4' },
|
||||
translate: { id: 'gpt-4', name: 'GPT-4' }
|
||||
},
|
||||
SYSTEM_MODELS: {
|
||||
defaultModel: [
|
||||
{ id: 'gpt-4', name: 'GPT-4' },
|
||||
{ id: 'gpt-4', name: 'GPT-4' },
|
||||
{ id: 'gpt-4', name: 'GPT-4' }
|
||||
],
|
||||
zhipu: [],
|
||||
silicon: [],
|
||||
openai: [],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user