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

openai-api

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openai-api - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

7

config.js
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 @@ },

2

package.json
{
"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",

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