From 86386dfb706648f86bd03e6ffebb3a5b2be34147 Mon Sep 17 00:00:00 2001 From: fpagny Date: Wed, 30 Jul 2025 10:41:11 +0200 Subject: [PATCH 01/10] feat(genapi): update continue intellij idea tutorial --- .../adding-ai-to-intellij-using-continue.mdx | 147 +++++++++++++----- 1 file changed, 104 insertions(+), 43 deletions(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index 66dd010df2..ca6aca12a9 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -24,7 +24,7 @@ This guide will help you integrate AI-powered code models into JetBrain's Intell You can install Continue from the [JetBrains marketplace](https://plugins.jetbrains.com/plugin/22707-continue): -1. Open IntelliJ IDEA and go to **Preferences** (`Ctrl+Alt+S` on Windows/Linux, `Cmd+,` on macOS). +1. Open IntelliJ IDEA and go to **Preferences/Settings** (`Ctrl+Alt+S` on Windows/Linux, `Cmd+,` on macOS). 2. Navigate to **Plugins**, then click **Marketplace**. 3. Search for **Continue** and click **Install**. 4. Restart IntelliJ IDEA after installation. @@ -38,54 +38,120 @@ To link Continue with Scaleway's Generative APIs, you can use built-in menus fro - 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). +- Select the model you want to use (we recommend `Qwen 2.5 Coder 32b` to get started with chat and autocompletion only). - 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](#configure-continue-through-configuration-file). +These actions will edit automatically your `config.yaml` file. To edit it manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file). - Embeddings and autocomplete models are not yet supported through graphical interface configuration. To enable them, you need to edit the configuration manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file). + Agent, embeddings and autocomplete models are not yet supported through graphical interface configuration. To enable them, you need to edit the configuration manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file). ### Configure Continue through configuration file To link Continue with Scaleway’s Generative APIs, you need to configure the settings file: -1. Locate your Continue configuration directory: - - **Linux/macOS**: `~/.continue/` - - **Windows**: `%USERPROFILE%\.continue\` -2. Create a `config.json` file inside this directory. -3. Add the following configuration: - ```json +- Open your `config.yaml` settings file: + - If your already configured a **Local Assistant**, click on **Local Assistant** then on settings wheel icon to open your existing `config.yaml` + - Otherwise, create a `config.yaml` file inside your `.continue` directory. +- Add the following configuration to enable Scaleway's Generative API. This configuration uses three different models for each tasks: + - `devstral-small-2505` for agentic workflows through chat interface + - `qwen2.5-coder-32b` for autocompletion when editing a file + - `bge-multilingual-gemma2`for embedding and retrieving code context + ```yaml + name: Continue Config + version: 0.0.1 + models: + - name: Devstral - Scaleway + provider: scaleway + model: devstral-small-2505 + apiBase: https://api.scaleway.ai/v1/ + apiKey: ###SCW_SECRET_KEY### + defaultCompletionOptions: + maxTokens: 8000 + contextLength: 50000 + roles: + - chat + - apply + - embed + - edit + capabilities: + - tool_use + - name: Autocomplete - Scaleway + provider: scaleway + model: qwen2.5-coder-32b + apiBase: https://api.scaleway.ai/v1/ + apiKey: ###SCW_SECRET_KEY### + defaultCompletionOptions: + maxTokens: 8000 + contextLength: 50000 + roles: + - autocomplete + - name: Embeddings Model - Scaleway + provider: scaleway + model: bge-multilingual-gemma2 + apiBase: https://api.scaleway.ai/v1/ + apiKey: ###SCW_SECRET_KEY### + roles: + - embed + embedOptions: + maxChunkSize: 256 + maxBatchSize: 32 + context: + - provider: problems + - provider: tree + - provider: url + - provider: search + - provider: folder + - provider: codebase + - provider: web + params: + n: 3 + - provider: open + params: + onlyPinned: true + - provider: docs + - provider: terminal + - provider: code + - provider: diff + - provider: currentFile + ``` +- Save the file at the correct location: + - Linux/macOS: `~/.continue/config.yaml` + - Windows: `%USERPROFILE%\.continue\config.yaml` +- In **Local Assistant**, click on **Reload config** or restart IntelliJ IDEA. + +Alternatively, a `config.json` file can be used with the following format. This format is however deprecated, and we recommend using `config.yaml` instead. +```json +{ + "models": [ { - "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###" - } + "model": "devstral-small-2505", + "title": "Devstral - Scaleway", + "provider": "scaleway", + "apiKey": "###SCW_SECRET_KEY###" } - ``` -4. Save the file and restart IntelliJ IDEA. + ], + "embeddingsProvider": { + "model": "bge-multilingual-gemma2", + "provider": "scaleway", + "apiKey": "###SCW_SECRET_KEY###" + }, + "tabAutocompleteModel": { + "model": "qwen2.5-coder-32b", + "title": "Autocomplete - Scaleway", + "provider": "scaleway", + "apiKey": "###SCW_SECRET_KEY###" + } +} +``` + - For more details on configuring `config.json`, refer to the [official Continue documentation](https://docs.continue.dev/reference). + For more details on configuring `config.yaml`, refer to the [official Continue documentation](https://docs.continue.dev/reference). If you want to limit access to a specific Scaleway Project, you should add the field `"apiBase": "https://api.scaleway.ai/###PROJECT_ID###/v1/"` for each model (ie. `models`, `embeddingsProvider` and `tabAutocompleteModel`) since the default URL `https://api.scaleway.ai/v1/` can only be used with the `default` project. @@ -102,15 +168,10 @@ After configuring the API, activate Continue in IntelliJ IDEA: ## Going further -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: -```json -{ - "models": [ - { - "model": "...", - "systemMessage": "You are an expert software developer. You give concise responses." - } - ] -} +You can add additional parameters to configure your model behaviour by editing `config.yaml`. +For instance, you can add the following `chatOptions.baseSystemMessage` value to modify LLM messages `"role":"system"` and/or `"role":"developer"` and provide less verbose answers: +```yaml +model:... +chatOptions: + baseSystemMessage: "You are an expert developer. Only write concise answers." ``` From cec47ee143177c4772b4bd5766c8d0079d816102 Mon Sep 17 00:00:00 2001 From: fpagny Date: Wed, 30 Jul 2025 11:00:21 +0200 Subject: [PATCH 02/10] fix(genapi): add openai as continue provider plugin for intellij --- .../adding-ai-to-intellij-using-continue.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index ca6aca12a9..e2a274daf3 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -66,7 +66,7 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se version: 0.0.1 models: - name: Devstral - Scaleway - provider: scaleway + provider: openai model: devstral-small-2505 apiBase: https://api.scaleway.ai/v1/ apiKey: ###SCW_SECRET_KEY### @@ -81,7 +81,7 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se capabilities: - tool_use - name: Autocomplete - Scaleway - provider: scaleway + provider: openai model: qwen2.5-coder-32b apiBase: https://api.scaleway.ai/v1/ apiKey: ###SCW_SECRET_KEY### @@ -91,7 +91,7 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se roles: - autocomplete - name: Embeddings Model - Scaleway - provider: scaleway + provider: openai model: bge-multilingual-gemma2 apiBase: https://api.scaleway.ai/v1/ apiKey: ###SCW_SECRET_KEY### @@ -131,19 +131,19 @@ Alternatively, a `config.json` file can be used with the following format. This { "model": "devstral-small-2505", "title": "Devstral - Scaleway", - "provider": "scaleway", + "provider": "openai", "apiKey": "###SCW_SECRET_KEY###" } ], "embeddingsProvider": { "model": "bge-multilingual-gemma2", - "provider": "scaleway", + "provider": "openai", "apiKey": "###SCW_SECRET_KEY###" }, "tabAutocompleteModel": { "model": "qwen2.5-coder-32b", "title": "Autocomplete - Scaleway", - "provider": "scaleway", + "provider": "openai", "apiKey": "###SCW_SECRET_KEY###" } } From 92a8f30ad60c141dcf89b3a142fb5310022a4b1a Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:11:01 +0200 Subject: [PATCH 03/10] Update pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index e2a274daf3..3333c1f349 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -44,7 +44,7 @@ To link Continue with Scaleway's Generative APIs, you can use built-in menus fro 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.yaml` file. To edit it manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file). +These actions will automatically edit your `config.yaml` file. To edit it manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file). Agent, embeddings and autocomplete models are not yet supported through graphical interface configuration. To enable them, you need to edit the configuration manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file). From a30d9d1b4fb67966a7c223aea4a07604ffff4348 Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:11:36 +0200 Subject: [PATCH 04/10] Update pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index 3333c1f349..256092521e 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -47,7 +47,7 @@ To link Continue with Scaleway's Generative APIs, you can use built-in menus fro These actions will automatically edit your `config.yaml` file. To edit it manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file). - Agent, embeddings and autocomplete models are not yet supported through graphical interface configuration. To enable them, you need to edit the configuration manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file). + Agents, embeddings and autocomplete models are not yet supported through graphical interface configuration. To enable them, you need to edit the configuration manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file). ### Configure Continue through configuration file From 8e8f974436f3162cc34b5b903c8082677929a26b Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:11:45 +0200 Subject: [PATCH 05/10] Update pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index 256092521e..858a1c5d8d 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -55,7 +55,7 @@ These actions will automatically edit your `config.yaml` file. To edit it manual To link Continue with Scaleway’s Generative APIs, you need to configure the settings file: - Open your `config.yaml` settings file: - - If your already configured a **Local Assistant**, click on **Local Assistant** then on settings wheel icon to open your existing `config.yaml` + - If you have already configured a **Local Assistant**, click **Local Assistant** then click the **wheel icon** to open your existing `config.yaml` - Otherwise, create a `config.yaml` file inside your `.continue` directory. - Add the following configuration to enable Scaleway's Generative API. This configuration uses three different models for each tasks: - `devstral-small-2505` for agentic workflows through chat interface From 105d89dcf45743592d40b60a871faf40d967cfe2 Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:11:53 +0200 Subject: [PATCH 06/10] Update pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index 858a1c5d8d..33e3df3553 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -168,7 +168,7 @@ After configuring the API, activate Continue in IntelliJ IDEA: ## Going further -You can add additional parameters to configure your model behaviour by editing `config.yaml`. +You can add more parameters to configure your model's behavior by editing `config.yaml`. For instance, you can add the following `chatOptions.baseSystemMessage` value to modify LLM messages `"role":"system"` and/or `"role":"developer"` and provide less verbose answers: ```yaml model:... From d68b3b2449b31ad70e22d59d4ac36dca1b344017 Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:12:02 +0200 Subject: [PATCH 07/10] Update pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index 33e3df3553..6b897ed604 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -57,7 +57,7 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se - Open your `config.yaml` settings file: - If you have already configured a **Local Assistant**, click **Local Assistant** then click the **wheel icon** to open your existing `config.yaml` - Otherwise, create a `config.yaml` file inside your `.continue` directory. -- Add the following configuration to enable Scaleway's Generative API. This configuration uses three different models for each tasks: +- Add the following configuration to enable Scaleway's Generative API. This configuration uses three different models for each task: - `devstral-small-2505` for agentic workflows through chat interface - `qwen2.5-coder-32b` for autocompletion when editing a file - `bge-multilingual-gemma2`for embedding and retrieving code context From 37b0c90049f8631f9c455b5c5e40d49cfdcbfe1b Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:12:10 +0200 Subject: [PATCH 08/10] Update pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index 6b897ed604..52c05721a7 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -58,7 +58,7 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se - If you have already configured a **Local Assistant**, click **Local Assistant** then click the **wheel icon** to open your existing `config.yaml` - Otherwise, create a `config.yaml` file inside your `.continue` directory. - Add the following configuration to enable Scaleway's Generative API. This configuration uses three different models for each task: - - `devstral-small-2505` for agentic workflows through chat interface + - `devstral-small-2505` for agentic workflows through a chat interface - `qwen2.5-coder-32b` for autocompletion when editing a file - `bge-multilingual-gemma2`for embedding and retrieving code context ```yaml From e9915970079f77e91d9a8908f4833ab52078de41 Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:12:32 +0200 Subject: [PATCH 09/10] Update pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index 52c05721a7..a3181afbcc 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -124,7 +124,7 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se - Windows: `%USERPROFILE%\.continue\config.yaml` - In **Local Assistant**, click on **Reload config** or restart IntelliJ IDEA. -Alternatively, a `config.json` file can be used with the following format. This format is however deprecated, and we recommend using `config.yaml` instead. +Alternatively, a `config.json` file can be used with the following format. Note that this format is deprecated, and we recommend using `config.yaml` instead. ```json { "models": [ From ab6a875eecbc067589fbde08f460e1926cdab643 Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:12:39 +0200 Subject: [PATCH 10/10] Update pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx Co-authored-by: Jessica <113192637+jcirinosclwy@users.noreply.github.com> --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index a3181afbcc..7a925e0175 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -60,7 +60,7 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se - Add the following configuration to enable Scaleway's Generative API. This configuration uses three different models for each task: - `devstral-small-2505` for agentic workflows through a chat interface - `qwen2.5-coder-32b` for autocompletion when editing a file - - `bge-multilingual-gemma2`for embedding and retrieving code context + - `bge-multilingual-gemma2` for embedding and retrieving code context ```yaml name: Continue Config version: 0.0.1