MCPcopy Create free account
hub / github.com/THESIS-AGENT/AIRouter / __init__

Method __init__

api_key_manager/client.py:9–15  ·  view source on GitHub ↗

初始化客户端。 参数: base_url: API密钥管理器服务的基础URL

(self, base_url: str = "http://localhost:8002")

Source from the content-addressed store, hash-verified

7 """与API密钥管理器服务交互的客户端。"""
8
9 def __init__(self, base_url: str = "http://localhost:8002"):
10 """初始化客户端。
11
12 参数:
13 base_url: API密钥管理器服务的基础URL
14 """
15 self.base_url = base_url.rstrip('/')
16
17 def get_api_key(self, source_name: str) -> Optional[str]:
18 """获取特定源的API密钥。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected