In this tutorial, I’ll show you how to integrate Groq’s cloud-based language models as a code assistant in Visual Studio Code (and Jetrbains) using the CodeGPT extension.
You’ll learn to set up an AI-powered coding assistant to enhance your productivity.
First, What is Groq?
Groq is the AI infrastructure company that delivers fast AI inference.
The LPU™ Inference Engine by Groq is a hardware and software platform that delivers exceptional compute speed, quality, and energy efficiency.
Let’s begin!
To use Groq’s services, you must first create an account on Groq Cloud by accessing the following link: https://console.groq.com/
Once you’re logged in, navigate to the API Keys section in the main menu.
Create a new API Key and copy it.
Next, you need to open VSCode and install the CodeGPT extension.
Open CodeGPT in VSCode and in the main selector, select Groq as the provider.
Now select “Connect” and you’ll see the window to paste the API Key you just created. Paste it and then click Connect.
Excellent! We’re now connected with Groq.
Next, we’ll select a model from the ones Groq has available. With CodeGPT, you’ll always have an updated list of models, so you’ll be able to see each new release directly in CodeGPT.
In this case, we’ll be working with the llama3–70b-8192 model.
Once the model is selected, we can start using the features offered by CodeGPT.
Explain a file:
In the CodeGPT text input, we select the /Explain option, then use the @ symbol to select a file from our project, and when we press Enter, Llama3 will provide a complete explanation of the ENTIRE file.
Document a file:
It seems like there’s no content to translate. Could you please provide the text you’d like me to translate into native English? I’ll be happy to assist you.
Experience the speed of Groq in software development with CodeGPT as your code assistant!
Top comments (0)