Skip to content

Commit 01c6d5d

Browse files
authored
Merge pull request #29 from openai/dev/atty/text-davinci-003
Update README for text-davinci-003
2 parents 0fc84b6 + 21700e0 commit 01c6d5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const configuration = new Configuration({
2323
const openai = new OpenAIApi(configuration);
2424

2525
const completion = await openai.createCompletion({
26-
model: "text-davinci-002",
26+
model: "text-davinci-003",
2727
prompt: "Hello world",
2828
});
2929
console.log(completion.data.choices[0].text);
@@ -39,7 +39,7 @@ All of the available API request functions additionally contain an optional fina
3939
```javascript
4040
const completion = await openai.createCompletion(
4141
{
42-
model: "text-davinci-002",
42+
model: "text-davinci-003",
4343
prompt: "Hello world",
4444
},
4545
{
@@ -58,7 +58,7 @@ API requests can potentially return errors due to invalid inputs or other issues
5858
```javascript
5959
try {
6060
const completion = await openai.createCompletion({
61-
model: "text-davinci-002",
61+
model: "text-davinci-003",
6262
prompt: "Hello world",
6363
});
6464
console.log(completion.data.choices[0].text);
@@ -78,7 +78,7 @@ All breaking changes for major version releases are listed below.
7878

7979
### 3.0.0
8080

81-
- 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, ... })`)
81+
- 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", ... })`)
8282
- Replace any `createCompletionFromModel(params)` calls with `createCompletion(params)`
8383

8484
## Thanks

0 commit comments

Comments
 (0)