@datatechsolutions/ui 2.7.112 → 2.7.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/workflow/index.mjs
CHANGED
|
@@ -1278,13 +1278,13 @@ var FRAMEWORK_ALLOWED_PROVIDERS = {
|
|
|
1278
1278
|
};
|
|
1279
1279
|
function isModelCompatibleWithFramework(modelId, framework) {
|
|
1280
1280
|
const allowed = FRAMEWORK_ALLOWED_PROVIDERS[framework];
|
|
1281
|
-
if (allowed === "all") return true;
|
|
1281
|
+
if (!allowed || allowed === "all") return true;
|
|
1282
1282
|
const provider = modelId.split(".")[0];
|
|
1283
1283
|
return allowed.includes(provider);
|
|
1284
1284
|
}
|
|
1285
1285
|
function getCompatibleModels(models, framework) {
|
|
1286
1286
|
const allowed = FRAMEWORK_ALLOWED_PROVIDERS[framework];
|
|
1287
|
-
if (allowed === "all") return models;
|
|
1287
|
+
if (!allowed || allowed === "all") return models;
|
|
1288
1288
|
return models.filter((model) => {
|
|
1289
1289
|
const provider = model.id.split(".")[0];
|
|
1290
1290
|
return allowed.includes(provider);
|