Yidadaa 1 年之前
父节点
当前提交
a913d9728c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/store/config.ts

+ 1 - 0
app/store/config.ts

@@ -137,6 +137,7 @@ export const useAppConfig = create<ChatConfigStore>()(
       allModels() {
         const customModels = get()
           .customModels.split(",")
+          .filter((v) => !!v && v.length > 0)
           .map((m) => ({ name: m, available: true }));
 
         const models = get().models.concat(customModels);