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

@waylaidwanderer/chatgpt-api

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waylaidwanderer/chatgpt-api - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"name": "@waylaidwanderer/chatgpt-api",
"version": "1.3.0",
"version": "1.3.1",
"description": "A ChatGPT implementation using the official ChatGPT model via OpenAI's API.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -53,4 +53,2 @@ <p align="center">

model: 'text-chat-davinci-002-20230126',
// The default temperature is 0.7, but you can override it here
temperature: 0.7,
},

@@ -98,4 +96,2 @@ // (Optional) Set a custom prompt prefix. As per my testing it should work with two newlines

model: 'text-chat-davinci-002-20230126',
// The default temperature is 0.7, but you can override it here
temperature: 0.7,
},

@@ -102,0 +98,0 @@ // (Optional) Set a custom prompt prefix. As per my testing it should work with two newlines

@@ -10,4 +10,2 @@ export default {

model: 'text-chat-davinci-002-20230126',
// The default temperature is 0.7, but you can override it here
temperature: 0.7,
},

@@ -14,0 +12,0 @@ // (Optional) Set a custom prompt prefix. As per my testing it should work with two newlines

@@ -22,3 +22,4 @@ import fetch from 'node-fetch';

model: modelOptions.model || CHATGPT_MODEL,
temperature: typeof modelOptions.temperature === 'undefined' ? 0.7 : modelOptions.temperature,
temperature: typeof modelOptions.temperature === 'undefined' ? 1 : modelOptions.temperature,
top_p: typeof modelOptions.top_p === 'undefined' ? 0.7 : modelOptions.top_p,
presence_penalty: typeof modelOptions.presence_penalty === 'undefined' ? 0.6 : modelOptions.presence_penalty,

@@ -25,0 +26,0 @@ stop: modelOptions.stop || ['<|im_end|>', '<|im_sep|>'],

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