初始化客户端。 参数: base_url: API密钥管理器服务的基础URL
(self, base_url: str = "http://localhost:8002")
| 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密钥。 |
nothing calls this directly
no outgoing calls
no test coverage detected