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

Function routing_mode_from_model

uncommon_route/router/config.py:74–81  ·  view source on GitHub ↗
(model_id: str)

Source from the content-addressed store, hash-verified

72
73
74def routing_mode_from_model(model_id: str) -> RoutingMode | None:
75 normalized = (model_id or "").strip().lower()
76 if normalized in VIRTUAL_MODEL_ALIASES:
77 return VIRTUAL_MODEL_ALIASES[normalized]
78 for mode, virtual_model in VIRTUAL_MODEL_IDS.items():
79 if normalized == virtual_model:
80 return mode
81 return None
82
83
84def virtual_model_entries() -> list[dict[str, str]]:

Callers 5

_is_virtual_model_nameFunction · 0.90
_build_selector_previewFunction · 0.90
_handle_chat_coreFunction · 0.90
handle_messagesFunction · 0.90

Calls

no outgoing calls

Tested by 1