()
| 257 | |
| 258 | |
| 259 | def _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 | |
| 268 | def _build_remote_browser_http_timeout(read_timeout: float) -> Any: |
no test coverage detected