Skip to content

Commit 3d708c6

Browse files
authored
fix(chat-api): add default to avoid data missing error (#39)
1 parent 705e074 commit 3d708c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/api/hiagent_api/chat_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ class LongTermMemoryRetrieveEndChatEvent(ChatEvent):
535535
)
536536
answer: str = Field(
537537
description="answer",
538+
default="",
538539
)
539540
latency: float = Field(
540541
description="latency",
@@ -1507,6 +1508,7 @@ class ListOpt(BaseSchema):
15071508
sort: list[Sorter] = Field(
15081509
description="sort list",
15091510
serialization_alias="Sort",
1511+
default=[],
15101512
)
15111513
page_number: int = Field(
15121514
description="page number",

0 commit comments

Comments
 (0)