From 5a9c1ae1b71244741c7067c1fd2dc0c8571d5a62 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 27 Jun 2023 21:32:09 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20chore(schemas.py):=20add=20suppo?= =?UTF-8?q?rt=20for=20dict=20type=20in=20message=20field=20of=20ChatMessag?= =?UTF-8?q?e=20schema=20The=20message=20field=20of=20the=20ChatMessage=20s?= =?UTF-8?q?chema=20now=20supports=20a=20dictionary=20type=20in=20addition?= =?UTF-8?q?=20to=20the=20previous=20string=20and=20None=20types.=20This=20?= =?UTF-8?q?change=20was=20made=20to=20allow=20for=20more=20complex=20messa?= =?UTF-8?q?ges=20to=20be=20sent=20and=20received=20in=20the=20chat.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/api/v1/schemas.py b/src/backend/langflow/api/v1/schemas.py index ed5bf8b3b..1739310e9 100644 --- a/src/backend/langflow/api/v1/schemas.py +++ b/src/backend/langflow/api/v1/schemas.py @@ -43,7 +43,7 @@ class ChatMessage(BaseModel): """Chat message schema.""" is_bot: bool = False - message: Union[str, None] = None + message: Union[str, None, dict] = None type: str = "human"