mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 22:42:25 +00:00
must override get_provider_impl also
This commit is contained in:
parent
50d16dc707
commit
38a9c119df
1 changed files with 4 additions and 0 deletions
|
|
@ -38,6 +38,10 @@ class ModelsRoutingTable(CommonRoutingTableImpl, Models):
|
|||
async def get_model(self, model_id: str) -> Model:
|
||||
return await lookup_model(self, model_id)
|
||||
|
||||
async def get_provider_impl(self, model_id: str) -> Any:
|
||||
model = await lookup_model(self, model_id)
|
||||
return self.impls_by_provider_id[model.provider_id]
|
||||
|
||||
async def register_model(
|
||||
self,
|
||||
model_id: str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue