Skip to content

Commit

Permalink
docs: Update function "run" to "invoke" (langchain-ai#18499)
Browse files Browse the repository at this point in the history
Currently llm_checker.ipynb uses a function "run".
Update to "invoke" to avoid 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>
  • Loading branch information
standby24x7 authored and thebhulawat committed Mar 6, 2024
1 parent b2f72ed commit 91b3591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/llm_checker.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"\n",
"checker_chain = LLMCheckerChain.from_llm(llm, verbose=True)\n",
"\n",
"checker_chain.run(text)"
"checker_chain.invoke(text)"
]
},
{
Expand Down

0 comments on commit 91b3591

Please sign in to comment.