mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-31 16:01:46 +00:00
register singature fix
This commit is contained in:
parent
23777abeb7
commit
772e23e29e
1 changed files with 2 additions and 1 deletions
|
@ -209,7 +209,7 @@ class ModelsRoutingTable(CommonRoutingTableImpl, Models):
|
|||
provider_id: Optional[str] = None,
|
||||
llama_model: Optional[str] = None,
|
||||
metadata: Optional[Dict[str, Any]] = None,
|
||||
) -> None:
|
||||
) -> Model:
|
||||
if provider_model_id is None:
|
||||
provider_model_id = model_id
|
||||
if provider_id is None:
|
||||
|
@ -232,6 +232,7 @@ class ModelsRoutingTable(CommonRoutingTableImpl, Models):
|
|||
metadata=metadata,
|
||||
)
|
||||
await self.register_object(model)
|
||||
return model
|
||||
|
||||
|
||||
class ShieldsRoutingTable(CommonRoutingTableImpl, Shields):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue