From a0aa88f0391b437aeb379c291c47d9a9bb5dcf37 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 6 Aug 2023 12:28:05 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20chore(types.py):=20import=20`mer?= =?UTF-8?q?ge=5Fnested=5Fdicts=5Fwith=5Frenaming`=20from=20`langflow.api.u?= =?UTF-8?q?tils`=20to=20use=20it=20in=20`build=5Flangchain=5Fcustom=5Fcomp?= =?UTF-8?q?onent=5Flist=5Ffrom=5Fpath`=20function=20=F0=9F=90=9B=20fix(typ?= =?UTF-8?q?es.py):=20replace=20`merge=5Fnested=5Fdicts`=20with=20`merge=5F?= =?UTF-8?q?nested=5Fdicts=5Fwith=5Frenaming`=20in=20`build=5Flangchain=5Fc?= =?UTF-8?q?ustom=5Fcomponent=5Flist=5Ffrom=5Fpath`=20function=20to=20fix?= =?UTF-8?q?=20a=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/interface/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/interface/types.py b/src/backend/langflow/interface/types.py index 668956e07..76dc144a0 100644 --- a/src/backend/langflow/interface/types.py +++ b/src/backend/langflow/interface/types.py @@ -1,6 +1,7 @@ import ast import contextlib from typing import Any +from langflow.api.utils import merge_nested_dicts_with_renaming from langflow.interface.agents.base import agent_creator from langflow.interface.chains.base import chain_creator from langflow.interface.custom.constants import CUSTOM_COMPONENT_SUPPORTED_TYPES @@ -422,4 +423,4 @@ def build_langchain_custom_component_list_from_path(path: str): valid_menu = build_valid_menu(valid_components) invalid_menu = build_invalid_menu(invalid_components) - return merge_nested_dicts(valid_menu, invalid_menu) + return merge_nested_dicts_with_renaming(valid_menu, invalid_menu)