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

Function _get_pricing

uncommon_route/proxy.py:313–315  ·  view source on GitHub ↗

Return live pricing when available, otherwise static fallback.

()

Source from the content-addressed store, hash-verified

311
312
313def _get_pricing() -> dict[str, ModelPricing]:
314 """Return live pricing when available, otherwise static fallback."""
315 return _active_pricing or DEFAULT_MODEL_PRICING
316
317
318def _estimate_cost(model: str, input_tokens: int, output_tokens: int) -> float:

Callers 9

_estimate_costFunction · 0.85
_parse_usage_costFunction · 0.85
_parse_usage_performanceFunction · 0.85
_build_selector_previewFunction · 0.85
_handle_chat_coreFunction · 0.85
anthropic_native_sseFunction · 0.85
anthropic_sseFunction · 0.85
sse_passthroughFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected