feat(doctor): suppress duplicate filename warnings when full path syntax is active (#917)

This commit is contained in:
Will Miao
2026-05-22 22:35:06 +08:00
parent 806555cf06
commit f105500740
3 changed files with 26 additions and 0 deletions

View File

@@ -1120,6 +1120,11 @@ class ModelScanner:
if self._hash_index is None or self.model_type != "lora":
return
# When full path syntax is active, duplicate filenames across subfolders
# are fully qualified, so there is no ambiguity — skip the warning.
if get_settings_manager().get("lora_syntax_format", "legacy") == "full":
return
duplicates = self._hash_index.get_duplicate_filenames()
if not duplicates:
return