Skip to content

Examples and guides for using the OpenAI API

Update How_to_call_functions_with_chat_models.ipynb (#545)

Jason Mcd628307889b
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",