标记token使用失败
(self, token: str, error: Exception = None)
| 1178 | } |
| 1179 | |
| 1180 | async def mark_token_failure(self, token: str, error: Exception = None): |
| 1181 | """标记token使用失败""" |
| 1182 | token_pool = get_token_pool() |
| 1183 | if token_pool: |
| 1184 | await token_pool.record_token_failure(token, error) |
| 1185 | |
| 1186 | async def upload_image( |
| 1187 | self, |
no test coverage detected