Comparing version 2.0.1 to 2.0.2
{ | ||
"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
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
319131
6346
76