Add debug for direct download model name extraction

- Added debug output for direct download path
- Shows when model name is extracted from model_id
- Helps identify why model name might not be set correctly
- More comprehensive debugging for direct download scenario
This commit is contained in:
huchukato
2026-02-21 03:56:18 +01:00
parent 3af12af57f
commit 567f60c6fa
+1
View File
@@ -55,6 +55,7 @@ async def route_download_model(request):
model_name = target_model_id.split('/')[-1] if target_model_id else "Unknown Model"
model_info = {"id": target_model_id, "name": model_name}
print(f"[HF Download] Direct download file: {target_filename}")
print(f"[HF Download] Using extracted model name: {model_name}")
else:
# Get model info and file list
api = HuggingFaceAPI(resolved_api_key)