From b47273f58abf87bdb923dd17e95360f2fd512e44 Mon Sep 17 00:00:00 2001 From: fpagny Date: Tue, 29 Jul 2025 20:36:37 +0200 Subject: [PATCH 01/10] feat(genapi): update continue tutorial with latest models and configuration --- .../adding-ai-to-vscode-using-continue.mdx | 144 +++++++++++++----- 1 file changed, 103 insertions(+), 41 deletions(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index 78df4601d1..8ab21a353b 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -36,56 +36,123 @@ To link Continue with Scaleway's Generative APIs, you can use built-in menus fro - Click **Continue** in the menu on the left. - 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, 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 a configuration file To link Continue with Scaleway's Generative APIs, you can configure a settings file: -- Create a `config.json` file inside your `.continue` directory. -- Add the following configuration to enable Scaleway's Generative API: - ```json - { - "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###" - } - } +- 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.json` - - Windows: `%USERPROFILE%\.continue\config.json` + - Linux/macOS: `~/.continue/config.yaml` + - Windows: `%USERPROFILE%\.continue\config.yaml` +- In **Local Assistant**, click on **Reload config** or restart VS Code. + +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": [ + { + "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###" + } +} +``` - 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. + ### Activate Continue in VS Code After configuring the API, open VS Code and activate Continue: @@ -99,15 +166,10 @@ After configuring the API, open VS Code and activate Continue: ### 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 dae714f63acd72b3931dcfe243706f4e1ba46611 Mon Sep 17 00:00:00 2001 From: fpagny Date: Wed, 30 Jul 2025 10:44:54 +0200 Subject: [PATCH 02/10] fix(genapi): add devstral in json snippets --- .../adding-ai-to-vscode-using-continue.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index 8ab21a353b..7f45e49546 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -127,8 +127,8 @@ Alternatively, a `config.json` file can be used with the following format. This { "models": [ { - "model": "qwen2.5-coder-32b-instruct", - "title": "Qwen2.5 Coder", + "model": "devstral-small-2505", + "title": "Devstral - Scaleway", "provider": "scaleway", "apiKey": "###SCW_SECRET_KEY###" } @@ -140,7 +140,7 @@ Alternatively, a `config.json` file can be used with the following format. This }, "tabAutocompleteModel": { "model": "qwen2.5-coder-32b", - "title": "Qwen2.5 Coder Autocomplete", + "title": "Autocomplete - Scaleway", "provider": "scaleway", "apiKey": "###SCW_SECRET_KEY###" } From 21bf000b54868f98ad4688247763cd3e3ce19f62 Mon Sep 17 00:00:00 2001 From: fpagny Date: Wed, 30 Jul 2025 10:59:24 +0200 Subject: [PATCH 03/10] fix(genapi): add openai as continue provider plugin --- .../adding-ai-to-vscode-using-continue.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index 7f45e49546..51b1f204f8 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -64,7 +64,7 @@ To link Continue with Scaleway's Generative APIs, you can configure a settings f 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### @@ -79,7 +79,7 @@ To link Continue with Scaleway's Generative APIs, you can configure a settings f 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### @@ -89,7 +89,7 @@ To link Continue with Scaleway's Generative APIs, you can configure a settings f roles: - autocomplete - name: Embeddings Model - Scaleway - provider: scaleway + provider: openai model: bge-multilingual-gemma2 apiBase: https://api.scaleway.ai/v1/ apiKey: ###SCW_SECRET_KEY### @@ -129,19 +129,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 79bf09d553067e77e933baabae0e79842641ab0b Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 09:59:37 +0200 Subject: [PATCH 04/10] Update pages/generative-apis/reference-content/adding-ai-to-vscode-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-vscode-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index 51b1f204f8..273c2d06ec 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -42,7 +42,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, 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 f43a31f68b21bb00078aaa65b204cadb5246d399 Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:01:44 +0200 Subject: [PATCH 05/10] Update pages/generative-apis/reference-content/adding-ai-to-vscode-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-vscode-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index 273c2d06ec..2e33bbdb17 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -45,7 +45,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, 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. Manually edit the configuration to enable them. See [Configure Continue through configuration file](#configure-continue-through-configuration-file) for more information. #### Configure Continue through a configuration file From e3fad69ba305804803ea9972cac7b412a6ac1765 Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:03:55 +0200 Subject: [PATCH 06/10] Update pages/generative-apis/reference-content/adding-ai-to-vscode-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-vscode-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index 2e33bbdb17..cded9a1fb6 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -53,7 +53,7 @@ These actions will automatically edit your `config.yaml` file. To edit it manual To link Continue with Scaleway's Generative APIs, you can configure a 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 25377e2fdc19cb418034b03701d5a401af5b6d86 Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:04:27 +0200 Subject: [PATCH 07/10] Update pages/generative-apis/reference-content/adding-ai-to-vscode-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-vscode-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index cded9a1fb6..cdde7ac304 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -166,7 +166,7 @@ After configuring the API, open VS Code and activate Continue: ### 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 b0b70aaa43a51b41940b4229ba07267a76601adf Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:05:32 +0200 Subject: [PATCH 08/10] Update pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> --- .../reference-content/adding-ai-to-vscode-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index cdde7ac304..71d5640211 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -56,7 +56,7 @@ To link Continue with Scaleway's Generative APIs, you can configure a settings f - 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 + - `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 288e483dffc2234c4a431f467ba346993c52e44e Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:05:50 +0200 Subject: [PATCH 09/10] Update pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> --- .../reference-content/adding-ai-to-vscode-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index 71d5640211..32b67d1258 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -122,7 +122,7 @@ To link Continue with Scaleway's Generative APIs, you can configure a settings f - Windows: `%USERPROFILE%\.continue\config.yaml` - In **Local Assistant**, click on **Reload config** or restart VS Code. -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 ded12f970cbc976a5feac14da684c7a9dc67672b Mon Sep 17 00:00:00 2001 From: fpagny Date: Thu, 31 Jul 2025 10:06:06 +0200 Subject: [PATCH 10/10] Update pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx Co-authored-by: Jessica <113192637+jcirinosclwy@users.noreply.github.com> --- .../reference-content/adding-ai-to-vscode-using-continue.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index 32b67d1258..a12fbf4487 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -58,7 +58,7 @@ To link Continue with Scaleway's Generative APIs, you can configure a settings f - 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 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