Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
576
def
get_token_pool() -> Optional[TokenPool]:
577
""
"获取全局 Token 池实例"
""
578
return
_token_pool
579
580
581
async
def
initialize_token_pool_from_db(
Callers
15
_get_authenticated_retry_limit
Method · 0.90
get_auth_info
Method · 0.90
mark_token_failure
Method · 0.90
chat_completion
Method · 0.90
_create_stream_response
Method · 0.90
run_directory_import
Function · 0.90
run_token_maintenance
Function · 0.90
get_token_pool_status
Function · 0.90
add_tokens
Function · 0.90
toggle_token
Function · 0.90
delete_token
Function · 0.90
validate_tokens
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected