Vercel AI Chatbot - OpenAI -> Groq: How to?
Unanswered
Cairn Terrier posted this in #help-forum
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?
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
@Cairn Terrier 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?
There are several steps that I don't want to repeat here all. This guide shows perfectly which steps you need to do, to integrate groq with vercel ai sdk:
https://sdk.vercel.ai/providers/ai-sdk-providers/groq#setup
https://sdk.vercel.ai/providers/ai-sdk-providers/groq#setup
@Cairn Terrier solved?