mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 01:02:36 +00:00
fix(models): always prefix models with provider_id when registering
This commit is contained in:
parent
f205ab6f6c
commit
d8be3111db
6 changed files with 13 additions and 73 deletions
|
|
@ -102,6 +102,9 @@ class DiskDistributionRegistry(DistributionRegistry):
|
|||
"Unregister it first if you want to replace it."
|
||||
)
|
||||
|
||||
if "sentence-transformers/sentence-transformers" in obj.identifier:
|
||||
raise Exception("OMG")
|
||||
|
||||
await self.kvstore.set(
|
||||
KEY_FORMAT.format(type=obj.type, identifier=obj.identifier),
|
||||
obj.model_dump_json(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue