
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
chatgpt-official
Advanced tools
A simple Node.js module for interacting with the ChatGPT without using any Browser using OpenAI official API.
To install the package, run the following command:
npm install chatgpt-official
import ChatGPT from "chatgpt-official";
let bot = new ChatGPT("<OPENAI_API_KEY>");
let response = await bot.ask("Hello?");
console.log(response);
import ChatGPT from "chatgpt-official";
let options = {
temperature: 0.7, // OpenAI parameter
max_tokens: 256, // OpenAI parameter [Max response size by tokens]
top_p: 1, // OpenAI parameter
frequency_penalty: 0, // OpenAI parameter
presence_penalty: 0, // OpenAI parameter
instructions: `You are ChatGPT, a large language model trained by OpenAI.`, // initial instructions for the bot
model: "text-chat-davinci-002-20230126", // OpenAI parameter
stop: "<|im_end|>", // OpenAI parameter
}
let bot = new ChatGPT("<OPENAI_API_KEY>", options); // Note: options is optional
let response = await bot.ask("Hello?");
console.log(response);
let conversationId = "conversation name";
let response1 = await bot.ask("Hello?", conversationId);
console.log(response1);
let conversationId2 = "another conversation name";
let response2 = await bot.ask("Hello?", conversationId2);
console.log(response2);
FAQs
ChatGPT Client using official OpenAI API
The npm package chatgpt-official receives a total of 61 weekly downloads. As such, chatgpt-official popularity was classified as not popular.
We found that chatgpt-official demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.