⚙️ Groq Provider Setup
Integrate Groq’s powerful language models with Flexpilot, your AI code assistant in VS Code similar to GitHub Copilot. This guide will walk you through the setup!
🔑 Getting API Key
- Visit the Groq Console and sign in or create a new account.
- Navigate to the API Keys section.
- Generate a new API key and copy it immediately, as it won’t be shown again.
NOTE
Keep your API key secure! Never share it publicly.
🛠️ Configuration
Open Flexpilot Settings:
- Press
Ctrl+Shift+P
(Windows) orCmd+Shift+P
(Mac) in VS Code. - Select
Flexpilot: Configure the Language Model Provider
. - Choose
Add New Configuration
. - Select
GroqCloud (groqcloud-chat)
as the provider.
- Press
Enter a nickname when prompted. Pressing Escape will cancel the model configuration.
Enter your API Key when prompted.
Enter the Groq base URL when prompted. The default value is
https://api.groq.com/v1/
. Use a different URL value for API calls if required, such as for proxy servers, gateways, etc.Select your preferred Chat model from the auto-populated list of models.
NOTE
Groq provides a range of models, including Llama, Gemma, and Mistral series with various token limits. Select models best suited based on your needs.
📌 Important Notes
- 🔒 Security: Keep your API key secure.
- 💳 Billing: Familiarize yourself with Groq’s pricing and quotas.
- 🌍 Regional Availability: Some models may have region-specific restrictions.
🚫 Troubleshooting
- Invalid API Key: Re-check the API key entered.
- Account Status: Ensure your Groq account is active.
- Model Availability: Confirm that the selected model is accessible in your region.
For more information on API usage, limits, and pricing, visit the Groq Documentation.