MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _get_client

Function _get_client

uncommon_route/proxy.py:357–361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

355
356
357def _get_client() -> httpx.AsyncClient:
358 global _http_client
359 if _http_client is None or _http_client.is_closed:
360 _http_client = httpx.AsyncClient(timeout=httpx.Timeout(180.0, connect=10.0))
361 return _http_client
362
363
364def _content_text(value: Any) -> str:

Callers 4

_stream_upstreamFunction · 0.85
_run_taskMethod · 0.85
_post_non_stream_attemptFunction · 0.85
_open_stream_attemptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected