Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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",
},
{
Expand All @@ -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);
Expand All @@ -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
Expand Down