Brainman is a fast and simple to use AI & personal assistant.
npm install brainman
- Improved Response Speed: Optimized API for quicker and more precise responses.
- Advanced Error Handling: Enhanced error feedback for a smoother experience.
- New v2 Features: Expanded functionality in v2, requiring API key access.
- Performance Enhancements: Reduced latency and increased efficiency.
- Bug Fixes: Resolved various minor issues for better stability.
Version v1 does not require an API key. This is ideal for simple, open-access usage.
const { Brainman } = require("brainman");
const ai = new Brainman(); // No API key needed for v1
async function chat(prompt, version) {
const response = await ai.chat({
version: version,
prompt: prompt,
});
console.log(response);
}
chat("What's your name?", "v1");
Version v2 requires an API key and provides enhanced functionality and access to more advanced features.
Note: To obtain an API key for v2 access, please contact us through our Discord server.
const { Brainman } = require("brainman");
const ai = new Brainman("YOUR_API_KEY"); // Replace with your API key
async function chat(prompt, version) {
const response = await ai.chat({
version: version,
prompt: prompt,
});
console.log(response);
}
chat("What's your name?", "v2");
This project was created by UnoxDevs and all source code rights are owned by UnoxDevs