Skip to content

⚙️ 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

  1. Visit the Groq Console and sign in or create a new account.
  2. Navigate to the API Keys section.
  3. 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

  1. Open Flexpilot Settings:

    • Press Ctrl+Shift+P (Windows) or Cmd+Shift+P (Mac) in VS Code.
    • Select Flexpilot: Configure the Language Model Provider.
    • Choose Add New Configuration.
    • Select GroqCloud (groqcloud-chat) as the provider.
  2. Enter a nickname when prompted. Pressing Escape will cancel the model configuration.

  3. Enter your API Key when prompted.

  4. 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.

  5. 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.