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

Function mark

uncommon_route/proxy.py:1569–1576  ·  view source on GitHub ↗
(value: Any, *, floor_medium: bool = False)

Source from the content-addressed store, hash-verified

1567 tier_floor: Tier | None = None
1568
1569 def mark(value: Any, *, floor_medium: bool = False) -> None:
1570 nonlocal prefers_reasoning, tier_floor
1571 normalized = str(value or "").strip().lower()
1572 if normalized in _REASONING_DISABLED_VALUES:
1573 return
1574 prefers_reasoning = True
1575 if floor_medium or normalized in _REASONING_FLOOR_VALUES:
1576 tier_floor = _max_tier(tier_floor, Tier.MEDIUM)
1577
1578 if "reasoning_effort" in body:
1579 mark(body.get("reasoning_effort"))

Callers 1

_reasoning_preferenceFunction · 0.85

Calls 1

_max_tierFunction · 0.85

Tested by

no test coverage detected