A function calling sample for Groq in Nodejs. Enable Groq to call an external API or custom function when needed.
Blog post (step by step tutorial): Connect Groq AI to the internet
nodemon index.js
or node index.js
Don't forget to create an .env
file consists of:
GROQ_API_KEY=
SERPAPI_KEY=