From 327839893d413c131d8d7ddb741ffb7c09589430 Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Fri, 21 Feb 2025 15:47:24 +0100 Subject: [PATCH 1/3] feat(genapi): add tab autocompletion --- .../adding-ai-to-intellij-using-continue.mdx | 19 +++++++++++++++++ .../adding-ai-to-vscode-using-continue.mdx | 21 ++++++++++++++++++- 2 files changed, 39 insertions(+), 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 cd55abc343..f88a044ebb 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,6 +57,25 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se For more details on configuring `config.json`, refer to the [official Continue documentation](https://docs.continue.dev/reference). +### Configuring tab completion + +To enable AI-powered tab completion in Continue, add the following configuration to your `.continue/config.json`: + +```json +{ + "tabAutocompleteModel": { + "title": "Scaleway", + "provider": "scaleway", + "model": "qwen2.5-coder-32b-instruct", + "apiKey": "###SCW_SECRET_KEY###" + } +} +``` + + + Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. + + ### Activate Continue in IntelliJ IDEA After configuring the API, activate Continue in IntelliJ IDEA: 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 898dd6bf8c..95f0caae08 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 @@ -54,7 +54,26 @@ To link Continue with Scaleway's Generative APIs, you need to configure a settin For more details on configuring `config.json`, refer to the [official Continue documentation](https://docs.continue.dev/reference). -### Activate Continue in VS Code +### Configuring tab completion + +To enable AI-powered tab completion in Continue, add the following configuration to your `.continue/config.json`: + +```json +{ + "tabAutocompleteModel": { + "title": "Scaleway", + "provider": "scaleway", + "model": "qwen2.5-coder-32b-instruct", + "apiKey": "###SCW_SECRET_KEY###" + } +} +``` + + + Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. + + +### Activating Continue in VS Code After configuring the API, open VS Code and activate Continue: From aa2f035a4f3137fed495f9f00f9e864459c41eed Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Fri, 21 Feb 2025 16:10:01 +0100 Subject: [PATCH 2/3] feat(genapi): add link to docs --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- .../reference-content/adding-ai-to-vscode-using-continue.mdx | 2 +- 2 files changed, 2 insertions(+), 2 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 f88a044ebb..9e146cb06f 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 @@ -73,7 +73,7 @@ To enable AI-powered tab completion in Continue, add the following configuration ``` - Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. + Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. For more information refer to the [official Contine documentation](https://docs.continue.dev/reference#tabautocompleteoptions). ### Activate Continue in IntelliJ IDEA 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 95f0caae08..bd1d6cf4b4 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 @@ -70,7 +70,7 @@ To enable AI-powered tab completion in Continue, add the following configuration ``` - Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. + Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. For more information refer to the [official Contine documentation](https://docs.continue.dev/reference#tabautocompleteoptions). ### Activating Continue in VS Code From 9c1ced3a9140b973f8aa46a13c753210fcb633ec Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Fri, 21 Feb 2025 16:10:22 +0100 Subject: [PATCH 3/3] fix(genapi): fix typo --- .../reference-content/adding-ai-to-intellij-using-continue.mdx | 2 +- .../reference-content/adding-ai-to-vscode-using-continue.mdx | 2 +- 2 files changed, 2 insertions(+), 2 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 9e146cb06f..d6262080f9 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 @@ -73,7 +73,7 @@ To enable AI-powered tab completion in Continue, add the following configuration ``` - Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. For more information refer to the [official Contine documentation](https://docs.continue.dev/reference#tabautocompleteoptions). + Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. For more information refer to the [official Continue documentation](https://docs.continue.dev/reference#tabautocompleteoptions). ### Activate Continue in IntelliJ IDEA 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 bd1d6cf4b4..138fb261a6 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 @@ -70,7 +70,7 @@ To enable AI-powered tab completion in Continue, add the following configuration ``` - Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. For more information refer to the [official Contine documentation](https://docs.continue.dev/reference#tabautocompleteoptions). + Enabling tab completion **may lead to higher token consumption** as the model generates predictions for every keystroke. Be mindful of your API usage and adjust settings accordingly to avoid unexpected costs. For more information refer to the [official Continue documentation](https://docs.continue.dev/reference#tabautocompleteoptions). ### Activating Continue in VS Code