JSPM

chatbox-dev-ai

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 231
    • Score
      100M100P100Q81132F
    • License MIT

    Interact with Chatterbox AI using this NPM package for free.

    Package Exports

    • chatbox-dev-ai
    • chatbox-dev-ai/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chatbox-dev-ai) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    # chatbox-dev-ai
    
    Interact with Chatterbox AI using this NPM package.
    
    ## Installation
    
    ```bash
    npm install chatbox-dev-ai

    To Chat With ChatterBox

    const { chatbox } = require('chatbox-dev-ai');
    
    const userId = 'userID'; // Replace with actual user ID
    const query = 'How does nuclear fusion work?';
    
    chatbox(userId, query)
      .then(response => {
        console.log(response);
      })
      .catch(error => {
        console.error(error);
      });

    To toggle websearch

    const { toggle } = require('chatbox-dev-ai');
    
    const message = toggle();
    console.log(message);

    To Reset Conversation

    const { clear } = require('chatbox-dev-ai');
    
    const userId = 'user123'; // replace this according to userID you want to reset conversation.
    const message = clear(userId);
    console.log(message);