refactor: 移除默认 gpt-4o 模型,模型字段改为手动输入并列出可选视觉模型

This commit is contained in:
2026-07-18 18:23:13 +08:00
parent 8f7276ca1d
commit 26c6ad2c50
4 changed files with 23 additions and 8 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ function getStore() {
defaults: {
apiKey: '',
baseUrl: 'https://api.siliconflow.cn/v1',
model: 'gpt-4o',
model: '',
shortcut: 'Alt+Q',
theme: 'light',
fontSize: 14,
@@ -167,7 +167,7 @@ export function setupIpc(win: BrowserWindow): void {
const apiMsg = res?.error?.message || res?.error || res?.message || ''
const allMsg = (apiMsg + ' ' + (err.message || '')).toLowerCase()
if (allMsg.includes('does not support image') || allMsg.includes('image input') || allMsg.includes('not support image')) {
throw new Error('当前模型不支持图片输入,请在设置中更换为支持多模态的模型(如 gpt-4o、qwen-vl 等)')
throw new Error('当前模型不支持图片输入,请在设置中更换为支持多模态的视觉模型')
}
throw new Error(apiMsg || err.message || 'AI grading failed')
}