Changesets · Branches · Tags · Compare
| Changeset | 6c9c9d0b91ee86318a7e18dfa89022b4e56ddad2c0ee0d475e95465d0dea72fc |
|---|---|
| Author | BekahHW <34313413+BekahHW@users.noreply.github.com> · 2025-09-23 13:06 -04:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-23 13:06 -04:00 |
| Parents | 77481f9d7b6c, 12ae6ad08848 |
6 files changed
modified docs/customize/custom-providers.mdx +0 −183
| @@ -19,116 +19,62 @@ | ||
| 19 | 19 | |
| 20 | 20 | Reference any file in your current workspace. |
| 21 | 21 | |
| 22 | -- YAML | |
| 23 | -- JSON | |
| 24 | - | |
| 25 | 22 | config.yaml |
| 26 | 23 | |
| 27 | 24 | ``` |
| 28 | 25 | context: - provider: file |
| 29 | 26 | ``` |
| 30 | 27 | |
| 31 | -config.json | |
| 32 | - | |
| 33 | -```json | |
| 34 | -{ "contextProviders": [{ "name": "file" }] } | |
| 35 | -``` | |
| 36 | - | |
| 37 | 28 | ### @Code Context Provider – Reference Functions and Classes |
| 38 | 29 | |
| 39 | 30 | Reference specific functions or classes from throughout your project. |
| 40 | 31 | |
| 41 | -- YAML | |
| 42 | -- JSON | |
| 43 | - | |
| 44 | 32 | config.yaml |
| 45 | 33 | |
| 46 | 34 | ``` |
| 47 | 35 | context: - provider: code |
| 48 | 36 | ``` |
| 49 | 37 | |
| 50 | -config.json | |
| 51 | - | |
| 52 | -```json | |
| 53 | -{ "contextProviders": [{ "name": "code" }] } | |
| 54 | -``` | |
| 55 | - | |
| 56 | 38 | ### @Git Diff Context Provider – Reference Branch Changes |
| 57 | 39 | |
| 58 | 40 | Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. |
| 59 | 41 | |
| 60 | -- YAML | |
| 61 | -- JSON | |
| 62 | - | |
| 63 | 42 | config.yaml |
| 64 | 43 | |
| 65 | 44 | ``` |
| 66 | 45 | context: - provider: diff |
| 67 | 46 | ``` |
| 68 | 47 | |
| 69 | -config.json | |
| 70 | - | |
| 71 | -```json | |
| 72 | -{ "contextProviders": [{ "name": "diff" }] } | |
| 73 | -``` | |
| 74 | - | |
| 75 | 48 | ### @Current File Context Provider – Reference the Active File |
| 76 | 49 | |
| 77 | 50 | Reference the currently open file. |
| 78 | 51 | |
| 79 | -- YAML | |
| 80 | -- JSON | |
| 81 | - | |
| 82 | 52 | config.yaml |
| 83 | 53 | |
| 84 | 54 | ``` |
| 85 | 55 | context: - provider: currentFile |
| 86 | 56 | ``` |
| 87 | 57 | |
| 88 | -config.json | |
| 89 | - | |
| 90 | -```json | |
| 91 | -{ "contextProviders": [{ "name": "currentFile" }] } | |
| 92 | -``` | |
| 93 | - | |
| 94 | 58 | ### @Terminal Context Provider – Reference Last Terminal Command and Output |
| 95 | 59 | |
| 96 | 60 | Reference the last command you ran in your IDE's terminal and its output. |
| 97 | 61 | |
| 98 | -- YAML | |
| 99 | -- JSON | |
| 100 | - | |
| 101 | 62 | config.yaml |
| 102 | 63 | |
| 103 | 64 | ``` |
| 104 | 65 | context: - provider: terminal |
| 105 | 66 | ``` |
| 106 | 67 | |
| 107 | -config.json | |
| 108 | - | |
| 109 | -```json | |
| 110 | -{ "contextProviders": [{ "name": "terminal" }] } | |
| 111 | -``` | |
| 112 | - | |
| 113 | 68 | ### @Docs Context Provider – Reference Documentation Site Content |
| 114 | 69 | |
| 115 | 70 | Reference the contents from any documentation site. |
| 116 | 71 | |
| 117 | -- YAML | |
| 118 | -- JSON | |
| 119 | - | |
| 120 | 72 | config.yaml |
| 121 | 73 | |
| 122 | 74 | ``` |
| 123 | 75 | context: - provider: docs |
| 124 | 76 | ``` |
| 125 | 77 | |
| 126 | -config.json | |
| 127 | - | |
| 128 | -```json | |
| 129 | -{ "contextProviders": [{ "name": "docs" }] } | |
| 130 | -``` | |
| 131 | - | |
| 132 | 78 | Note that this will only enable the `@Docs` context provider. |
| 133 | 79 | |
| 134 | 80 | To use it, you need to add a documentation site to your config file. See the [docs](/customize/overview#documentation-context) page for more information. |
| @@ -137,9 +83,6 @@ | ||
| 137 | 83 | |
| 138 | 84 | Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. |
| 139 | 85 | |
| 140 | -- YAML | |
| 141 | -- JSON | |
| 142 | - | |
| 143 | 86 | config.yaml |
| 144 | 87 | |
| 145 | 88 | ``` |
| @@ -149,21 +92,12 @@ | ||
| 149 | 92 | onlyPinned: true |
| 150 | 93 | ``` |
| 151 | 94 | |
| 152 | -config.json | |
| 153 | - | |
| 154 | -```json | |
| 155 | -{ "contextProviders": [{ "name": "open", "params": { "onlyPinned": true } }] } | |
| 156 | -``` | |
| 157 | - | |
| 158 | 95 | ### @Web Context Provider – Reference Relevant Web Pages |
| 159 | 96 | |
| 160 | 97 | Reference relevant pages from across the web, automatically determined from your input. |
| 161 | 98 | |
| 162 | 99 | Optionally, set `n` to limit the number of results returned (default 6). |
| 163 | 100 | |
| 164 | -- YAML | |
| 165 | -- JSON | |
| 166 | - | |
| 167 | 101 | config.yaml |
| 168 | 102 | |
| 169 | 103 | ``` |
| @@ -173,19 +107,10 @@ | ||
| 173 | 107 | n: 5 |
| 174 | 108 | ``` |
| 175 | 109 | |
| 176 | -config.json | |
| 177 | - | |
| 178 | -```json | |
| 179 | -{ "contextProviders": [{ "name": "web", "params": { "n": 5 } }] } | |
| 180 | -``` | |
| 181 | - | |
| 182 | 110 | ### @Codebase Context Provider – Reference Relevant Codebase Snippets |
| 183 | 111 | |
| 184 | 112 | Reference the most relevant snippets from your codebase. |
| 185 | 113 | |
| 186 | -- YAML | |
| 187 | -- JSON | |
| 188 | - | |
| 189 | 114 | config.yaml |
| 190 | 115 | |
| 191 | 116 | ``` |
| @@ -193,40 +118,22 @@ | ||
| 193 | 118 | - provider: codebase |
| 194 | 119 | ``` |
| 195 | 120 | |
| 196 | -config.json | |
| 197 | - | |
| 198 | -```json | |
| 199 | -{ "contextProviders": [{ "name": "codebase" }] } | |
| 200 | -``` | |
| 201 | - | |
| 202 | 121 | Read more about indexing and retrieval [here](/customize/overview#codebase-context). |
| 203 | 122 | |
| 204 | 123 | ### @Folder Context Provider – Reference Code from a Specific Folder |
| 205 | 124 | |
| 206 | 125 | Uses the same retrieval mechanism as `@Codebase`, but only on a single folder. |
| 207 | 126 | |
| 208 | -- YAML | |
| 209 | -- JSON | |
| 210 | - | |
| 211 | 127 | config.yaml |
| 212 | 128 | |
| 213 | 129 | ``` |
| 214 | 130 | context: - provider: folder |
| 215 | 131 | ``` |
| 216 | 132 | |
| 217 | -config.json | |
| 218 | - | |
| 219 | -```json | |
| 220 | -{ "contextProviders": [{ "name": "folder" }] } | |
| 221 | -``` | |
| 222 | - | |
| 223 | 133 | ### @Search Context Provider – Reference Code Search Results |
| 224 | 134 | |
| 225 | 135 | Reference the results of codebase search, just like the results you would get from VS Code search. |
| 226 | 136 | |
| 227 | -- YAML | |
| 228 | -- JSON | |
| 229 | - | |
| 230 | 137 | config.yaml |
| 231 | 138 | |
| 232 | 139 | ``` |
| @@ -236,21 +143,12 @@ | ||
| 236 | 143 | maxResults: 100 # optional, defaults to 200 |
| 237 | 144 | ``` |
| 238 | 145 | |
| 239 | -config.json | |
| 240 | - | |
| 241 | -```json | |
| 242 | -{ "contextProviders": [ { "name": "search", "params": { "maxResults": 100 // optional, defaults to 200 } } ]} | |
| 243 | -``` | |
| 244 | - | |
| 245 | 146 | This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). |
| 246 | 147 | |
| 247 | 148 | ### @Url Context Provider – Reference Content from a URL |
| 248 | 149 | |
| 249 | 150 | Reference the markdown converted contents of a given URL. |
| 250 | 151 | |
| 251 | -- YAML | |
| 252 | -- JSON | |
| 253 | - | |
| 254 | 152 | config.yaml |
| 255 | 153 | |
| 256 | 154 | ``` |
| @@ -258,19 +156,10 @@ | ||
| 258 | 156 | - provider: url |
| 259 | 157 | ``` |
| 260 | 158 | |
| 261 | -config.json | |
| 262 | - | |
| 263 | -```json | |
| 264 | -{ "contextProviders": [{ "name": "url" }] } | |
| 265 | -``` | |
| 266 | - | |
| 267 | 159 | ### @Clipboard Context Provider – Reference Clipboard Items |
| 268 | 160 | |
| 269 | 161 | Reference recent clipboard items |
| 270 | 162 | |
| 271 | -- YAML | |
| 272 | -- JSON | |
| 273 | - | |
| 274 | 163 | config.yaml |
| 275 | 164 | |
| 276 | 165 | ``` |
| @@ -278,19 +167,10 @@ | ||
| 278 | 167 | - provider: clipboard |
| 279 | 168 | ``` |
| 280 | 169 | |
| 281 | -config.json | |
| 282 | - | |
| 283 | -```json | |
| 284 | -{ "contextProviders": [{ "name": "clipboard" }] } | |
| 285 | -``` | |
| 286 | - | |
| 287 | 170 | ### @Tree Context Provider – Reference Workspace File Structure |
| 288 | 171 | |
| 289 | 172 | Reference the structure of your current workspace. |
| 290 | 173 | |
| 291 | -- YAML | |
| 292 | -- JSON | |
| 293 | - | |
| 294 | 174 | config.yaml |
| 295 | 175 | |
| 296 | 176 | ``` |
| @@ -298,19 +178,10 @@ | ||
| 298 | 178 | - provider: tree |
| 299 | 179 | ``` |
| 300 | 180 | |
| 301 | -config.json | |
| 302 | - | |
| 303 | -```json | |
| 304 | -{ "contextProviders": [{ "name": "tree" }] } | |
| 305 | -``` | |
| 306 | - | |
| 307 | 181 | ### @Problems Context Provider – Reference Problems in the Current File |
| 308 | 182 | |
| 309 | 183 | Get Problems from the current file. |
| 310 | 184 | |
| 311 | -- YAML | |
| 312 | -- JSON | |
| 313 | - | |
| 314 | 185 | config.yaml |
| 315 | 186 | |
| 316 | 187 | ``` |
| @@ -318,19 +189,10 @@ | ||
| 318 | 189 | - provider: problems |
| 319 | 190 | ``` |
| 320 | 191 | |
| 321 | -config.json | |
| 322 | - | |
| 323 | -```json | |
| 324 | -{ "contextProviders": [{ "name": "problems" }] } | |
| 325 | -``` | |
| 326 | - | |
| 327 | 192 | ### @Debugger Context Provider – Reference Debugger Local Variables |
| 328 | 193 | |
| 329 | 194 | Reference the contents of the local variables in the debugger. Currently only available in VS Code. |
| 330 | 195 | |
| 331 | -- YAML | |
| 332 | -- JSON | |
| 333 | - | |
| 334 | 196 | config.yaml |
| 335 | 197 | |
| 336 | 198 | ``` |
| @@ -340,12 +202,6 @@ | ||
| 340 | 202 | stackDepth: 3 |
| 341 | 203 | ``` |
| 342 | 204 | |
| 343 | -config.json | |
| 344 | - | |
| 345 | -```json | |
| 346 | -{ "contextProviders": [{ "name": "debugger", "params": { "stackDepth": 3 } }] } | |
| 347 | -``` | |
| 348 | - | |
| 349 | 205 | Uses the top _n_ levels (defaulting to 3) of the call stack for that thread. |
| 350 | 206 | |
| 351 | 207 | ### @Repository Map Context Provider – Reference Codebase Outline and Signatures |
| @@ -354,9 +210,6 @@ | ||
| 354 | 210 | |
| 355 | 211 | `includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled. |
| 356 | 212 | |
| 357 | -- YAML | |
| 358 | -- JSON | |
| 359 | - | |
| 360 | 213 | config.yaml |
| 361 | 214 | |
| 362 | 215 | ``` |
| @@ -366,12 +219,6 @@ | ||
| 366 | 219 | includeSignatures: false # default true |
| 367 | 220 | ``` |
| 368 | 221 | |
| 369 | -config.json | |
| 370 | - | |
| 371 | -```json | |
| 372 | -{ "contextProviders": [ { "name": "repo-map", "params": { "includeSignatures": false // default true } } ]} | |
| 373 | -``` | |
| 374 | - | |
| 375 | 222 | Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase. |
| 376 | 223 | |
| 377 | 224 | In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repository map from. |
| @@ -382,9 +229,6 @@ | ||
| 382 | 229 | |
| 383 | 230 | Reference the architecture and platform of your current operating system. |
| 384 | 231 | |
| 385 | -- YAML | |
| 386 | -- JSON | |
| 387 | - | |
| 388 | 232 | config.yaml |
| 389 | 233 | |
| 390 | 234 | ``` |
| @@ -392,19 +236,10 @@ | ||
| 392 | 236 | - provider: os |
| 393 | 237 | ``` |
| 394 | 238 | |
| 395 | -config.json | |
| 396 | - | |
| 397 | -```json | |
| 398 | -{ "contextProviders": [{ "name": "os" }] } | |
| 399 | -``` | |
| 400 | - | |
| 401 | 239 | ### Using the Model Context Protocol (MCP) in Continue |
| 402 | 240 | |
| 403 | 241 | The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then set up your configuration like this: |
| 404 | 242 | |
| 405 | -- YAML | |
| 406 | -- JSON | |
| 407 | - | |
| 408 | 243 | config.yaml |
| 409 | 244 | |
| 410 | 245 | ``` |
| @@ -417,24 +252,6 @@ | ||
| 417 | 252 | - /Users/NAME/test.db |
| 418 | 253 | ``` |
| 419 | 254 | |
| 420 | -config.json | |
| 421 | - | |
| 422 | -```json | |
| 423 | -{ | |
| 424 | - "experimental": { | |
| 425 | - "modelContextProtocolServers": [ | |
| 426 | - { | |
| 427 | - "transport": { | |
| 428 | - "type": "stdio", | |
| 429 | - "command": "uvx", | |
| 430 | - "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] | |
| 431 | - } | |
| 432 | - } | |
| 433 | - ] | |
| 434 | - } | |
| 435 | -} | |
| 436 | -``` | |
| 437 | - | |
| 438 | 255 | You'll then be able to type "@" and see "MCP" in the context providers dropdown. |
| 439 | 256 | |
| 440 | 257 | ### How to Request a New Context Provider in Continue |
modified docs/customize/deep-dives/custom-providers.mdx +71 −299
| @@ -15,251 +15,95 @@ | ||
| 15 | 15 | |
| 16 | 16 | Reference any file in your current workspace. |
| 17 | 17 | |
| 18 | -<Tabs> | |
| 19 | - <Tab title="YAML"> | |
| 20 | - ```yaml config.yaml | |
| 21 | - context: | |
| 22 | - - provider: file | |
| 23 | - ``` | |
| 24 | - </Tab> | |
| 25 | - <Tab title="JSON (Deprecated)"> | |
| 26 | - ```json config.json | |
| 27 | - { | |
| 28 | - "contextProviders": [ | |
| 29 | - { | |
| 30 | - "name": "file" | |
| 31 | - } | |
| 32 | - ] | |
| 33 | - } | |
| 34 | - ``` | |
| 35 | - </Tab> | |
| 36 | -</Tabs> | |
| 18 | +```yaml config.yaml | |
| 19 | +context: | |
| 20 | + - provider: file | |
| 21 | +``` | |
| 37 | 22 | |
| 38 | 23 | ### `@Code` |
| 39 | 24 | |
| 40 | 25 | Reference specific functions or classes from throughout your project. |
| 41 | 26 | |
| 42 | -<Tabs> | |
| 43 | - <Tab title="YAML"> | |
| 44 | - ```yaml config.yaml | |
| 45 | - context: | |
| 46 | - - provider: code | |
| 47 | - ``` | |
| 48 | - </Tab> | |
| 49 | - <Tab title="JSON (Deprecated)"> | |
| 50 | - ```json config.json | |
| 51 | - { | |
| 52 | - "contextProviders": [ | |
| 53 | - { | |
| 54 | - "name": "code" | |
| 55 | - } | |
| 56 | - ] | |
| 57 | - } | |
| 58 | - ``` | |
| 59 | - </Tab> | |
| 60 | -</Tabs> | |
| 27 | +```yaml config.yaml | |
| 28 | +context: | |
| 29 | + - provider: code | |
| 30 | +``` | |
| 61 | 31 | |
| 62 | 32 | ### `@Git Diff` |
| 63 | 33 | |
| 64 | 34 | Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. |
| 65 | 35 | |
| 66 | -<Tabs> | |
| 67 | - <Tab title="YAML"> | |
| 68 | - ```yaml config.yaml | |
| 69 | - context: | |
| 70 | - - provider: diff | |
| 71 | - ``` | |
| 72 | - </Tab> | |
| 73 | - <Tab title="JSON (Deprecated)"> | |
| 74 | - ```json config.json | |
| 75 | - { | |
| 76 | - "contextProviders": [ | |
| 77 | - { | |
| 78 | - "name": "diff" | |
| 79 | - } | |
| 80 | - ] | |
| 81 | - } | |
| 82 | - ``` | |
| 83 | - </Tab> | |
| 84 | -</Tabs> | |
| 36 | +```yaml config.yaml | |
| 37 | +context: | |
| 38 | + - provider: diff | |
| 39 | +``` | |
| 85 | 40 | |
| 86 | 41 | ### `@Current File` |
| 87 | 42 | |
| 88 | 43 | Reference the currently open file. |
| 89 | 44 | |
| 90 | -<Tabs> | |
| 91 | - <Tab title="YAML"> | |
| 92 | - ```yaml config.yaml | |
| 93 | - context: | |
| 94 | - - provider: currentFile | |
| 95 | - ``` | |
| 96 | - </Tab> | |
| 97 | - <Tab title="JSON (Deprecated)"> | |
| 98 | - ```json config.json | |
| 99 | - { | |
| 100 | - "contextProviders": [ | |
| 101 | - { | |
| 102 | - "name": "currentFile" | |
| 103 | - } | |
| 104 | - ] | |
| 105 | - } | |
| 106 | - ``` | |
| 107 | - </Tab> | |
| 108 | -</Tabs> | |
| 45 | +```yaml config.yaml | |
| 46 | +context: | |
| 47 | + - provider: currentFile | |
| 48 | +``` | |
| 109 | 49 | |
| 110 | 50 | ### `@Terminal` |
| 111 | 51 | |
| 112 | 52 | Reference the last command you ran in your IDE's terminal and its output. |
| 113 | 53 | |
| 114 | -<Tabs> | |
| 115 | - <Tab title="YAML"> | |
| 116 | - ```yaml config.yaml | |
| 117 | - context: | |
| 118 | - - provider: terminal | |
| 119 | - ``` | |
| 120 | - </Tab> | |
| 121 | - <Tab title="JSON (Deprecated)"> | |
| 122 | - ```json config.json | |
| 123 | - { | |
| 124 | - "contextProviders": [ | |
| 125 | - { | |
| 126 | - "name": "terminal" | |
| 127 | - } | |
| 128 | - ] | |
| 129 | - } | |
| 130 | - ``` | |
| 131 | - </Tab> | |
| 132 | -</Tabs> | |
| 54 | +```yaml config.yaml | |
| 55 | +context: | |
| 56 | + - provider: terminal | |
| 57 | +``` | |
| 133 | 58 | |
| 134 | 59 | ### `@Open` |
| 135 | 60 | |
| 136 | 61 | Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. |
| 137 | 62 | |
| 138 | -<Tabs> | |
| 139 | - <Tab title="YAML"> | |
| 140 | - ```yaml config.yaml | |
| 141 | - context: | |
| 142 | - - provider: open | |
| 143 | - params: | |
| 144 | - onlyPinned: true | |
| 145 | - ``` | |
| 146 | - </Tab> | |
| 147 | - <Tab title="JSON (Deprecated)"> | |
| 148 | - ```json config.json | |
| 149 | - { | |
| 150 | - "contextProviders": [ | |
| 151 | - { | |
| 152 | - "name": "open", | |
| 153 | - "params": { | |
| 154 | - "onlyPinned": true | |
| 155 | - } | |
| 156 | - } | |
| 157 | - ] | |
| 158 | - } | |
| 159 | - ``` | |
| 160 | - </Tab> | |
| 161 | -</Tabs> | |
| 63 | +```yaml config.yaml | |
| 64 | +context: | |
| 65 | + - provider: open | |
| 66 | + params: | |
| 67 | + onlyPinned: true | |
| 68 | +``` | |
| 162 | 69 | |
| 163 | 70 | ### `@Clipboard` |
| 164 | 71 | |
| 165 | 72 | Reference recent clipboard items |
| 166 | 73 | |
| 167 | -<Tabs> | |
| 168 | - <Tab title="YAML"> | |
| 169 | - ```yaml config.yaml | |
| 170 | - context: | |
| 171 | - - provider: clipboard | |
| 172 | - ``` | |
| 173 | - </Tab> | |
| 174 | - <Tab title="JSON (Deprecated)"> | |
| 175 | - ```json config.json | |
| 176 | - { | |
| 177 | - "contextProviders": [ | |
| 178 | - { | |
| 179 | - "name": "clipboard" | |
| 180 | - } | |
| 181 | - ] | |
| 182 | - } | |
| 183 | - ``` | |
| 184 | - </Tab> | |
| 185 | -</Tabs> | |
| 74 | +```yaml config.yaml | |
| 75 | +context: | |
| 76 | + - provider: clipboard | |
| 77 | +``` | |
| 186 | 78 | |
| 187 | 79 | ### `@Tree` |
| 188 | 80 | |
| 189 | 81 | Reference the structure of your current workspace. |
| 190 | 82 | |
| 191 | -<Tabs> | |
| 192 | - <Tab title="YAML"> | |
| 193 | - ```yaml config.yaml | |
| 194 | - context: | |
| 195 | - - provider: tree | |
| 196 | - ``` | |
| 197 | - </Tab> | |
| 198 | - <Tab title="JSON (Deprecated)"> | |
| 199 | - ```json config.json | |
| 200 | - { | |
| 201 | - "contextProviders": [ | |
| 202 | - { | |
| 203 | - "name": "tree" | |
| 204 | - } | |
| 205 | - ] | |
| 206 | - } | |
| 207 | - ``` | |
| 208 | - </Tab> | |
| 209 | -</Tabs> | |
| 83 | +```yaml config.yaml | |
| 84 | +context: | |
| 85 | + - provider: tree | |
| 86 | +``` | |
| 210 | 87 | |
| 211 | 88 | ### `@Problems` |
| 212 | 89 | |
| 213 | 90 | Get Problems from the current file. |
| 214 | 91 | |
| 215 | -<Tabs> | |
| 216 | - <Tab title="YAML"> | |
| 217 | - ```yaml config.yaml | |
| 218 | - context: | |
| 219 | - - provider: problems | |
| 220 | - ``` | |
| 221 | - </Tab> | |
| 222 | - <Tab title="JSON (Deprecated)"> | |
| 223 | - ```json config.json | |
| 224 | - { | |
| 225 | - "contextProviders": [ | |
| 226 | - { | |
| 227 | - "name": "problems" | |
| 228 | - } | |
| 229 | - ] | |
| 230 | - } | |
| 231 | - ``` | |
| 232 | - </Tab> | |
| 233 | -</Tabs> | |
| 92 | +```yaml config.yaml | |
| 93 | +context: | |
| 94 | + - provider: problems | |
| 95 | +``` | |
| 234 | 96 | |
| 235 | 97 | ### `@Debugger` |
| 236 | 98 | |
| 237 | 99 | Reference the contents of the local variables in the debugger. Currently only available in VS Code. |
| 238 | 100 | |
| 239 | -<Tabs> | |
| 240 | - <Tab title="YAML"> | |
| 241 | - ```yaml config.yaml | |
| 242 | - context: | |
| 243 | - - provider: debugger | |
| 244 | - params: | |
| 245 | - stackDepth: 3 | |
| 246 | - ``` | |
| 247 | - </Tab> | |
| 248 | - <Tab title="JSON (Deprecated)"> | |
| 249 | - ```json config.json | |
| 250 | - { | |
| 251 | - "contextProviders": [ | |
| 252 | - { | |
| 253 | - "name": "debugger", | |
| 254 | - "params": { | |
| 255 | - "stackDepth": 3 | |
| 256 | - } | |
| 257 | - } | |
| 258 | - ] | |
| 259 | - } | |
| 260 | - ``` | |
| 261 | - </Tab> | |
| 262 | -</Tabs> | |
| 101 | +```yaml config.yaml | |
| 102 | +context: | |
| 103 | + - provider: debugger | |
| 104 | + params: | |
| 105 | + stackDepth: 3 | |
| 106 | +``` | |
| 263 | 107 | |
| 264 | 108 | Uses the top _n_ levels (defaulting to 3) of the call stack for that thread. |
| 265 | 109 | |
| @@ -269,30 +113,12 @@ | ||
| 269 | 113 | |
| 270 | 114 | `includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled. |
| 271 | 115 | |
| 272 | -<Tabs> | |
| 273 | - <Tab title="YAML"> | |
| 274 | - ```yaml config.yaml | |
| 275 | - context: | |
| 276 | - - provider: repo-map | |
| 277 | - params: | |
| 278 | - includeSignatures: false # default true | |
| 279 | - ``` | |
| 280 | - </Tab> | |
| 281 | - <Tab title="JSON (Deprecated)"> | |
| 282 | - ```json config.json | |
| 283 | - { | |
| 284 | - "contextProviders": [ | |
| 285 | - { | |
| 286 | - "name": "repo-map", | |
| 287 | - "params": { | |
| 288 | - "includeSignatures": false // default true | |
| 289 | - } | |
| 290 | - } | |
| 291 | - ] | |
| 292 | - } | |
| 293 | - ``` | |
| 294 | - </Tab> | |
| 295 | -</Tabs> | |
| 116 | +```yaml config.yaml | |
| 117 | +context: | |
| 118 | + - provider: repo-map | |
| 119 | + params: | |
| 120 | + includeSignatures: false # default true | |
| 121 | +``` | |
| 296 | 122 | |
| 297 | 123 | Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase. |
| 298 | 124 | |
| @@ -304,56 +130,23 @@ | ||
| 304 | 130 | |
| 305 | 131 | Reference the architecture and platform of your current operating system. |
| 306 | 132 | |
| 307 | -<Tabs> | |
| 308 | - <Tab title="YAML"> | |
| 309 | - ```yaml config.yaml | |
| 310 | - context: | |
| 311 | - - provider: os | |
| 312 | - ``` | |
| 313 | - </Tab> | |
| 314 | - <Tab title="JSON (Deprecated)"> | |
| 315 | - ```json config.json | |
| 316 | - { | |
| 317 | - "contextProviders": [ | |
| 318 | - { | |
| 319 | - "name": "os" | |
| 320 | - } | |
| 321 | - ] | |
| 322 | - } | |
| 323 | - ``` | |
| 324 | - </Tab> | |
| 325 | -</Tabs> | |
| 133 | +```yaml config.yaml | |
| 134 | +context: | |
| 135 | + - provider: os | |
| 136 | +``` | |
| 326 | 137 | |
| 327 | 138 | ### `@HTTP` |
| 328 | 139 | |
| 329 | 140 | The HttpContextProvider makes a POST request to the url passed in the configuration. The server must return 200 OK with a ContextItem object or an array of ContextItems. |
| 330 | 141 | |
| 331 | -<Tabs> | |
| 332 | - <Tab title="YAML"> | |
| 333 | - ```yaml config.yaml | |
| 334 | - context: | |
| 335 | - - provider: http | |
| 336 | - params: | |
| 337 | - url: "https://api.example.com/v1/users" | |
| 338 | - headers: | |
| 339 | - - Authorization: "Bearer <token>" | |
| 340 | - ``` | |
| 341 | - </Tab> | |
| 342 | - <Tab title="JSON (Deprecated)"> | |
| 343 | - ```json config.json | |
| 344 | - { | |
| 345 | - "contextProviders": [ | |
| 346 | - { | |
| 347 | - "name": "http", | |
| 348 | - "params": { | |
| 349 | - "url": "https://api.example.com/v1/users" | |
| 350 | - } | |
| 351 | - } | |
| 352 | - ] | |
| 353 | - } | |
| 354 | - ``` | |
| 355 | - </Tab> | |
| 356 | -</Tabs> | |
| 142 | +```yaml config.yaml | |
| 143 | +context: | |
| 144 | + - provider: http | |
| 145 | + params: | |
| 146 | + url: "https://api.example.com/v1/users" | |
| 147 | + headers: | |
| 148 | + - Authorization: "Bearer <token>" | |
| 149 | +``` | |
| 357 | 150 | |
| 358 | 151 | The receiving URL should expect to receive the following parameters: |
| 359 | 152 | |
| @@ -375,36 +168,15 @@ | ||
| 375 | 168 | |
| 376 | 169 | The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then set up your configuration like this: |
| 377 | 170 | |
| 378 | -<Tabs> | |
| 379 | - <Tab title="YAML"> | |
| 380 | - ```yaml config.yaml | |
| 381 | - mcpServers: | |
| 382 | - - name: My MCP Server | |
| 383 | - command: uvx | |
| 384 | - args: | |
| 385 | - - mcp-server-sqlite | |
| 386 | - - --db-path | |
| 387 | - - /Users/NAME/test.db | |
| 388 | - ``` | |
| 389 | - </Tab> | |
| 390 | - <Tab title="JSON (Deprecated)"> | |
| 391 | - ```json config.json | |
| 392 | - { | |
| 393 | - "experimental": { | |
| 394 | - "modelContextProtocolServers": [ | |
| 395 | - { | |
| 396 | - "transport": { | |
| 397 | - "type": "stdio", | |
| 398 | - "command": "uvx", | |
| 399 | - "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] | |
| 400 | - } | |
| 401 | - } | |
| 402 | - ] | |
| 403 | - } | |
| 404 | - } | |
| 405 | - ``` | |
| 406 | - </Tab> | |
| 407 | -</Tabs> | |
| 171 | +```yaml config.yaml | |
| 172 | +mcpServers: | |
| 173 | + - name: My MCP Server | |
| 174 | + command: uvx | |
| 175 | + args: | |
| 176 | + - mcp-server-sqlite | |
| 177 | + - --db-path | |
| 178 | + - /Users/NAME/test.db | |
| 179 | +``` | |
| 408 | 180 | |
| 409 | 181 | You'll then be able to type "@" and see "MCP" in the context providers dropdown. |
| 410 | 182 |
modified docs/customize/model-roles/chat.mdx +0 −174
| @@ -36,20 +36,6 @@ | ||
| 36 | 36 | apiKey: <YOUR_ANTHROPIC_API_KEY> |
| 37 | 37 | ``` |
| 38 | 38 | </Tab> |
| 39 | - <Tab title="JSON"> | |
| 40 | - ```json title="config.json" | |
| 41 | - { | |
| 42 | - "models": [ | |
| 43 | - { | |
| 44 | - "title": "Claude Opus 4.1", | |
| 45 | - "provider": "anthropic", | |
| 46 | - "model": "claude-4-1-opus", | |
| 47 | - "apiKey": "<YOUR_ANTHROPIC_API_KEY>" | |
| 48 | - } | |
| 49 | - ] | |
| 50 | - } | |
| 51 | - ``` | |
| 52 | - </Tab> | |
| 53 | 39 | </Tabs> |
| 54 | 40 | |
| 55 | 41 | ### Gemma from Google DeepMind |
| @@ -88,37 +74,6 @@ | ||
| 88 | 74 | </Tab> |
| 89 | 75 | </Tabs> |
| 90 | 76 | </Tab> |
| 91 | - <Tab title="JSON"> | |
| 92 | - <Tabs> | |
| 93 | - <Tab title="Ollama"> | |
| 94 | - ```json title="config.json" | |
| 95 | - { | |
| 96 | - "models": [ | |
| 97 | - { | |
| 98 | - "title": "Gemma 3 27B", | |
| 99 | - "provider": "ollama", | |
| 100 | - "model": "gemma3:27b" | |
| 101 | - } | |
| 102 | - ] | |
| 103 | - } | |
| 104 | - ``` | |
| 105 | - </Tab> | |
| 106 | - <Tab title="Together"> | |
| 107 | - ```json title="config.json" | |
| 108 | - { | |
| 109 | - "models": [ | |
| 110 | - { | |
| 111 | - "title": "Gemma 3 27B", | |
| 112 | - "provider": "together", | |
| 113 | - "model": "google/gemma-2-27b-it", | |
| 114 | - "apiKey": "<YOUR_TOGETHER_API_KEY>" | |
| 115 | - } | |
| 116 | - ] | |
| 117 | - } | |
| 118 | - ``` | |
| 119 | - </Tab> | |
| 120 | - </Tabs> | |
| 121 | - </Tab> | |
| 122 | 77 | </Tabs> |
| 123 | 78 | |
| 124 | 79 | ### GPT-4o from OpenAI |
| @@ -138,20 +93,6 @@ | ||
| 138 | 93 | apiKey: <YOUR_OPENAI_API_KEY> |
| 139 | 94 | ``` |
| 140 | 95 | </Tab> |
| 141 | - <Tab title="JSON"> | |
| 142 | - ```json title="config.json" | |
| 143 | - { | |
| 144 | - "models": [ | |
| 145 | - { | |
| 146 | - "title": "GPT-4o", | |
| 147 | - "provider": "openai", | |
| 148 | - "model": "", | |
| 149 | - "apiKey": "<YOUR_OPENAI_API_KEY>" | |
| 150 | - } | |
| 151 | - ] | |
| 152 | - } | |
| 153 | - ``` | |
| 154 | - </Tab> | |
| 155 | 96 | </Tabs> |
| 156 | 97 | |
| 157 | 98 | ### Grok-2 from xAI |
| @@ -171,20 +112,6 @@ | ||
| 171 | 112 | apiKey: <YOUR_XAI_API_KEY> |
| 172 | 113 | ``` |
| 173 | 114 | </Tab> |
| 174 | - <Tab title="JSON"> | |
| 175 | - ```json title="config.json" | |
| 176 | - { | |
| 177 | - "models": [ | |
| 178 | - { | |
| 179 | - "title": "Grok-2", | |
| 180 | - "provider": "xAI", | |
| 181 | - "model": "grok-2-latest", | |
| 182 | - "apiKey": "<YOUR_XAI_API_KEY>" | |
| 183 | - } | |
| 184 | - ] | |
| 185 | - } | |
| 186 | - ``` | |
| 187 | - </Tab> | |
| 188 | 115 | </Tabs> |
| 189 | 116 | |
| 190 | 117 | ### Gemini 2.0 Flash from Google |
| @@ -204,20 +131,6 @@ | ||
| 204 | 131 | apiKey: <YOUR_GEMINI_API_KEY> |
| 205 | 132 | ``` |
| 206 | 133 | </Tab> |
| 207 | - <Tab title="JSON"> | |
| 208 | - ```json title="config.json" | |
| 209 | - { | |
| 210 | - "models": [ | |
| 211 | - { | |
| 212 | - "title": "Gemini 2.0 Flash", | |
| 213 | - "provider": "gemini", | |
| 214 | - "model": "gemini-2.0-flash", | |
| 215 | - "apiKey": "<YOUR_GEMINI_API_KEY>" | |
| 216 | - } | |
| 217 | - ] | |
| 218 | - } | |
| 219 | - ``` | |
| 220 | - </Tab> | |
| 221 | 134 | </Tabs> |
| 222 | 135 | |
| 223 | 136 | ## Local, offline experience |
| @@ -268,49 +181,6 @@ | ||
| 268 | 181 | </Tab> |
| 269 | 182 | </Tabs> |
| 270 | 183 | </Tab> |
| 271 | - <Tab title="JSON"> | |
| 272 | - <Tabs> | |
| 273 | - <Tab title="Ollama"> | |
| 274 | - ```json title="config.json" | |
| 275 | - { | |
| 276 | - "models": [ | |
| 277 | - { | |
| 278 | - "title": "Llama 3.1 8B", | |
| 279 | - "provider": "ollama", | |
| 280 | - "model": "llama3.1:8b" | |
| 281 | - } | |
| 282 | - ] | |
| 283 | - } | |
| 284 | - ``` | |
| 285 | - </Tab> | |
| 286 | - <Tab title="LM Studio"> | |
| 287 | - ```json title="config.json" | |
| 288 | - { | |
| 289 | - "models": [ | |
| 290 | - { | |
| 291 | - "title": "Llama 3.1 8B", | |
| 292 | - "provider": "lmstudio", | |
| 293 | - "model": "llama3.1-8b" | |
| 294 | - } | |
| 295 | - ] | |
| 296 | - } | |
| 297 | - ``` | |
| 298 | - </Tab> | |
| 299 | - <Tab title="Msty"> | |
| 300 | - ```json title="config.json" | |
| 301 | - { | |
| 302 | - "models": [ | |
| 303 | - { | |
| 304 | - "title": "Llama 3.1 8B", | |
| 305 | - "provider": "msty", | |
| 306 | - "model": "llama3.1-8b" | |
| 307 | - } | |
| 308 | - ] | |
| 309 | - } | |
| 310 | - ``` | |
| 311 | - </Tab> | |
| 312 | - </Tabs> | |
| 313 | - </Tab> | |
| 314 | 184 | </Tabs> |
| 315 | 185 | |
| 316 | 186 | ### DeepSeek Coder 2 16B |
| @@ -357,50 +227,6 @@ | ||
| 357 | 227 | </Tab> |
| 358 | 228 | </Tabs> |
| 359 | 229 | </Tab> |
| 360 | - <Tab title="JSON"> | |
| 361 | - <Tabs> | |
| 362 | - <Tab title="Ollama"> | |
| 363 | - ```json title="config.json" | |
| 364 | - { | |
| 365 | - "models": [ | |
| 366 | - { | |
| 367 | - "title": "DeepSeek Coder 2 16B", | |
| 368 | - "provider": "ollama", | |
| 369 | - "model": "deepseek-coder-v2:16b", | |
| 370 | - "apiBase": "http://localhost:11434" | |
| 371 | - } | |
| 372 | - ] | |
| 373 | - } | |
| 374 | - ``` | |
| 375 | - </Tab> | |
| 376 | - <Tab title="LM Studio"> | |
| 377 | - ```json title="config.json" | |
| 378 | - { | |
| 379 | - "models": [ | |
| 380 | - { | |
| 381 | - "title": "DeepSeek Coder 2 16B", | |
| 382 | - "provider": "lmstudio", | |
| 383 | - "model": "deepseek-coder-v2:16b" | |
| 384 | - } | |
| 385 | - ] | |
| 386 | - } | |
| 387 | - ``` | |
| 388 | - </Tab> | |
| 389 | - <Tab title="Msty"> | |
| 390 | - ```json title="config.json" | |
| 391 | - { | |
| 392 | - "models": [ | |
| 393 | - { | |
| 394 | - "title": "DeepSeek Coder 2 16B", | |
| 395 | - "provider": "msty", | |
| 396 | - "model": "deepseek-coder-v2:16b" | |
| 397 | - } | |
| 398 | - ] | |
| 399 | - } | |
| 400 | - ``` | |
| 401 | - </Tab> | |
| 402 | - </Tabs> | |
| 403 | - </Tab> | |
| 404 | 230 | </Tabs> |
| 405 | 231 | |
| 406 | 232 | ## Other experiences |
modified docs/customize/model-roles/edit.mdx +9 −32
| @@ -10,38 +10,15 @@ | ||
| 10 | 10 | |
| 11 | 11 | In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used. |
| 12 | 12 | |
| 13 | -<Tabs> | |
| 14 | - <Tab title="YAML"> | |
| 15 | - Use model roles. | |
| 16 | - ```yaml title="config.yaml" | |
| 17 | - models: | |
| 18 | - - name: Claude 3.5 Sonnet | |
| 19 | - provider: anthropic | |
| 20 | - model: claude-3-5-sonnet-latest | |
| 21 | - apiKey: <YOUR_ANTHROPIC_API_KEY> | |
| 22 | - roles: | |
| 23 | - - edit | |
| 24 | - ``` | |
| 25 | - </Tab> | |
| 26 | - <Tab title="JSON"> | |
| 27 | - Set the `experimental.modelRoles.inlineEdit` property in `config.json`. | |
| 28 | - ```json title="config.json" | |
| 29 | - { | |
| 30 | - "models": { | |
| 31 | - "name": "Claude 3.5 Sonnet", | |
| 32 | - "provider": "anthropic", | |
| 33 | - "model": "claude-3-5-sonnet-latest", | |
| 34 | - "apiKey": "<YOUR_ANTHROPIC_API_KEY>" | |
| 35 | - }, | |
| 36 | - "experimental": { | |
| 37 | - "modelRoles": { | |
| 38 | - "inlineEdit": "Claude 3.5 Sonnet", | |
| 39 | - } | |
| 40 | - } | |
| 41 | - } | |
| 42 | - ``` | |
| 43 | - </Tab> | |
| 44 | -</Tabs> | |
| 13 | +```yaml title="config.yaml" | |
| 14 | +models: | |
| 15 | + - name: Claude 4 Sonnet | |
| 16 | + provider: anthropic | |
| 17 | + model: claude-3-5-sonnet-latest | |
| 18 | + apiKey: <YOUR_ANTHROPIC_API_KEY> | |
| 19 | + roles: | |
| 20 | + - edit | |
| 21 | +``` | |
| 45 | 22 | |
| 46 | 23 | Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). Generally, our recommendations for Edit overlap with recommendations for Chat. |
| 47 | 24 |
modified docs/customize/model-roles/reranking.mdx +5 −53
| @@ -23,7 +23,10 @@ | ||
| 23 | 23 | |
| 24 | 24 | <Tabs> |
| 25 | 25 | <Tab title="Hub"> |
| 26 | - [Voyage Rerank 2 Block](https://hub.continue.dev/voyageai/rerank-2) | |
| 26 | + ```yaml title="config.yaml" | |
| 27 | + models: | |
| 28 | + - uses: voyageai/rerank-2 | |
| 29 | + ``` | |
| 27 | 30 | </Tab> |
| 28 | 31 | <Tab title="YAML"> |
| 29 | 32 | ```yaml title="config.yaml" |
| @@ -36,19 +39,6 @@ | ||
| 36 | 39 | - rerank |
| 37 | 40 | ``` |
| 38 | 41 | </Tab> |
| 39 | - <Tab title="JSON"> | |
| 40 | - ```json title="config.json" | |
| 41 | - { | |
| 42 | - "reranker": { | |
| 43 | - "name": "voyage", | |
| 44 | - "params": { | |
| 45 | - "model": "rerank-2", | |
| 46 | - "apiKey": "<YOUR_VOYAGE_API_KEY>" | |
| 47 | - } | |
| 48 | - } | |
| 49 | - } | |
| 50 | - ``` | |
| 51 | - </Tab> | |
| 52 | 42 | </Tabs> |
| 53 | 43 | |
| 54 | 44 | ### Cohere |
| @@ -71,19 +61,6 @@ | ||
| 71 | 61 | - rerank |
| 72 | 62 | ``` |
| 73 | 63 | </Tab> |
| 74 | - <Tab title="JSON"> | |
| 75 | - ```json title="config.json" | |
| 76 | - { | |
| 77 | - "reranker": { | |
| 78 | - "name": "cohere", | |
| 79 | - "params": { | |
| 80 | - "model": "rerank-english-v3.0", | |
| 81 | - "apiKey": "<YOUR_COHERE_API_KEY>" | |
| 82 | - } | |
| 83 | - } | |
| 84 | - } | |
| 85 | - ``` | |
| 86 | - </Tab> | |
| 87 | 64 | </Tabs> |
| 88 | 65 | |
| 89 | 66 | ### LLM |
| @@ -105,21 +82,9 @@ | ||
| 105 | 82 | - rerank |
| 106 | 83 | ``` |
| 107 | 84 | </Tab> |
| 108 | - <Tab title="JSON"> | |
| 109 | - ```json title="config.json" | |
| 110 | - { | |
| 111 | - "reranker": { | |
| 112 | - "name": "llm", | |
| 113 | - "params": { | |
| 114 | - "modelTitle": "My Model Title" | |
| 115 | - } | |
| 116 | - } | |
| 117 | - } | |
| 118 | - ``` | |
| 119 | - </Tab> | |
| 120 | 85 | </Tabs> |
| 121 | 86 | |
| 122 | -The `"modelTitle"` field must match one of the models in your "models" array in config.json. | |
| 87 | + | |
| 123 | 88 | |
| 124 | 89 | ### Text Embeddings Inference |
| 125 | 90 | |
| @@ -142,17 +107,4 @@ | ||
| 142 | 107 | - rerank |
| 143 | 108 | ``` |
| 144 | 109 | </Tab> |
| 145 | - <Tab title="JSON"> | |
| 146 | - ```json title="config.json" | |
| 147 | - { | |
| 148 | - "reranker": { | |
| 149 | - "name": "huggingface-tei", | |
| 150 | - "params": { | |
| 151 | - "apiBase": "http://localhost:8080", | |
| 152 | - "apiKey": "<YOUR_TEI_API_KEY>" | |
| 153 | - } | |
| 154 | - } | |
| 155 | - } | |
| 156 | - ``` | |
| 157 | - </Tab> | |
| 158 | 110 | </Tabs> |
modified docs/reference/yaml-migration.mdx +42 −27
| @@ -1,17 +1,16 @@ | ||
| 1 | 1 | --- |
| 2 | 2 | title: "Migrating Config to YAML" |
| 3 | -description: "Continue's YAML configuration format provides more readable, maintainable, consistent configuration files, as well as new configuration options and removal of some old configuration options. YAML is the preferred format and will be used to integrate with future Continue products. Below is a brief guide for migration from to ." | |
| 3 | +description: "Continue's YAML configuration format provides more readable, maintainable, consistent configuration files, as well as new configuration options and removal of some old configuration options. YAML is the preferred format and will be used to integrate with future Continue products. Below is a brief guide for migration from config.json to config.yaml." | |
| 4 | 4 | --- |
| 5 | 5 | |
| 6 | 6 | See also |
| 7 | 7 | |
| 8 | 8 | - [Intro to YAML](https://yaml.org/) |
| 9 | -- [JSON Continue Config Reference](/reference) | |
| 10 | 9 | - [YAML Continue Config Reference](/reference) |
| 11 | 10 | |
| 12 | 11 | ## Create YAML file |
| 13 | 12 | |
| 14 | -Create a `config.yaml` file in your Continue Global Directory (`~/.continue` on Mac, `%USERPROFILE%\.continue`) alongside your current `config.json` file. If a `config.yaml` file is present, it will be loaded instead of `config.json`. | |
| 13 | +Create a `config.yaml` file in your Continue Global Directory (`~/.continue` on Mac, `%USERPROFILE%\.continue`) alongside your current config.json file. If a `config.yaml` file is present, it will be loaded instead of config.json. | |
| 15 | 14 | |
| 16 | 15 | Give your configuration a `name` and a `version`: |
| 17 | 16 | |
| @@ -87,12 +86,12 @@ | ||
| 87 | 86 | |
| 88 | 87 | config.yaml |
| 89 | 88 | |
| 90 | -``` | |
| 89 | +```yaml | |
| 91 | 90 | models: |
| 92 | 91 | - name: GPT-4 |
| 93 | 92 | provider: openai |
| 94 | 93 | model: gpt-4 |
| 95 | - apiKey: <YOUR_OPENAI_KEY> | |
| 94 | + apiKey: <YOUR_OPENAI_API_KEY> | |
| 96 | 95 | defaultCompletionOptions: |
| 97 | 96 | temperature: 0.5 |
| 98 | 97 | maxTokens: 2000 |
| @@ -101,7 +100,8 @@ | ||
| 101 | 100 | - edit |
| 102 | 101 | - name: My Voyage Reranker |
| 103 | 102 | provider: voyage |
| 104 | - apiKey: <YOUR_VOYAGE_KEY> | |
| 103 | + model: rerank-2 | |
| 104 | + apiKey: <YOUR_VOYAGE_API_KEY> | |
| 105 | 105 | roles: |
| 106 | 106 | - rerank |
| 107 | 107 | - name: My Starcoder |
| @@ -111,22 +111,25 @@ | ||
| 111 | 111 | - autocomplete |
| 112 | 112 | - name: My Ada Embedder |
| 113 | 113 | provider: openai |
| 114 | - apiKey: <YOUR_ADA_API_KEY> | |
| 114 | + model: text-embedding-ada-002 | |
| 115 | + apiKey: <YOUR_OPENAI_API_KEY> | |
| 115 | 116 | roles: |
| 116 | 117 | - embed |
| 117 | 118 | embedOptions: |
| 118 | - - maxChunkSize: 256 | |
| 119 | - - maxBatchSize: 5 | |
| 119 | + maxChunkSize: 256 | |
| 120 | + maxBatchSize: 5 | |
| 120 | 121 | - name: Ollama Autodetect |
| 121 | 122 | provider: ollama |
| 122 | 123 | model: AUTODETECT |
| 123 | - - name: My Open AI Compatible Model - Apply | |
| 124 | + roles: | |
| 125 | + - chat | |
| 126 | + - name: My Open AI Compatible Model | |
| 124 | 127 | provider: openai |
| 125 | 128 | model: my-openai-compatible-model |
| 126 | 129 | apiBase: http://3.3.3.3/v1 |
| 127 | 130 | requestOptions: |
| 128 | 131 | headers: |
| 129 | - X-Auth-Token: <MY_API_KEY> | |
| 132 | + X-Auth-Token: <API_KEY> | |
| 130 | 133 | roles: |
| 131 | 134 | - chat |
| 132 | 135 | - apply |
| @@ -159,7 +162,7 @@ | ||
| 159 | 162 | |
| 160 | 163 | config.yaml |
| 161 | 164 | |
| 162 | -``` | |
| 165 | +```yaml | |
| 163 | 166 | context: |
| 164 | 167 | - provider: docs |
| 165 | 168 | - provider: codebase |
| @@ -178,14 +181,16 @@ | ||
| 178 | 181 | config.json |
| 179 | 182 | |
| 180 | 183 | ```json |
| 181 | -{ "systemMessage": "Always give concise responses" } | |
| 184 | +{ | |
| 185 | + "systemMessage": "Always give concise responses" | |
| 186 | +} | |
| 182 | 187 | ``` |
| 183 | 188 | |
| 184 | 189 | **After** |
| 185 | 190 | |
| 186 | 191 | config.yaml |
| 187 | 192 | |
| 188 | -``` | |
| 193 | +```yaml | |
| 189 | 194 | rules: |
| 190 | 195 | - Always give concise responses |
| 191 | 196 | ``` |
| @@ -214,7 +219,7 @@ | ||
| 214 | 219 | |
| 215 | 220 | config.yaml |
| 216 | 221 | |
| 217 | -``` | |
| 222 | +```yaml | |
| 218 | 223 | prompts: |
| 219 | 224 | - name: check |
| 220 | 225 | description: Check for mistakes in my code |
| @@ -239,8 +244,14 @@ | ||
| 239 | 244 | ```json |
| 240 | 245 | { |
| 241 | 246 | "docs": [ |
| 242 | - { "startUrl": "https://docs.nestjs.com/", "title": "nest.js" }, | |
| 243 | - { "startUrl": "https://mysite.com/docs/", "title": "My site" } | |
| 247 | + { | |
| 248 | + "startUrl": "https://docs.nestjs.com/", | |
| 249 | + "title": "nest.js" | |
| 250 | + }, | |
| 251 | + { | |
| 252 | + "startUrl": "https://mysite.com/docs/", | |
| 253 | + "title": "My site" | |
| 254 | + } | |
| 244 | 255 | ] |
| 245 | 256 | } |
| 246 | 257 | ``` |
| @@ -249,7 +260,7 @@ | ||
| 249 | 260 | |
| 250 | 261 | config.yaml |
| 251 | 262 | |
| 252 | -``` | |
| 263 | +```yaml | |
| 253 | 264 | docs: |
| 254 | 265 | - name: nest.js |
| 255 | 266 | startUrl: https://docs.nestjs.com/ |
| @@ -279,8 +290,14 @@ | ||
| 279 | 290 | "transport": { |
| 280 | 291 | "type": "stdio", |
| 281 | 292 | "command": "uvx", |
| 282 | - "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"], | |
| 283 | - "env": { "KEY": "<VALUE>" } | |
| 293 | + "args": [ | |
| 294 | + "mcp-server-sqlite", | |
| 295 | + "--db-path", | |
| 296 | + "/Users/NAME/test.db" | |
| 297 | + ], | |
| 298 | + "env": { | |
| 299 | + "KEY": "<VALUE>" | |
| 300 | + } | |
| 284 | 301 | } |
| 285 | 302 | } |
| 286 | 303 | ] |
| @@ -292,7 +309,7 @@ | ||
| 292 | 309 | |
| 293 | 310 | config.yaml |
| 294 | 311 | |
| 295 | -``` | |
| 312 | +```yaml | |
| 296 | 313 | mcpServers: |
| 297 | 314 | - name: My MCP Server |
| 298 | 315 | command: uvx |
| @@ -308,13 +325,11 @@ | ||
| 308 | 325 | |
| 309 | 326 | ## Deprecated configuration options |
| 310 | 327 | |
| 311 | -Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the user settings (Gear Icon). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`. | |
| 312 | - | |
| 313 | -See the [JSON Config Reference](/reference) for more information on fully deprecated options. | |
| 328 | +Some deprecated config.json settings are no longer stored in config and have been moved to be editable through the user settings (Gear Icon). If found in config.json, they will be auto-migrated to User Settings and removed from config.json. | |
| 314 | 329 | |
| 315 | -The following top-level fields from `config.json` still work when using `config.json` but have been deprecated and don't have a YAML equivalent: | |
| 330 | +The following top-level fields from config.json have been deprecated and don't have a config.yaml equivalent: | |
| 316 | 331 | |
| 317 | -- Slash commands (JSON `slashCommands`) | |
| 332 | +- Slash commands (`slashCommands`) | |
| 318 | 333 | |
| 319 | 334 | - top-level `requestOptions` |
| 320 | 335 | |
| @@ -332,7 +347,7 @@ | ||
| 332 | 347 | |
| 333 | 348 | - `analytics` |
| 334 | 349 | |
| 335 | -The following top-level fields from `config.json` have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI | |
| 350 | +The following top-level fields from config.json have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI | |
| 336 | 351 | |
| 337 | 352 | - `customCommands` |
| 338 | 353 | - `experimental` |