MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _get_remote_browser_client_config

Function _get_remote_browser_client_config

src/api/admin.py:259–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257
258
259def _get_remote_browser_client_config() -> tuple[str, str, int]:
260 base_url = _normalize_http_base_url(config.remote_browser_base_url)
261 api_key = (config.remote_browser_api_key or "").strip()
262 if not api_key:
263 raise RuntimeError("远程打码服务 API Key 未配置")
264 timeout = max(5, int(config.remote_browser_timeout or 60))
265 return base_url, api_key, timeout
266
267
268def _build_remote_browser_http_timeout(read_timeout: float) -> Any:

Calls 1

_normalize_http_base_urlFunction · 0.85

Tested by

no test coverage detected