meta | content | tags | validation_date | posted_date | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
generative-apis ai machine-learning language-models code-assistance intellij-idea continue |
2025-02-14 |
2025-02-14 |
AI-driven coding is revolutionizing software development by automating repetitive tasks, generating code snippets, improving code quality, and identifying potential bugs. By integrating AI-powered tools, developers can significantly enhance productivity and optimize workflows. This guide will help you integrate AI-powered code models into JetBrain's IntelliJ IDEA using Continue and Scaleway’s Generative APIs.
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- A valid API key for API authentication
- Installed IntelliJ IDEA on your local machine.
You can install Continue from the JetBrains marketplace:
- Open IntelliJ IDEA and go to Preferences (
Ctrl+Alt+S
on Windows/Linux,Cmd+,
on macOS). - Navigate to Plugins, then click Marketplace.
- Search for Continue and click Install.
- Restart IntelliJ IDEA after installation.
To link Continue with Scaleway's Generative APIs, you can use built-in menus from Continue in IntelliJ IDEA.
- Click Continue in the menu on the right. .
- In the prompt section, click on Select model dropdown, then on Add Chat model.
- Select Scaleway as provider.
- Select the model you want to use (we recommend
Qwen 2.5 Coder 32b
to get started with). - Enter your Scaleway secret key.
To start with, we recommend you use a Scaleway secret key having access to your
default
Scaleway project.
These actions will edit automatically your config.json
file. To edit it manually, see Configure Continue through configuration file.
To link Continue with Scaleway’s Generative APIs, you need to configure the settings file:
- Locate your Continue configuration directory:
- Linux/macOS:
~/.continue/
- Windows:
%USERPROFILE%\.continue\
- Linux/macOS:
- Create a
config.json
file inside this directory. - Add the following configuration:
{ "models": [ { "model": "qwen2.5-coder-32b-instruct", "title": "Qwen2.5 Coder", "provider": "scaleway", "apiKey": "###SCW_SECRET_KEY###" } ], "embeddingsProvider": { "model": "bge-multilingual-gemma2", "provider": "scaleway", "apiKey": "###SCW_SECRET_KEY###" }, "tabAutocompleteModel": { "model": "qwen2.5-coder-32b", "title": "Qwen2.5 Coder Autocomplete", "provider": "scaleway", "apiKey": "###SCW_SECRET_KEY###" } }
- Save the file and restart IntelliJ IDEA.
After configuring the API, activate Continue in IntelliJ IDEA:
- Open the Command Search (Press
Shift
twice quickly on Windows/Linux/macOS). - Type
"Continue"
and select the appropriate command to enable AI-powered assistance.
You can add additional parameters to configure your model behaviour by editing config.json
.
For instance, you can add the following systemMessage
value to modify LLM messages "role":"system"
and/or "role":"developer"
and provide less verbose answers:
{
"models": [
{
"model": "...",
"systemMessage": "You are an expert software developer. You give concise responses."
}
]
}