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

chatgpt-optimized-official

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chatgpt-optimized-official - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

52

examples/chat.js

@@ -9,3 +9,3 @@ import { ChatGPT } from "../dist/index.js";

let bot = new ChatGPT("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", {
let bot = new ChatGPT(process.env.OPENAI_API_KEY, {
temperature: 0.7, // OpenAI parameter

@@ -18,27 +18,27 @@ max_tokens: 256, // OpenAI parameter [Max response size by tokens]

model: "gpt-3.5-turbo-0613", // OpenAI parameter `gpt-3.5-turbo` is PAID
functions: [
{
"name": "saveDataUser",
"description": "Guardar los datos del usuario para solicitar un prueba de manejo",
"parameters": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Nombre del usuario",
},
"email": {
"type": "string",
"description": "Correo del usuario",
},
"phone": {
"type": "string",
"description": "Telefono del usuario",
}
},
"required": ["name", "email", "phone"],
},
}
],
function_call: "auto",
// functions: [
// {
// "name": "saveDataUser",
// "description": "Guardar los datos del usuario para solicitar un prueba de manejo",
// "parameters": {
// "type": "object",
// "properties": {
// "name": {
// "type": "string",
// "description": "Nombre del usuario",
// },
// "email": {
// "type": "string",
// "description": "Correo del usuario",
// },
// "phone": {
// "type": "string",
// "description": "Telefono del usuario",
// }
// },
// "required": ["name", "email", "phone"],
// },
// }
// ],
// function_call: "auto",

@@ -45,0 +45,0 @@

{
"name": "chatgpt-optimized-official",
"version": "1.2.1",
"version": "1.2.2",
"description": "ChatGPT Client using official OpenAI API",

@@ -5,0 +5,0 @@ "main": "dist/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