DEV Community

Daniel San
Daniel San

Posted on

1

Lightning-Fast Code Assistant with Groq in VSCode

Image description

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/

Image description

Once you’re logged in, navigate to the API Keys section in the main menu.

Image description

Create a new API Key and copy it.

Image description

Next, you need to open VSCode and install the CodeGPT extension.

Image description

Open CodeGPT in VSCode and in the main selector, select Groq as the provider.

Image description

Now select “Connect” and you’ll see the window to paste the API Key you just created. Paste it and then click Connect.

Image description

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.

Image description

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.

Image description

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.

Image description

Experience the speed of Groq in software development with CodeGPT as your code assistant!

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

Imagine monitoring that's actually built for developers

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitor creation and configuration with Monitoring as Code.

Start Monitoring

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay