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

Method keyed_models

uncommon_route/providers.py:74–79  ·  view source on GitHub ↗

All model IDs backed by a user-provided key.

(self)

Source from the content-addressed store, hash-verified

72 providers: dict[str, ProviderEntry] = field(default_factory=dict)
73
74 def keyed_models(self) -> set[str]:
75 """All model IDs backed by a user-provided key."""
76 result: set[str] = set()
77 for entry in self.providers.values():
78 result.update(entry.models)
79 return result
80
81 def get_for_model(self, model_id: str) -> ProviderEntry | None:
82 """Find the provider entry that covers a given model."""

Callers 7

test_empty_configMethod · 0.80
test_keyed_modelsMethod · 0.80
select_preferred_modelFunction · 0.80
cmd_providerFunction · 0.80
_build_selector_previewFunction · 0.80
handle_healthFunction · 0.80
_handle_chat_coreFunction · 0.80

Calls 1

updateMethod · 0.45

Tested by 2

test_empty_configMethod · 0.64
test_keyed_modelsMethod · 0.64