Next.js Discord

Discord Forum

Vercel AI Chatbot - OpenAI -> Groq: How to?

Unanswered
Cairn Terrier posted this in #help-forum
Open in Discord
Cairn TerrierOP
Hey, so, I'm using https://github.com/vercel/ai-chatbot and it says "This template ships with OpenAI gpt-4o as the default. However, with the AI SDK, you can switch LLM providers to OpenAI, Anthropic, Cohere, and many more with just a few lines of code.".

I'd like to change it to Groq but I'm not the smartest when it comes to coding, does anyone know what code to change and what to to make this Groq instead of ChatGPT?

2 Replies