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.1 to 2.0.2

2

package.json
{
"name": "openai",
"version": "2.0.1",
"version": "2.0.2",
"description": "Node.js library for the OpenAI API",

@@ -5,0 +5,0 @@ "keywords": [

@@ -25,3 +25,3 @@ # OpenAI Node.js Library

const completion = await openai.createCompletion("davinci", {
const completion = await openai.createCompletion("text-davinci-001", {
prompt: "Hello world",

@@ -41,6 +41,5 @@ });

const completion = await openai.createCompletion(
"davinci",
"text-davinci-001",
{
prompt: "Once upon a time",
max_tokens: 5,
prompt: "Hello world",
},

@@ -62,3 +61,3 @@ {

try {
const completion = await openai.createCompletion("davinci", {
const completion = await openai.createCompletion("text-davinci-001", {
prompt: "Hello world",

@@ -65,0 +64,0 @@ });

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