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

Function get_token_pool

app/utils/token_pool.py:576–578  ·  view source on GitHub ↗

获取全局 Token 池实例

()

Source from the content-addressed store, hash-verified

574
575
576def get_token_pool() -> Optional[TokenPool]:
577 """获取全局 Token 池实例"""
578 return _token_pool
579
580
581async def initialize_token_pool_from_db(

Callers 15

get_auth_infoMethod · 0.90
mark_token_failureMethod · 0.90
chat_completionMethod · 0.90
run_directory_importFunction · 0.90
run_token_maintenanceFunction · 0.90
get_token_pool_statusFunction · 0.90
add_tokensFunction · 0.90
toggle_tokenFunction · 0.90
delete_tokenFunction · 0.90
validate_tokensFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected