(value: Any, *, floor_medium: bool = False)
| 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")) |
no test coverage detected