MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / get_provider

Function get_provider

backend/app/services/model/model_schema.py:177–184  ·  view source on GitHub ↗

Get a provider by provider_id. :param provider_id: the provider id. :return: the provider or None if not found.

(provider_id: str)

Source from the content-addressed store, hash-verified

175
176
177def get_provider(provider_id: str) -> Optional[Provider]:
178 """
179 Get a provider by provider_id.
180
181 :param provider_id: the provider id.
182 :return: the provider or None if not found.
183 """
184 return _provider_dict.get(provider_id)
185
186
187def get_model_schema(model_schema_id: str) -> Optional[ModelSchema]:

Callers 3

verify_model_credentialsFunction · 0.90
providerMethod · 0.90
api_get_providerFunction · 0.50

Calls 1

getMethod · 0.45

Tested by

no test coverage detected