Comparing version 2.0.5 to 3.0.0
@@ -7,3 +7,3 @@ /* tslint:disable */ | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -10,0 +10,0 @@ * |
@@ -7,3 +7,3 @@ /* tslint:disable */ | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -10,0 +10,0 @@ * |
@@ -7,3 +7,3 @@ /* tslint:disable */ | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -10,0 +10,0 @@ * |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -8,0 +8,0 @@ * |
@@ -8,3 +8,3 @@ "use strict"; | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -11,0 +11,0 @@ * |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -8,0 +8,0 @@ * |
@@ -8,3 +8,3 @@ "use strict"; | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -11,0 +11,0 @@ * |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -8,0 +8,0 @@ * |
@@ -8,3 +8,3 @@ "use strict"; | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -11,0 +11,0 @@ * |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -8,0 +8,0 @@ * |
@@ -8,3 +8,3 @@ "use strict"; | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -11,0 +11,0 @@ * |
@@ -7,3 +7,3 @@ /* tslint:disable */ | ||
* | ||
* The version of the OpenAPI document: 1.0.4 | ||
* The version of the OpenAPI document: 1.0.5 | ||
* | ||
@@ -10,0 +10,0 @@ * |
{ | ||
"name": "openai", | ||
"version": "2.0.5", | ||
"version": "3.0.0", | ||
"description": "Node.js library for the OpenAI API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -25,3 +25,4 @@ # OpenAI Node.js Library | ||
const completion = await openai.createCompletion("text-davinci-001", { | ||
const completion = await openai.createCompletion({ | ||
model: "text-davinci-002", | ||
prompt: "Hello world", | ||
@@ -41,4 +42,4 @@ }); | ||
const completion = await openai.createCompletion( | ||
"text-davinci-001", | ||
{ | ||
model: "text-davinci-002", | ||
prompt: "Hello world", | ||
@@ -61,3 +62,4 @@ }, | ||
try { | ||
const completion = await openai.createCompletion("text-davinci-001", { | ||
const completion = await openai.createCompletion({ | ||
model: "text-davinci-002", | ||
prompt: "Hello world", | ||
@@ -76,4 +78,12 @@ }); | ||
## Upgrade guide | ||
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, ... })`) | ||
## Thanks | ||
Thank you to [ceifa](https://github.com/ceifa) for creating and maintaining the original unofficial `openai` npm package before we released this official library! ceifa's original package has been renamed to [gpt-x](https://www.npmjs.com/package/gpt-x). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7033
86
328628