refactor: enhance recipe fingerprint calculation and return detailed recipe information; remove unnecessary console logs in import managers

This commit is contained in:
Will Miao
2025-05-08 16:54:49 +08:00
parent 92fdc16fe6
commit 75a95f0109
4 changed files with 12 additions and 12 deletions

View File

@@ -148,8 +148,8 @@ def calculate_recipe_fingerprint(loras):
if not hash_value:
continue
# Normalize strength to 2 decimal places
strength = round(float(lora.get("strength", 1.0)), 2)
# Normalize strength to 2 decimal places (check both strength and weight fields)
strength = round(float(lora.get("strength", lora.get("weight", 1.0))), 2)
valid_loras.append((hash_value, strength))