wip models

This commit is contained in:
Xi Yan 2024-09-18 15:22:36 -07:00
parent 24dbe448a3
commit ce17f20468
2 changed files with 2 additions and 5 deletions

View file

@ -59,8 +59,3 @@ class Models(Protocol):
@webmethod(route="/models/get", method="POST")
async def get_model(self, model_id: str) -> ModelsGetResponse: ...
@webmethod(route="/models/register")
async def register_model(
self, model_id: str, api: str, provider_spec: Dict[str, str]
) -> ModelsRegisterResponse: ...

View file

@ -39,6 +39,8 @@ class MetaReferenceModelsImpl(Models):
self.safety_api = safety_api
self.models_list = []
model = get_model_id_from_api(self.inference_api)
# TODO, make the inference route provider and use router provider to do the lookup dynamically
if isinstance(
self.inference_api,