Refactor: QWenCV release temp path (#11122)

### What problem does this PR solve?

QWenCV release temp path

### Type of change
- [x] Refactoring
This commit is contained in:
Stephen Hu
2025-11-10 10:15:37 +08:00
committed by GitHub
parent 1cd54832b5
commit 82ca2e0378

View File

@ -303,7 +303,9 @@ class QWenCV(GptV4):
return call_api()
except Exception as e2:
raise RuntimeError(f"Both default and intl endpoint failed.\nFirst error: {e1}\nSecond error: {e2}")
finally:
if tmp_path and tmp_path.exists():
tmp_path.unlink()
class HunyuanCV(GptV4):