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

@@ -1177,6 +1177,12 @@ class ModelQueryHandler:
async def find_filename_conflicts(self, request: web.Request) -> web.Response:
try:
settings = get_settings_manager()
if settings.get("lora_syntax_format", "legacy") == "full":
return web.json_response(
{"success": True, "conflicts": [], "count": 0}
)
duplicates = self._service.find_duplicate_filenames()
result = []
cache = await self._service.scanner.get_cached_data()