mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
Update How_to_handle_rate_limits.ipynb (#554)
Replace deprecated model "code-cushman-001" with "gpt-3.5-turbo".
This commit is contained in:
parent
3ce532c03c
commit
950246dd08
@ -132,9 +132,9 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"# request a bunch of completions in a loop\n",
|
"# request a bunch of completions in a loop\n",
|
||||||
"for _ in range(100):\n",
|
"for _ in range(100):\n",
|
||||||
" openai.Completion.create(\n",
|
" openai.ChatCompletion.create(\n",
|
||||||
" model=\"code-cushman-001\",\n",
|
" model=\"gpt-3.5-turbo\",\n",
|
||||||
" prompt=\"def magic_function():\\n\\t\",\n",
|
" messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n",
|
||||||
" max_tokens=10,\n",
|
" max_tokens=10,\n",
|
||||||
" )\n"
|
" )\n"
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user