fix test error

This commit is contained in:
duanfuxiang 2025-06-03 10:03:55 +08:00
parent 9ad5481432
commit 05aefa0fc7
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ describe('parseSmartCopilotSettings', () => {
groqApiKey: '',
deepseekApiKey: '',
chatModelId: '',
mcpEnabled: false,
collectedChatModels: [],
chatModelProvider: 'OpenRouter',
applyModelId: '',
@ -201,6 +202,7 @@ describe('settings migration', () => {
deepseekApiKey: '',
collectedChatModels: [],
chatModelId: '',
mcpEnabled: false,
chatModelProvider: 'OpenRouter',
applyModelId: '',
applyModelProvider: 'OpenRouter',

View File

@ -221,7 +221,7 @@ export const InfioSettingsSchema = z.object({
openaicompatibleProvider: OpenAICompatibleProviderSchema,
// MCP Servers
mcpEnabled: z.boolean().catch(true),
mcpEnabled: z.boolean().catch(false),
// Chat Model start list
collectedChatModels: z.array(z.object({