From c49c592175482e7d00d380a275a9dc69fe58c6a0 Mon Sep 17 00:00:00 2001 From: icarus Date: Thu, 30 Oct 2025 17:24:59 +0800 Subject: [PATCH] test: update mock models configuration in compatibility tests Replace SYSTEM_MODELS.defaultModel array with DEFAULT_MODEL_MAP object to better reflect actual model structure --- .../__tests__/index.clientCompatibilityTypes.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/aiCore/legacy/clients/__tests__/index.clientCompatibilityTypes.test.ts b/src/renderer/src/aiCore/legacy/clients/__tests__/index.clientCompatibilityTypes.test.ts index 3157e4b63a..ba7706522a 100644 --- a/src/renderer/src/aiCore/legacy/clients/__tests__/index.clientCompatibilityTypes.test.ts +++ b/src/renderer/src/aiCore/legacy/clients/__tests__/index.clientCompatibilityTypes.test.ts @@ -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: [],