Skip to content

unoxdevs/brainman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

42c6c12 Β· Nov 8, 2024

History

17 Commits
Nov 8, 2024
Nov 8, 2024
Mar 29, 2024
Nov 8, 2024
Nov 5, 2024

Repository files navigation

πŸ€– Brainman

Brainman is a fast and simple to use AI & personal assistant.

πŸ“¦ Install

npm install brainman

πŸŽ‰ Updates

  • 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.

πŸš€ Start

Using Brainman with v1 (No API Key Required)

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");

Using Brainman with v2 (API Key Required)

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");

πŸ› οΈ Support

Β© Copyright

This project was created by UnoxDevs and all source code rights are owned by UnoxDevs

About

Brainman is a fast and simple to use AI & personal assistant.

Topics

Resources

Stars

Watchers

Forks