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

Function _max_tier

uncommon_route/proxy.py:1556–1561  ·  view source on GitHub ↗
(left: Tier | None, right: Tier | None)

Source from the content-addressed store, hash-verified

1554
1555
1556def _max_tier(left: Tier | None, right: Tier | None) -> Tier | None:
1557 if left is None:
1558 return right
1559 if right is None:
1560 return left
1561 return left if _TIER_RANK[left] >= _TIER_RANK[right] else right
1562
1563
1564def _reasoning_preference(body: dict[str, Any]) -> tuple[bool, Tier | None]:

Callers 2

markFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected