From 6c9177681dcde76dedd2ac924293ac8786757278 Mon Sep 17 00:00:00 2001
From: standby24x7 <standby24x7@gmail.com>
Date: Tue, 5 Mar 2024 03:42:36 +0900
Subject: [PATCH] docs: Update function "run" to "invoke" in llm_math.ipynb
 (#18505)

This patch updates function "run" to "invoke".
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>
---
 cookbook/llm_math.ipynb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cookbook/llm_math.ipynb b/cookbook/llm_math.ipynb
index 6260be2f035..054e314dd22 100644
--- a/cookbook/llm_math.ipynb
+++ b/cookbook/llm_math.ipynb
@@ -51,7 +51,7 @@
     "llm = OpenAI(temperature=0)\n",
     "llm_math = LLMMathChain.from_llm(llm, verbose=True)\n",
     "\n",
-    "llm_math.run(\"What is 13 raised to the .3432 power?\")"
+    "llm_math.invoke(\"What is 13 raised to the .3432 power?\")"
    ]
   },
   {