mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-22 16:23:08 +00:00
Fix Pydantic discriminator error for backend union types
This commit is contained in:
parent
6a9b2cd61a
commit
088a6ac652
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ class StoresConfig(BaseModel):
|
|||
class PersistenceConfig(BaseModel):
|
||||
"""Unified persistence configuration."""
|
||||
|
||||
backends: dict[str, Annotated[KVStoreConfig | SqlStoreConfig, Field(discriminator="type")]] = Field(
|
||||
backends: dict[str, KVStoreConfig | SqlStoreConfig] = Field(
|
||||
description="Named backend configurations (e.g., 'default', 'cache')",
|
||||
)
|
||||
stores: StoresConfig | None = Field(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue