diff --git a/README.md b/README.md index 4dbbdcb40..17b85793b 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", ... })`) - Replace any `createCompletionFromModel(params)` calls with `createCompletion(params)` ## Thanks