fix(model): align rename extension detection

This commit is contained in:
Will Miao
2025-11-19 11:20:09 +08:00
parent 963f6b1383
commit 51b5261f40
2 changed files with 43 additions and 1 deletions

View File

@@ -339,7 +339,7 @@ class ModelLifecycleService:
return suffix
basename = os.path.basename(filename)
dot_index = basename.find(".")
dot_index = basename.rfind(".")
if dot_index != -1:
return basename[dot_index:]