
Security News
arXiv Is Rate Limiting Authors Following a Flood of AI Slop Submissions
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.
This repository provides a comprehensive suite of tools for AI development, allowing for accelerated development of AI applications and unified tracking of token usage and billing information.
Note We currently only support JSON and NinoxDB. We are working on adding support for other databases.
Install the repository via npm if you want to incorporate it into existing tool chains, or clone the repository if you plan to use it as a standalone application.
npm install -g ai-tools
git clone https://github.com/AxelRothe/ai-tools.git ai-tools
You will need to build the app before you can use it. This will create a build folder with the compiled app.
#build
npm run build
#build and run with server
npm run server
#just start cli, will display help
npm run start
#start cli
node build
#start interactive cli
node build chat
#prompt cli and get response as JSON
node build prompt "my prompt" --temperature 0.5 --max_tokens 100 --model "text-davinci-003" --json
#start cli with server
node build server
#start cli with server and port
node build server --port 3000
prompt and chat are all available as REST endpoints. The server is available at http://localhost:8000 by default, and can be changed with the --port flag or by setting it in the .env file.
The app requires an OpenAI API key and session to be set in the .env file. The .env file is not included in the repo, and must be created by the user. The .env file should be placed in the root directory of the project. The .env file should contain the following:
OPENAI_API_KEY="<YOUR_API_KEY>"
OPENAI_API_SESSION_TOKEN="<SESSION_TOKEN>"
SERVER_PORT="8000"
SERVER_PATH_CACHE="/path/to/cache"
SERVER_TOKENS="/path/to/cache/tokens.json"
Authorization:
GET /api/auth
headers {
Authorization: "Bearer <YOUR_TOKEN>",
}
You will need to add a Authorization Token via the Bearer in order to connect to the REST API, use /api/auth with GET to check if your token is valid. Tokens are set in an array in your SERVER_TOKENS file.
Example:
[
"1234",
"5678",
"9012"
]
Run a prompt with the following endpoint:
POST /api/prompt/:engine
{
"prompt": "my prompt",
"temperature": 0.5,
"max_tokens": 100,
"model": "text-davinci-003"
}
Create a new chat. Returns a JSON object with the prompt ID and the prompt text.
POST /api/chat/new -> returns id
{
"prompt": "my prompt",
"temperature": 0.5,
"max_tokens": 100,
"model": "text-davinci-003"
}
Continue on the thread with the id returned from the previous request.
POST /api/chat/:id
{
"prompt": "my message",
"temperature": 0.5,
"max_tokens": 100,
"model": "text-davinci-003"
}
Get the chat and its history
GET /api/chat/:id
Removes the entire chat from the server
DELETE /api/chat/:id
Removes the last record in the chat
DELETE /api/chat/:id/last
Instructions for how others can contribute to your project, such as:
git checkout -b new-feature)git commit -am 'Add new feature')git push origin new-feature)GPL-3.0 License
Copyright (c) 2023 Axel Rothe
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY.
FAQs
prompt various AIs and track usage statistics
We found that ai-toolkit 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.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.