From 544cb859deead851e1c50af0e328b5297201b7eb Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 27 Sep 2023 13:02:37 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix(utils.py):=20add=20suppo?= =?UTF-8?q?rt=20for=20importing=20SQLDatabaseChain=20from=20langchain=5Fex?= =?UTF-8?q?perimental.sql=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/interface/importing/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/langflow/interface/importing/utils.py b/src/backend/langflow/interface/importing/utils.py index d07222dd1..000eed205 100644 --- a/src/backend/langflow/interface/importing/utils.py +++ b/src/backend/langflow/interface/importing/utils.py @@ -144,6 +144,8 @@ def import_chain(chain: str) -> Type[Chain]: if chain in CUSTOM_CHAINS: return CUSTOM_CHAINS[chain] + if chain == "SQLDatabaseChain": + return import_class("langchain_experimental.sql.SQLDatabaseChain") return import_class(f"langchain.chains.{chain}") From 3e3579d4c69890f0ce6a93d810dfd281cb64c0d4 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 27 Sep 2023 14:34:58 -0300 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix(parameterComponent):=20r?= =?UTF-8?q?emove=20console.log=20statement=20to=20clean=20up=20code=20?= =?UTF-8?q?=F0=9F=94=A5=20chore(keypairListComponent):=20remove=20unused?= =?UTF-8?q?=20useEffect=20hook=20to=20improve=20code=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GenericNode/components/parameterComponent/index.tsx | 2 ++ src/frontend/src/components/keypairListComponent/index.tsx | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 6968d6472..5c4e7ca30 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -88,6 +88,8 @@ export default function ParameterComponent({ const handleOnNewValue = ( newValue: string | string[] | boolean | Object[] ): void => { + console.log(newValue); + let newData = cloneDeep(data); newData.node!.template[name].value = newValue; setData(newData); diff --git a/src/frontend/src/components/keypairListComponent/index.tsx b/src/frontend/src/components/keypairListComponent/index.tsx index ec8d6bf64..a2ef4f26c 100644 --- a/src/frontend/src/components/keypairListComponent/index.tsx +++ b/src/frontend/src/components/keypairListComponent/index.tsx @@ -34,10 +34,6 @@ export default function KeypairListComponent({ onChange(newInputList); }; - useEffect(() => { - if (value) onChange(value); - }, [value]); - return (