
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@waylaidwanderer/chatgpt-api
Advanced tools
An API layer for ChatGPT, powered by @transitive-bullshit's chatgpt-api (chatgpt on npm).
You can install the package using
npm i -g @waylaidwanderer/chatgpt-api
then run it using
chatgpi-api
. This takes an optional --settings=<path_to_settings.js>
parameter, or looks for settings.js
in the current directory if not set.
Alternatively, you can install the package locally and run it using node index.js
:
npm install
settings2.js
in the root directory with the following contents:export default {
accounts: [
{
email: 'account1@example.com',
password: 'password1',
},
{
email: 'account2@example.com',
password: 'password2',
proxy: 'user:pass@ip:port',
},
{
email: 'account3@example.com',
password: 'password3',
proxy: 'ip:port',
},
// add more accounts as needed...
],
port: 3000, // the port the server will run on (optional, defaults to 3000)
nopechaKey: 'nopechaKey', // your NopeCHA API key
};
xvfb-run node index.js
(for headless servers) or node index.js
To start a conversation with ChatGPT, send a POST request to the server's /conversation
endpoint with a JSON body in the following format:
{
"message": "Hello, how are you today?",
"conversationId": "your-conversation-id (optional)",
"parentMessageId": "your-parent-message-id (optional)"
}
The server will return a JSON object containing ChatGPT's response:
{
"response": "I'm doing well, thank you! How are you?",
"conversationId": "your-conversation-id",
"messageId": "your-message-id"
}
If the request is unsuccessful, the server will return a JSON object with an error message and a status code of 503.
If no sessions have finished initializing yet:
{
"error": "No sessions available."
}
If there was an error sending the message to ChatGPT:
{
"error": "There was an error communicating with ChatGPT."
}
If you'd like to contribute to this project, please create a pull request with a detailed description of your changes.
This API server is powered by @transitive-bullshit's chatgpt-api (chatgpt on npm).
This project is licensed under the MIT License.
FAQs
A ChatGPT implementation using the official ChatGPT model via OpenAI's API.
The npm package @waylaidwanderer/chatgpt-api receives a total of 132 weekly downloads. As such, @waylaidwanderer/chatgpt-api popularity was classified as not popular.
We found that @waylaidwanderer/chatgpt-api 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.