From cd628307889b94a9e9ee7c8af9756369c4345091 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 3f6baba..ea4f567 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",