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

Function _selection_modes_payload

uncommon_route/proxy.py:2367–2384  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

2365
2366
2367def _selection_modes_payload(config) -> dict[str, dict[str, float]]:
2368 return {
2369 mode.value: {
2370 "editorial": mode_config.selection.editorial,
2371 "cost": mode_config.selection.cost,
2372 "latency": mode_config.selection.latency,
2373 "reliability": mode_config.selection.reliability,
2374 "feedback": mode_config.selection.feedback,
2375 "cache_affinity": mode_config.selection.cache_affinity,
2376 "byok": mode_config.selection.byok,
2377 "free_bias": mode_config.selection.free_bias,
2378 "local_bias": mode_config.selection.local_bias,
2379 "reasoning_bias": mode_config.selection.reasoning_bias,
2380 "quality_alignment": mode_config.selection.quality_alignment,
2381 "continuity": mode_config.selection.continuity,
2382 }
2383 for mode, mode_config in config.modes.items()
2384 }
2385
2386
2387def _selection_weights_payload(config, mode_value: str) -> dict[str, float]:

Callers 2

_selector_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected