Skip to content

Commit 77489fd

Browse files
authored
fix: unable reading quota of api key
1 parent fe5aac6 commit 77489fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ async def __login_openai_apikey(self, account):
439439
total_available = 0.00001
440440
logger.warning("在查询 API 额度时遇到问题,请自行确认额度。")
441441

442-
if int(total_available) <= 0:
442+
if float(total_available) <= 0:
443443
raise APIKeyNoFundsError("API 余额不足,无法继续使用。")
444444
return account
445445

0 commit comments

Comments
 (0)