Patch Changes
-
#470
d7eae54
Thanks @omeraplak! - feat: deprecate @voltagent/groq-ai in favor of @ai-sdk/groqThis package is now deprecated. Please migrate to using
@ai-sdk/groq
with@voltagent/vercel-ai
instead.Why We're Deprecating
As the VoltAgent team, we've made the strategic decision to deprecate our native provider implementations because:
- Maintenance Burden: Groq regularly adds new models and updates their API - maintaining our own implementation requires constant updates that don't provide unique value to VoltAgent users
- No Added Value: Our implementation would essentially mirror what Vercel AI SDK already provides excellently - there's no benefit in maintaining duplicate code
- Resource Allocation: The time spent maintaining provider integrations is better invested in VoltAgent's core strengths: agent systems, tool orchestration, and workflow management
- Ecosystem Benefits: Using Vercel AI SDK gives users access to 30+ providers with a consistent interface, rather than just the few we could realistically maintain
Migration Guide
Step 1: Install New Packages
npm uninstall @voltagent/groq-ai npm install @voltagent/vercel-ai @ai-sdk/groq@1
Step 2: Update Your Code
Before (deprecated):
import { GroqProvider } from "@voltagent/groq-ai"; import { Agent } from "@voltagent/core"; const agent = new Agent({ name: "my-agent", llm: new GroqProvider({ apiKey: process.env.GROQ_API_KEY, }), model: "mixtral-8x7b-32768", });
After (recommended):
import { VercelAIProvider } from "@voltagent/vercel-ai"; import { groq } from "@ai-sdk/groq"; import { Agent } from "@voltagent/core"; const agent = new Agent({ name: "my-agent", llm: new VercelAIProvider(), model: groq("mixtral-8x7b-32768"), });
Step 3: Environment Variables
The environment variable remains the same:
GROQ_API_KEY
- Your Groq API key
Support
For more information:
- Migration Guide - Complete migration instructions
- Vercel AI SDK Groq Provider
- VoltAgent Documentation
- Groq Console - Get your API key and view usage