index.js
/**
     * Sends a prompt and returns a list of string containing the AI results
     * @param prompt
     * @return {Promise<string[]>} list of results (size defined by nb_answer option)
     */
Sends a prompt and returns a list of string containing the AI results
@param prompt
@return {Promise} list of results (size defined by nb_answer option)
Sends a prompt and returns a list of string containing the AI results @param prompt @return { Promise } list of results ( size defined by nb_answer option )
async sendPrompt(prompt) {
        if (prompt) {
            this.prompt = prompt
            return await this.sendPostRequest(`${this.apiURL}/prompt`, this)
        }
    }
async sendPrompt ( prompt ) { if ( prompt ) { this . prompt = prompt return await this . sendPostRequest ( ` ${ this . apiURL } ` , this ) } }
Sends a prompt and returns a list of string containing the AI results
 @param prompt
 @return {Promise<string[]>} list of results (size defined by nb_answer option)
Sends a prompt and returns a list of string containing the AI results @param prompt @return { Promise<string [] > } list of results ( size defined by nb_answer option )