From 3c1b86ebe68d7c40a8a19e7e9c19d50643f969d0 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 27 Jun 2023 16:38:42 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(chat.py):=20change=20event?= =?UTF-8?q?=20name=20from=20"input=5Fkeys"=20to=20"message"=20in=20stream?= =?UTF-8?q?=5Fbuild=20function=20The=20event=20name=20was=20changed=20from?= =?UTF-8?q?=20"input=5Fkeys"=20to=20"message"=20to=20improve=20semantics?= =?UTF-8?q?=20and=20consistency=20with=20the=20rest=20of=20the=20codebase.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/api/v1/chat.py b/src/backend/langflow/api/v1/chat.py index 5054bf107..44ea0ca8a 100644 --- a/src/backend/langflow/api/v1/chat.py +++ b/src/backend/langflow/api/v1/chat.py @@ -125,7 +125,7 @@ async def stream_build(flow_id: str): # Now we need to check the input_keys to send them to the client if hasattr(langchain_object, "input_keys"): input_keys_response = build_input_keys_response(langchain_object) - yield str(StreamData(event="input_keys", data=input_keys_response)) + yield str(StreamData(event="message", data=input_keys_response)) chat_manager.set_cache(flow_id, langchain_object) except Exception as exc: