From 0bbcc8804d394d5a203eedeffad6b2ed052caa51 Mon Sep 17 00:00:00 2001 From: Atty Eleti Date: Mon, 28 Nov 2022 15:06:45 -0800 Subject: [PATCH] Update README for text-davinci-003 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7118f2b4a..fbc7f2839 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ const configuration = new Configuration({ const openai = new OpenAIApi(configuration); const completion = await openai.createCompletion({ - model: "text-davinci-002", + model: "text-davinci-003", prompt: "Hello world", }); console.log(completion.data.choices[0].text); @@ -39,7 +39,7 @@ All of the available API request functions additionally contain an optional fina ```javascript const completion = await openai.createCompletion( { - model: "text-davinci-002", + model: "text-davinci-003", prompt: "Hello world", }, { @@ -58,7 +58,7 @@ API requests can potentially return errors due to invalid inputs or other issues ```javascript try { const completion = await openai.createCompletion({ - model: "text-davinci-002", + model: "text-davinci-003", prompt: "Hello world", }); console.log(completion.data.choices[0].text); @@ -78,7 +78,7 @@ All breaking changes for major version releases are listed below. ### 3.0.0 -- The function signature of `createCompletion(engineId, params)` changed to `createCompletion(params)`. The value previously passed in as the `engineId` argument should now be passed in as `model` in the params object (e.g. `createCompletion({ model: "text-davinci-002, ... })`) +- The function signature of `createCompletion(engineId, params)` changed to `createCompletion(params)`. The value previously passed in as the `engineId` argument should now be passed in as `model` in the params object (e.g. `createCompletion({ model: "text-davinci-003", ... })`) ## Thanks