You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -36,56 +36,123 @@ To link Continue with Scaleway's Generative APIs, you can use built-in menus fro
36
36
- Click **Continue** in the menu on the left.
37
37
- In the prompt section, click on **Select model** dropdown, then on **Add Chat model**.
38
38
- Select **Scaleway** as provider.
39
-
- Select the model you want to use (we recommend `Qwen 2.5 Coder 32b` to get started with).
39
+
- Select the model you want to use (we recommend `Qwen 2.5 Coder 32b` to get started with chat and autocompletion only).
40
40
- Enter your **Scaleway secret key**.
41
41
<Messagetype="tip">
42
42
To start with, we recommend you use a Scaleway secret key having access to your `default` Scaleway project.
43
43
</Message>
44
44
45
-
These actions will edit automatically your `config.json` file. To edit it manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file).
45
+
These actions will automatically edit your `config.yaml` file. To edit it manually, see [Configure Continue through configuration file](#configure-continue-through-configuration-file).
46
46
47
47
<Messagetype="note">
48
-
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).
48
+
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.
49
49
</Message>
50
50
51
51
#### Configure Continue through a configuration file
52
52
53
53
To link Continue with Scaleway's Generative APIs, you can configure a settings file:
54
54
55
-
- Create a `config.json` file inside your `.continue` directory.
56
-
- Add the following configuration to enable Scaleway's Generative API:
57
-
```json
58
-
{
59
-
"models": [
60
-
{
61
-
"model": "qwen2.5-coder-32b-instruct",
62
-
"title": "Qwen2.5 Coder",
63
-
"provider": "scaleway",
64
-
"apiKey": "###SCW_SECRET_KEY###"
65
-
}
66
-
],
67
-
"embeddingsProvider": {
68
-
"model": "bge-multilingual-gemma2",
69
-
"provider": "scaleway",
70
-
"apiKey": "###SCW_SECRET_KEY###"
71
-
},
72
-
"tabAutocompleteModel": {
73
-
"model": "qwen2.5-coder-32b",
74
-
"title": "Qwen2.5 Coder Autocomplete",
75
-
"provider": "scaleway",
76
-
"apiKey": "###SCW_SECRET_KEY###"
77
-
}
78
-
}
55
+
- Open your `config.yaml` settings file:
56
+
- If you have already configured a **Local Assistant**, click **Local Assistant**, then click the **wheel icon** to open your existing `config.yaml`
57
+
- Otherwise, create a `config.yaml` file inside your `.continue` directory.
58
+
- Add the following configuration to enable Scaleway's Generative API. This configuration uses three different models for each tasks:
59
+
-`devstral-small-2505` for agentic workflows through a chat interface
60
+
-`qwen2.5-coder-32b` for autocompletion when editing a file
61
+
-`bge-multilingual-gemma2` for embedding and retrieving code context
62
+
```yaml
63
+
name: Continue Config
64
+
version: 0.0.1
65
+
models:
66
+
- name: Devstral - Scaleway
67
+
provider: openai
68
+
model: devstral-small-2505
69
+
apiBase: https://api.scaleway.ai/v1/
70
+
apiKey: ###SCW_SECRET_KEY###
71
+
defaultCompletionOptions:
72
+
maxTokens: 8000
73
+
contextLength: 50000
74
+
roles:
75
+
- chat
76
+
- apply
77
+
- embed
78
+
- edit
79
+
capabilities:
80
+
- tool_use
81
+
- name: Autocomplete - Scaleway
82
+
provider: openai
83
+
model: qwen2.5-coder-32b
84
+
apiBase: https://api.scaleway.ai/v1/
85
+
apiKey: ###SCW_SECRET_KEY###
86
+
defaultCompletionOptions:
87
+
maxTokens: 8000
88
+
contextLength: 50000
89
+
roles:
90
+
- autocomplete
91
+
- name: Embeddings Model - Scaleway
92
+
provider: openai
93
+
model: bge-multilingual-gemma2
94
+
apiBase: https://api.scaleway.ai/v1/
95
+
apiKey: ###SCW_SECRET_KEY###
96
+
roles:
97
+
- embed
98
+
embedOptions:
99
+
maxChunkSize: 256
100
+
maxBatchSize: 32
101
+
context:
102
+
- provider: problems
103
+
- provider: tree
104
+
- provider: url
105
+
- provider: search
106
+
- provider: folder
107
+
- provider: codebase
108
+
- provider: web
109
+
params:
110
+
n: 3
111
+
- provider: open
112
+
params:
113
+
onlyPinned: true
114
+
- provider: docs
115
+
- provider: terminal
116
+
- provider: code
117
+
- provider: diff
118
+
- provider: currentFile
79
119
```
80
120
- Save the file at the correct location:
81
-
- Linux/macOS: `~/.continue/config.json`
82
-
- Windows: `%USERPROFILE%\.continue\config.json`
121
+
- Linux/macOS: `~/.continue/config.yaml`
122
+
- Windows: `%USERPROFILE%\.continue\config.yaml`
123
+
- In **Local Assistant**, click on **Reload config** or restart VS Code.
124
+
125
+
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.
126
+
```json
127
+
{
128
+
"models": [
129
+
{
130
+
"model": "devstral-small-2505",
131
+
"title": "Devstral - Scaleway",
132
+
"provider": "openai",
133
+
"apiKey": "###SCW_SECRET_KEY###"
134
+
}
135
+
],
136
+
"embeddingsProvider": {
137
+
"model": "bge-multilingual-gemma2",
138
+
"provider": "openai",
139
+
"apiKey": "###SCW_SECRET_KEY###"
140
+
},
141
+
"tabAutocompleteModel": {
142
+
"model": "qwen2.5-coder-32b",
143
+
"title": "Autocomplete - Scaleway",
144
+
"provider": "openai",
145
+
"apiKey": "###SCW_SECRET_KEY###"
146
+
}
147
+
}
148
+
```
83
149
84
150
<Message type="tip">
85
-
For more details on configuring `config.json`, refer to the [official Continue documentation](https://docs.continue.dev/reference).
151
+
For more details on configuring `config.yaml`, refer to the [official Continue documentation](https://docs.continue.dev/reference).
86
152
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.
87
153
</Message>
88
154
155
+
89
156
### Activate Continue in VS Code
90
157
91
158
After configuring the API, open VS Code and activate Continue:
@@ -99,15 +166,10 @@ After configuring the API, open VS Code and activate Continue:
99
166
100
167
### Going further
101
168
102
-
You can add additional parameters to configure your model behaviour by editing `config.json`.
103
-
For instance, you can add the following `systemMessage` value to modify LLM messages `"role":"system"` and/or `"role":"developer"` and provide less verbose answers:
104
-
```json
105
-
{
106
-
"models": [
107
-
{
108
-
"model": "...",
109
-
"systemMessage": "You are an expert software developer. You give concise responses."
110
-
}
111
-
]
112
-
}
169
+
You can add more parameters to configure your model's behavior by editing `config.yaml`.
170
+
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:
171
+
```yaml
172
+
model:...
173
+
chatOptions:
174
+
baseSystemMessage: "You are an expert developer. Only write concise answers."
0 commit comments