[Fix] Broken Model Creation (#356)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#356
This commit is contained in:
2026-03-12 11:34:14 +13:00
parent bafbf11322
commit 8cdf91c8fb

View File

@ -917,7 +917,7 @@ def package_models(request, package_uuid):
params["threshold"] = threshold
mod = EnviFormer.create(**params)
elif model_type == "mlrr":
elif model_type == "ml-relative-reasoning":
# ML Specific
threshold = float(request.POST.get("model-threshold", 0.5))
# TODO handle additional fingerprinter
@ -941,7 +941,7 @@ def package_models(request, package_uuid):
params["app_domain_local_compatibility_threshold"] = local_compatibility_threshold
mod = MLRelativeReasoning.create(**params)
elif model_type == "rbrr":
elif model_type == "rule-based-relative-reasoning":
params["rule_packages"] = [
PackageManager.get_package_by_url(current_user, p) for p in rule_packages
]