From 3183c525949d9851f8b1acd234a8ba652cb677cf Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 4 Oct 2023 17:42:41 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(constants.py):=20update=20?= =?UTF-8?q?CLASSES=5FTO=5FREMOVE=20list=20to=20include=20"RunnableSerializ?= =?UTF-8?q?able"=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "CLASSES_TO_REMOVE" list in the constants.py file has been updated to include the "RunnableSerializable" class. This change was made to ensure that the "RunnableSerializable" class is properly removed when processing the list of classes to remove. --- src/backend/langflow/template/frontend_node/constants.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/template/frontend_node/constants.py b/src/backend/langflow/template/frontend_node/constants.py index 8800a3755..a213a2744 100644 --- a/src/backend/langflow/template/frontend_node/constants.py +++ b/src/backend/langflow/template/frontend_node/constants.py @@ -65,4 +65,11 @@ INPUT_KEY_INFO = """The variable to be used as Chat Input when more than one var OUTPUT_KEY_INFO = """The variable to be used as Chat Output (e.g. answer in a ConversationalRetrievalChain)""" -CLASSES_TO_REMOVE = ["Serializable", "BaseModel", "object", "Runnable", "Generic"] +CLASSES_TO_REMOVE = [ + "RunnableSerializable", + "Serializable", + "BaseModel", + "object", + "Runnable", + "Generic", +]