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

Method get_for_model

uncommon_route/providers.py:81–86  ·  view source on GitHub ↗

Find the provider entry that covers a given model.

(self, model_id: str)

Source from the content-addressed store, hash-verified

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."""
83 for entry in self.providers.values():
84 if model_id in entry.models:
85 return entry
86 return None
87
88 def provider_names(self) -> list[str]:
89 return list(self.providers.keys())

Callers 6

test_get_for_modelMethod · 0.80
select_preferred_modelFunction · 0.80
cmd_providerFunction · 0.80
_resolve_requestMethod · 0.80
_handle_chat_coreFunction · 0.80
_prepare_attemptFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_get_for_modelMethod · 0.64