respondai

1.0.2 • Public • Published

Respond AI 💪


Tired of complicated error messages?😵 Yes, me to.

So here is Response AI to turn them into simple, human-readable error codes using the famous ChatGPT🤖

Installation

npm install respondai

Setup

Step 1 :

Create an account with OpenAI here 👉: OpenAI

Step 2 : Create your first API key for this app : API Key

🚨Note : Be sure to copy this API key somewhere as you will not be able to view it again

Step 3 : Use our getAIMsg function to generate a human readable error message.

import getAIMsg from "respondai"

const getData = () => {

    try{
        // some code that could generate error
    }
    catch(error){
        const errorResponse = getAIMsg(error.message, API_KEY);
        console.error(errorResponse); // simpler, human understandable error message
    }

    
}

To contribute : RespondAI Follow me on Github : thevinitgupta ✅

Package Sidebar

Install

npm i respondai

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

2.7 kB

Total Files

4

Last publish

Collaborators

  • thevinitgupta