Skip to content

Commit

Permalink
Merge pull request openai#29 from openai/dev/atty/text-davinci-003
Browse files Browse the repository at this point in the history
Update README for text-davinci-003
  • Loading branch information
schnerd committed Dec 24, 2022
2 parents 0fc84b6 + 21700e0 commit 01c6d5d
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 01c6d5d

Please sign in to comment.