Chat gpt message issue

Hi there! Welcome to the Retool Community Forum :slight_smile:
Looks like you are getting an error that is saying the type for the messages section is invalid.

From the looks of your screenshot, it seems like you are containing everything in an object for the messages parameter but it is expecting an Array. More specifically, an Array of objects themselves like the example below.

 [        
    {            
      "role": "user",            
      "content": "Can you help me understand a range of topics as an AI tutor?"     
     }
   ]

try changing the type from an object to an array. Currently you have everything wrapped in an object.
Please let me know if you have any other questions. :slight_smile: