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

Method pool_table

uncommon_route/model_map.py:679–701  ·  view source on GitHub ↗

Full model pool for the new dashboard — provider-grouped view.

(self)

Source from the content-addressed store, hash-verified

677 return rows
678
679 def pool_table(self) -> list[dict]:
680 """Full model pool for the new dashboard — provider-grouped view."""
681 rows: list[dict] = []
682 for model_id in sorted(self._pool.keys()):
683 dm = self._pool[model_id]
684 rows.append({
685 "id": dm.id,
686 "provider": dm.provider,
687 "owned_by": dm.owned_by,
688 "pricing": {
689 "input": dm.pricing.input_price,
690 "output": dm.pricing.output_price,
691 "cached_input": dm.pricing.cached_input_price,
692 "cache_write": dm.pricing.cache_write_price,
693 },
694 "capabilities": {
695 "tool_calling": dm.capabilities.tool_calling,
696 "vision": dm.capabilities.vision,
697 "reasoning": dm.capabilities.reasoning,
698 "free": dm.capabilities.free,
699 },
700 })
701 return rows
702
703 @property
704 def discovered(self) -> bool:

Callers 1

handle_models_mappingFunction · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected