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

Function _sync_virtual_debug_headers

uncommon_route/proxy.py:4884–4899  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4882 )
4883
4884 def _sync_virtual_debug_headers() -> None:
4885 if not is_virtual:
4886 return
4887 _set_header(debug_headers, "x-uncommon-route-model", selected_model)
4888 _set_header(debug_headers, "x-uncommon-route-method", route_method)
4889 if served_quality_value:
4890 _set_header(debug_headers, "x-uncommon-route-served-quality", served_quality_value)
4891 if capability_lane_value:
4892 _set_header(debug_headers, "x-uncommon-route-capability-lane", capability_lane_value)
4893 _set_header(debug_headers, "x-uncommon-route-lane", capability_lane_value)
4894 _set_route_strategy_headers(
4895 debug_headers,
4896 transport_decision=transport_decision,
4897 cache_plan=cache_plan,
4898 )
4899 _set_header(debug_headers, "x-uncommon-route-reasoning", reasoning)
4900
4901 def _apply_attempt(
4902 attempt_payload: dict[str, Any],

Callers 1

_apply_attemptFunction · 0.85

Calls 2

_set_headerFunction · 0.85

Tested by

no test coverage detected