Use GROQ (like ChatGPT) API

Hi,
I wanted to be able to talk with GROQ (like ChatGPT) through their API.
All comments are most welcomed. Here is the code :

Thanks