Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openai

Package Overview
Dependencies
Maintainers
4
Versions
209
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openai - npm Package Compare versions

Comparing version 2.0.5 to 3.0.0

2

base.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc