1.0.2 • Published 1 year ago

respondai v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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 ✅

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago