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

Function _estimate_baseline_cost

uncommon_route/proxy.py:326–327  ·  view source on GitHub ↗
(input_tokens: int, output_tokens: int)

Source from the content-addressed store, hash-verified

324
325
326def _estimate_baseline_cost(input_tokens: int, output_tokens: int) -> float:
327 return _estimate_cost(BASELINE_MODEL, input_tokens, output_tokens)
328
329
330def _estimate_cost_from_usage(model: str, usage: UsageMetrics) -> float | None:

Callers 1

_handle_chat_coreFunction · 0.85

Calls 1

_estimate_costFunction · 0.85

Tested by

no test coverage detected