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

chatgpt-official

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chatgpt-official - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

dist/classes/chatgpt.js

@@ -18,3 +18,3 @@ import { encode } from "gpt-3-encoder";

max_tokens: options?.max_tokens || 512,
top_p: options?.top_p || 0.1,
top_p: options?.top_p || 0.9,
frequency_penalty: options?.frequency_penalty || 0,

@@ -95,3 +95,3 @@ presence_penalty: options?.presence_penalty || 0,

let responseStr;
if (this.options.revProxy !== null) {
if (!this.options.revProxy) {
const response = await this.openAi.createCompletion({

@@ -135,3 +135,3 @@ model: this.options.model,

let responseStr = "";
if (this.options.revProxy !== null) {
if (!this.options.revProxy) {
const response = await this.openAi.createCompletion({

@@ -138,0 +138,0 @@ model: this.options.model,

{
"name": "chatgpt-official",
"version": "1.1.0",
"version": "1.1.1",
"description": "ChatGPT Client using official OpenAI API",

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

@@ -22,3 +22,3 @@ import { encode } from "gpt-3-encoder";

max_tokens: options?.max_tokens || 512,
top_p: options?.top_p || 0.1,
top_p: options?.top_p || 0.9,
frequency_penalty: options?.frequency_penalty || 0,

@@ -111,3 +111,3 @@ presence_penalty: options?.presence_penalty || 0,

let responseStr: string;
if (this.options.revProxy) {
if (!this.options.revProxy) {
const response = await this.openAi.createCompletion({

@@ -155,3 +155,3 @@ model: this.options.model,

let responseStr: string = "";
if (this.options.revProxy) {
if (!this.options.revProxy) {
const response = await this.openAi.createCompletion(

@@ -158,0 +158,0 @@ {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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