@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.
@@ -1308,13 +1308,13 @@ var FRAMEWORK_ALLOWED_PROVIDERS = {
1308
1308
  };
1309
1309
  function isModelCompatibleWithFramework(modelId, framework) {
1310
1310
  const allowed = FRAMEWORK_ALLOWED_PROVIDERS[framework];
1311
- if (allowed === "all") return true;
1311
+ if (!allowed || allowed === "all") return true;
1312
1312
  const provider = modelId.split(".")[0];
1313
1313
  return allowed.includes(provider);
1314
1314
  }
1315
1315
  function getCompatibleModels(models, framework) {
1316
1316
  const allowed = FRAMEWORK_ALLOWED_PROVIDERS[framework];
1317
- if (allowed === "all") return models;
1317
+ if (!allowed || allowed === "all") return models;
1318
1318
  return models.filter((model) => {
1319
1319
  const provider = model.id.split(".")[0];
1320
1320
  return allowed.includes(provider);