Skip to content

Commit

Permalink
docs: Update function "run" to "invoke" in fake_llm.ipynb (#19570)
Browse files Browse the repository at this point in the history
This patch updates function "run" to "invoke" in fake_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 <[email protected]>
  • Loading branch information
standby24x7 authored and hinthornw committed Apr 26, 2024
1 parent d912472 commit 05f963c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/fake_llm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
}
],
"source": [
"agent.run(\"whats 2 + 2\")"
"agent.invoke(\"whats 2 + 2\")"
]
},
{
Expand Down

0 comments on commit 05f963c

Please sign in to comment.