mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 03:52:10 +00:00
docs: Update function "run" to "invoke" (#18499)
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>
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"checker_chain = LLMCheckerChain.from_llm(llm, verbose=True)\n",
|
"checker_chain = LLMCheckerChain.from_llm(llm, verbose=True)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"checker_chain.run(text)"
|
"checker_chain.invoke(text)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user