You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ const configuration = new Configuration({
23
23
constopenai=newOpenAIApi(configuration);
24
24
25
25
constcompletion=awaitopenai.createCompletion({
26
-
model:"text-davinci-002",
26
+
model:"text-davinci-003",
27
27
prompt:"Hello world",
28
28
});
29
29
console.log(completion.data.choices[0].text);
@@ -39,7 +39,7 @@ All of the available API request functions additionally contain an optional fina
39
39
```javascript
40
40
constcompletion=awaitopenai.createCompletion(
41
41
{
42
-
model:"text-davinci-002",
42
+
model:"text-davinci-003",
43
43
prompt:"Hello world",
44
44
},
45
45
{
@@ -58,7 +58,7 @@ API requests can potentially return errors due to invalid inputs or other issues
58
58
```javascript
59
59
try {
60
60
constcompletion=awaitopenai.createCompletion({
61
-
model:"text-davinci-002",
61
+
model:"text-davinci-003",
62
62
prompt:"Hello world",
63
63
});
64
64
console.log(completion.data.choices[0].text);
@@ -78,7 +78,7 @@ All breaking changes for major version releases are listed below.
78
78
79
79
### 3.0.0
80
80
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", ... })`)
82
82
- Replace any `createCompletionFromModel(params)` calls with `createCompletion(params)`
0 commit comments