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:
parent
1cd54832b5
commit
82ca2e0378
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue