Skip to content

Commit

Permalink
docs:Update function "run" to "invoke" in smart_llm.ipynb (#18568)
Browse files Browse the repository at this point in the history
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 committed Mar 5, 2024
1 parent e1924b3 commit a277973
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 a277973

Please sign in to comment.