From 8f66ea7088094d18531c680b26f410dece227c5e Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 30 Jun 2023 16:47:59 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(loading.py):=20add=20missing?= =?UTF-8?q?=20return=20statement=20to=20instantiate=5Fllm=20function=20The?= =?UTF-8?q?=20missing=20return=20statement=20caused=20the=20function=20to?= =?UTF-8?q?=20not=20return=20any=20value=20when=20the=20node=5Ftype=20is?= =?UTF-8?q?=20not=20"VertexAI".=20Adding=20the=20return=20statement=20ensu?= =?UTF-8?q?res=20that=20the=20function=20returns=20the=20instantiated=20cl?= =?UTF-8?q?ass=20object=20with=20the=20provided=20parameters=20in=20all=20?= =?UTF-8?q?cases.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/interface/initialize/loading.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/langflow/interface/initialize/loading.py b/src/backend/langflow/interface/initialize/loading.py index a48ae28ec..f214ab74b 100644 --- a/src/backend/langflow/interface/initialize/loading.py +++ b/src/backend/langflow/interface/initialize/loading.py @@ -95,6 +95,7 @@ def instantiate_llm(node_type, class_object, params: Dict): # False if condition is True if node_type == "VertexAI": return initialize_vertexai(class_object=class_object, params=params) + return class_object(**params) def instantiate_memory(node_type, class_object, params):