I want it to log the ai generated text after the api has returned something but it doesn't seem to be waiting for the variable and only logs it after waiting.
//don't use await if you are using then operator on promise
function lyrics(message) {
    var resp = deepai.callStandardApi("text-generator", {
            text: fs.createReadStream("./Images/Elma.txt"),
    }).then(
        console.log(resp)
    ).catch(err => console.log(err));
    console.log(resp);
 
     
    