From aadfcd040d12d7fad7bac43b0a4a157347f04c4e Mon Sep 17 00:00:00 2001 From: Jason M Date: Tue, 11 Jul 2023 20:38:33 -0400 Subject: [PATCH] Update How_to_call_functions_with_chat_models.ipynb (#545) Updates "min" parameter to "multiplier". Should run the same. --- examples/How_to_call_functions_with_chat_models.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/How_to_call_functions_with_chat_models.ipynb b/examples/How_to_call_functions_with_chat_models.ipynb index 3f6baba7..ea4f567d 100644 --- a/examples/How_to_call_functions_with_chat_models.ipynb +++ b/examples/How_to_call_functions_with_chat_models.ipynb @@ -81,7 +81,7 @@ "metadata": {}, "outputs": [], "source": [ - "@retry(wait=wait_random_exponential(min=1, max=40), stop=stop_after_attempt(3))\n", + "@retry(wait=wait_random_exponential(multiplier=1, max=40), stop=stop_after_attempt(3))\n", "def chat_completion_request(messages, functions=None, function_call=None, model=GPT_MODEL):\n", " headers = {\n", " \"Content-Type\": \"application/json\",\n",