mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 20:17:29 +08:00
refactor: give VersionedMemoryValue a default value
This commit is contained in:
parent
9e0630f012
commit
613d086f1e
@ -203,8 +203,8 @@ class ArrayFileSegment(ArraySegment):
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
class VersionedMemoryValue(BaseModel):
|
class VersionedMemoryValue(BaseModel):
|
||||||
current_value: str
|
current_value: str = None # type: ignore
|
||||||
versions: Mapping[str, str]
|
versions: Mapping[str, str] = dict()
|
||||||
|
|
||||||
model_config = ConfigDict(frozen=True)
|
model_config = ConfigDict(frozen=True)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user