Skip to content

Commit 4f2e81c

Browse files
committed
feat: allow override defaultModels
1 parent b5146f2 commit 4f2e81c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugins/robot/src/js/robotSetting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const DEFAULT_MODELS = [{ label: 'DeepSeek:DeepSeek-V3', value: 'deepseek-chat
1919

2020
export const getAIModelOptions = () => {
2121
const aiRobotOptions = getOptions(meta.id)?.customCompatibleAIModels || []
22-
return [...DEFAULT_MODELS, ...aiRobotOptions]
22+
return aiRobotOptions.length ? aiRobotOptions : DEFAULT_MODELS
2323
}
2424

2525
// 这里存放的是aichat的响应式数据

0 commit comments

Comments
 (0)