From 2a0e33f3f4822014f7eca43114859289bc22104c Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 28 Nov 2023 15:13:09 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(chat.py):=20fix=20variable?= =?UTF-8?q?=20name=20in=20if=20condition=20to=20improve=20code=20readabili?= =?UTF-8?q?ty=20and=20maintain=20consistency?= 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 877ee07bd..a7ba20acb 100644 --- a/src/backend/langflow/api/v1/chat.py +++ b/src/backend/langflow/api/v1/chat.py @@ -170,7 +170,7 @@ async def stream_build( update_build_status(cache_service, flow_id, BuildStatus.FAILURE) vertex_id = vertex.parent_node_id if vertex.parent_is_top_level else vertex.id - if vertex_id in graph.top_level_nodes: + if vertex_id in graph.top_level_vertices: response = { "valid": valid, "params": params,