From 9d669a8e678bf12fa96928ff49b0271acf8c7ccc Mon Sep 17 00:00:00 2001 From: italojohnny Date: Tue, 18 Jun 2024 10:28:33 -0300 Subject: [PATCH] fix log error --- src/backend/base/langflow/api/v1/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/api/v1/chat.py b/src/backend/base/langflow/api/v1/chat.py index 2e53818ef..2d7522834 100644 --- a/src/backend/base/langflow/api/v1/chat.py +++ b/src/backend/base/langflow/api/v1/chat.py @@ -188,7 +188,7 @@ async def build_vertex( params = format_exception_message(exc) valid = False output_label = vertex.outputs[0]["name"] if vertex.outputs else "output" - logs = {output_label: [Log(message=params, type="error")]} + logs = {output_label: Log(message=params, type="error")} result_data_response = ResultDataResponse(results={}, logs=logs) artifacts = {} # If there's an error building the vertex