Merge branch 'chat_and_cache' of personal:logspace-ai/langflow into chat_and_cache

This commit is contained in:
anovazzi1 2023-04-28 23:42:06 -03:00
commit 3995a8bd5a
4 changed files with 5 additions and 16 deletions

View file

@ -37,7 +37,9 @@ class ChainCreator(LangChainTypeCreator):
try:
if name in get_custom_nodes(self.type_name).keys():
return get_custom_nodes(self.type_name)[name]
return build_template_from_class(name, self.type_to_loader_dict)
return build_template_from_class(
name, self.type_to_loader_dict, add_function=True
)
except ValueError as exc:
raise ValueError("Chain not found") from exc
except AttributeError as exc:

View file

@ -216,7 +216,7 @@ class InitializeAgentNode(FrontendNode):
],
)
description: str = """Construct a json agent from an LLM and tools."""
base_classes: list[str] = ["AgentExecutor"]
base_classes: list[str] = ["AgentExecutor", "function"]
def to_dict(self):
return super().to_dict()

View file

@ -40,7 +40,6 @@
"reactflow": "^11.5.5",
"tailwindcss": "^3.2.6",
"typescript": "^4.9.5",
"use-debounce": "^9.0.4",
"web-vitals": "^2.1.4"
}
},
@ -17045,17 +17044,6 @@
"requires-port": "^1.0.0"
}
},
"node_modules/use-debounce": {
"version": "9.0.4",
"resolved": "https://registry.npmjs.org/use-debounce/-/use-debounce-9.0.4.tgz",
"integrity": "sha512-6X8H/mikbrt0XE8e+JXRtZ8yYVvKkdYRfmIhWZYsP8rcNs9hk3APV8Ua2mFkKRLcJKVdnX2/Vwrmg2GWKUQEaQ==",
"engines": {
"node": ">= 10.0.0"
},
"peerDependencies": {
"react": ">=16.8.0"
}
},
"node_modules/use-sync-external-store": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",

View file

@ -35,7 +35,6 @@
"reactflow": "^11.5.5",
"tailwindcss": "^3.2.6",
"typescript": "^4.9.5",
"use-debounce": "^9.0.4",
"web-vitals": "^2.1.4"
},
"scripts": {
@ -62,5 +61,5 @@
"last 1 safari version"
]
},
"proxy": "http://127.0.0.1:7860"
"proxy": "http://backend:7860"
}