From 71b33d8a716a6b53635e58f1b6557fbfd76eb317 Mon Sep 17 00:00:00 2001 From: sun zhun <116137513+sun-zhun@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:23:39 +0800 Subject: [PATCH] Update How_to_handle_rate_limits.ipynb (#554) Replace deprecated model "code-cushman-001" with "gpt-3.5-turbo". --- examples/How_to_handle_rate_limits.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/How_to_handle_rate_limits.ipynb b/examples/How_to_handle_rate_limits.ipynb index 5748b87d..0e70e57a 100644 --- a/examples/How_to_handle_rate_limits.ipynb +++ b/examples/How_to_handle_rate_limits.ipynb @@ -132,9 +132,9 @@ "\n", "# request a bunch of completions in a loop\n", "for _ in range(100):\n", - " openai.Completion.create(\n", - " model=\"code-cushman-001\",\n", - " prompt=\"def magic_function():\\n\\t\",\n", + " openai.ChatCompletion.create(\n", + " model=\"gpt-3.5-turbo\",\n", + " messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n", " max_tokens=10,\n", " )\n" ]