fix: remove test code and switch-mode

This commit is contained in:
mingholy.lmh 2026-02-24 16:44:00 +08:00
parent ae6716c651
commit 740f4e0949
13 changed files with 43 additions and 367 deletions

View file

@ -122,7 +122,6 @@ const MIGRATION_MAP: Record<string, string> = {
skipStartupContext: 'model.skipStartupContext',
enableOpenAILogging: 'model.enableOpenAILogging',
tavilyApiKey: 'advanced.tavilyApiKey',
visionModelPreview: 'experimental.visionModelPreview',
};
// Settings that need boolean inversion during migration (V1 -> V3)

View file

@ -28,7 +28,7 @@ describe('SettingsSchema', () => {
'mcp',
'security',
'advanced',
'experimental',
'webSearch',
];
expectedSettings.forEach((setting) => {

View file

@ -1176,28 +1176,6 @@ const SETTINGS_SCHEMA = {
description: 'Configuration for web search providers.',
showInDialog: false,
},
experimental: {
type: 'object',
label: 'Experimental',
category: 'Experimental',
requiresRestart: true,
default: {},
description: 'Setting to enable experimental features',
showInDialog: false,
properties: {
visionModelPreview: {
type: 'boolean',
label: 'Vision Model Preview',
category: 'Experimental',
requiresRestart: false,
default: true,
description:
'Enable vision model support and auto-switching functionality. When disabled, vision models like qwen-vl-max-latest will be hidden and auto-switching will not occur.',
showInDialog: false,
},
},
},
} as const satisfies SettingsSchema;
export type SettingsSchemaType = typeof SETTINGS_SCHEMA;