Open ai chat undefined error what i should do

I tried to make app with open ai where you can ask a question and chat gpt will answer, did everything according to the tutorial, tried it in a variety of ways, and I always got the undefined error
image

Welcome to Thunkable!!

See this?: [Solved] Current OpenAI integration is legacy and is being deprecated by OpenAI

Hi @erasylbajgali02wx30h, welcome to Thunkable! :tada:

Be sure to check out our posts about How to ask Great Questions v2.0 and our Community Guidelines as you get started.

The answer when receiving an undefined error like this is to check your console for a more specific error. Have you added a credit balance to your Open AI account yet? Please see the thread below on how to do this.

@emlee703 That issue has been fixed and so it’s likely not the issue here. Usually with an undefined error, it is because the user does not have a credit balance on their account but we need to check the console to see the specific error.