fix test error
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user