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

Function _provider_and_core

uncommon_route/router/quality.py:31–36  ·  view source on GitHub ↗
(model_id: str)

Source from the content-addressed store, hash-verified

29
30
31def _provider_and_core(model_id: str) -> tuple[str, str]:
32 value = str(model_id or "").strip().lower()
33 if "/" in value:
34 provider, core = value.split("/", 1)
35 return provider, core
36 return "", value
37
38
39def _contains_any(text: str, needles: tuple[str, ...]) -> bool:

Callers 1

model_served_qualityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected