MCPcopy Create free account
hub / github.com/TQZHR/grok2api / init

Method init

app/services/api_keys.py:43–48  ·  view source on GitHub ↗

初始化加载数据

(self)

Source from the content-addressed store, hash-verified

41 logger.debug(f"[ApiKey] 初始化完成: {self.file_path}")
42
43 async def init(self):
44 """初始化加载数据"""
45 if not self._loaded:
46 await self._load_data()
47 if not self._usage_loaded:
48 await self._load_usage_data()
49
50 async def _load_data(self):
51 """加载 API Keys"""

Callers 11

add_keyMethod · 0.95
usage_for_dayMethod · 0.95
consume_daily_usageMethod · 0.95
verify_api_keyFunction · 0.45
_verify_ws_api_keyFunction · 0.45
list_api_keysFunction · 0.45
create_api_keyFunction · 0.45
update_api_keyFunction · 0.45
delete_api_keyFunction · 0.45
get_metrics_apiFunction · 0.45

Calls 2

_load_dataMethod · 0.95
_load_usage_dataMethod · 0.95

Tested by 1