Browse Source

feat: close #3304 use `=` instead of `:` to map model name in CUSTOM_MODELS

Yidadaa 1 year ago
parent
commit
45b88ebb2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/utils/model.ts

+ 1 - 1
app/utils/model.ts

@@ -26,7 +26,7 @@ export function collectModelTable(
       const available = !m.startsWith("-");
       const nameConfig =
         m.startsWith("+") || m.startsWith("-") ? m.slice(1) : m;
-      const [name, displayName] = nameConfig.split(":");
+      const [name, displayName] = nameConfig.split("=");
 
       // enable or disable all models
       if (name === "all") {