From 41d422cc9a56b3745f4fd6850547579f44e5bea8 Mon Sep 17 00:00:00 2001 From: fpagny Date: Tue, 4 Mar 2025 11:55:50 +0100 Subject: [PATCH 1/3] Update adding-ai-to-vscode-using-continue.mdx --- .../adding-ai-to-vscode-using-continue.mdx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 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 0cc124d21b..095b10ae65 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 @@ -96,4 +96,19 @@ After configuring the API, open VS Code and activate Continue: 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). - \ No newline at end of file + + +### 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." + } + ] +} +``` From 343d64851d0cca885d43759a17a2227874a28b4b Mon Sep 17 00:00:00 2001 From: fpagny Date: Tue, 4 Mar 2025 11:58:20 +0100 Subject: [PATCH 2/3] Update adding-ai-to-intellij-using-continue.mdx --- .../adding-ai-to-intellij-using-continue.mdx | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 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 3a3d670d0d..f13ab3b2ed 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 @@ -62,14 +62,14 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se 3. Add the following configuration: ```json { - "models": [ + "models": [ { - "model": "qwen2.5-coder-32b-instruct", - "title": "Qwen2.5 Coder", - "provider": "scaleway", - "apiKey": "###SCW_SECRET_KEY###" + "model": "qwen2.5-coder-32b-instruct", + "title": "Qwen2.5 Coder", + "provider": "scaleway", + "apiKey": "###SCW_SECRET_KEY###" } - ] + ] } ``` 4. Save the file and restart IntelliJ IDEA. @@ -88,4 +88,19 @@ After configuring the API, activate Continue in IntelliJ IDEA: 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). - \ No newline at end of file + + +### 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." + } + ] +} +``` From ff40934bfc7ecb10fd8b75ea19524c83d5694cd3 Mon Sep 17 00:00:00 2001 From: fpagny Date: Tue, 4 Mar 2025 12:10:48 +0100 Subject: [PATCH 3/3] Update adding-ai-to-intellij-using-continue.mdx Add embeddings and autocomplete model configuration example. --- .../adding-ai-to-intellij-using-continue.mdx | 13 ++++++++++++- 1 file changed, 12 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 f13ab3b2ed..8ee37ab7b9 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 @@ -69,7 +69,18 @@ To link Continue with Scaleway’s Generative APIs, you need to configure the se "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###" + } } ``` 4. Save the file and restart IntelliJ IDEA.