Hi @erasylbajgali02wx30h, welcome to Thunkable!
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.