MCPcopy Create free account
hub / github.com/ZyphrZero/z.ai2api_python / mark_token_failure

Method mark_token_failure

app/core/upstream.py:1180–1184  ·  view source on GitHub ↗

标记token使用失败

(self, token: str, error: Exception = None)

Source from the content-addressed store, hash-verified

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,

Callers 2

chat_completionMethod · 0.95

Calls 2

get_token_poolFunction · 0.90
record_token_failureMethod · 0.45

Tested by

no test coverage detected