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

Function _parse_usage_performance

uncommon_route/proxy.py:350–354  ·  view source on GitHub ↗
(content: bytes)

Source from the content-addressed store, hash-verified

348
349
350def _parse_usage_performance(content: bytes) -> tuple[float | None, float | None]:
351 usage = parse_usage_metrics(content, "", _get_pricing())
352 if usage is None:
353 return None, None
354 return usage.ttft_ms, usage.tps
355
356
357def _get_client() -> httpx.AsyncClient:

Callers

nothing calls this directly

Calls 2

parse_usage_metricsFunction · 0.90
_get_pricingFunction · 0.85

Tested by

no test coverage detected