Преглед изворни кода

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

Yidadaa пре 1 година
родитељ
комит
45b88ebb2a
1 измењених фајлова са 1 додато и 1 уклоњено
  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") {