Skip to content

Commit

Permalink
docs:Update function "run" to "invoke" in smart_llm.ipynb (langchain-…
Browse files Browse the repository at this point in the history
…ai#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 <standby24x7@gmail.com>

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
  • Loading branch information
standby24x7 authored and thebhulawat committed Mar 6, 2024
1 parent 5e923c2 commit 0640faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/smart_llm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
}
],
"source": [
"chain.run({})"
"chain.invoke({})"
]
},
{
Expand Down

0 comments on commit 0640faf

Please sign in to comment.