openai-api
Advanced tools
Comparing version 1.2.4 to 1.2.5
const DEFAULT_ENGINE = 'davinci'; | ||
const ENGINE_LIST = ['ada', 'babbage', 'curie', 'davinci', 'davinci-instruct-beta', 'curie-instruct-beta', 'content-filter-alpha-c4']; | ||
const ORIGIN = 'https://api.openai.com'; | ||
@@ -9,11 +8,5 @@ const API_VERSION = 'v1'; | ||
completionURL(engine) { | ||
if (!ENGINE_LIST.includes(engine)) { | ||
engine = DEFAULT_ENGINE; | ||
} | ||
return `${OPEN_AI_URL}/engines/${engine}/completions`; | ||
}, | ||
searchURL(engine) { | ||
if (!ENGINE_LIST.includes(engine)) { | ||
engine = DEFAULT_ENGINE; | ||
} | ||
return `${OPEN_AI_URL}/engines/${engine}/search`; | ||
@@ -20,0 +13,0 @@ }, |
{ | ||
"name": "openai-api", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "A tiny client module for the openAI API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
10619
214