Explorar el Código

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

Yidadaa hace 1 año
padre
commit
45b88ebb2a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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") {