refactor: 移除默认 gpt-4o 模型,模型字段改为手动输入并列出可选视觉模型
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user