mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
Update How_to_call_functions_with_chat_models.ipynb (#545)
Updates "min" parameter to "multiplier". Should run the same.
This commit is contained in:
parent
238ff54fce
commit
cd62830788
@ -81,7 +81,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"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",
|
"def chat_completion_request(messages, functions=None, function_call=None, model=GPT_MODEL):\n",
|
||||||
" headers = {\n",
|
" headers = {\n",
|
||||||
" \"Content-Type\": \"application/json\",\n",
|
" \"Content-Type\": \"application/json\",\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user