From a2779738aa5dea686dd86ba71effbaed454675d5 Mon Sep 17 00:00:00 2001 From: standby24x7 Date: Wed, 6 Mar 2024 05:52:48 +0900 Subject: [PATCH] docs:Update function "run" to "invoke" in smart_llm.ipynb (#18568) This patch updates function "run" to "invoke" in smart_llm.ipynb. Without this patch, you see following warning. LangChainDeprecationWarning: The function `run` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead. Signed-off-by: Masanari Iida Signed-off-by: Masanari Iida --- cookbook/smart_llm.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/smart_llm.ipynb b/cookbook/smart_llm.ipynb index 0e617617e3..dfab183cb7 100644 --- a/cookbook/smart_llm.ipynb +++ b/cookbook/smart_llm.ipynb @@ -209,7 +209,7 @@ } ], "source": [ - "chain.run({})" + "chain.invoke({})" ] }, {