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

Method mapping_table

uncommon_route/model_map.py:661–677  ·  view source on GitHub ↗

Legacy mapping table for backward-compat dashboard.

(self)

Source from the content-addressed store, hash-verified

659 return out
660
661 def mapping_table(self) -> list[dict[str, str | bool | None]]:
662 """Legacy mapping table for backward-compat dashboard."""
663 from uncommon_route.router.config import DEFAULT_MODEL_PRICING
664
665 rows: list[dict[str, str | bool | None]] = []
666 for name in DEFAULT_MODEL_PRICING:
667 resolved = self.resolve(name)
668 available: bool | None = None
669 if self._discovered:
670 available = resolved in self._upstream_models
671 rows.append({
672 "internal": name,
673 "resolved": resolved,
674 "mapped": name != resolved,
675 "available": available,
676 })
677 return rows
678
679 def pool_table(self) -> list[dict]:
680 """Full model pool for the new dashboard — provider-grouped view."""

Callers 1

handle_models_mappingFunction · 0.80

Calls 2

resolveMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected