mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
Merge 52503490d8
into d266c59c2a
This commit is contained in:
commit
c645c49924
6 changed files with 342 additions and 89 deletions
|
@ -100,6 +100,11 @@ class DiskDistributionRegistry(DistributionRegistry):
|
|||
if existing_obj and existing_obj.provider_id == obj.provider_id:
|
||||
return False
|
||||
|
||||
# Skip persistence for from_config objects - they should only exist in memory
|
||||
if hasattr(obj, "source") and obj.source == "from_config":
|
||||
logger.debug(f"Skipping persistence for from_config object {obj.type}:{obj.identifier}")
|
||||
return True
|
||||
|
||||
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