Elffuss BraidHub

kikocis/continue public

Merge pull request #7754 from continuedev/continue-1757978577745

Replace config.json references with config.yml in documentation
Changeset6c9c9d0b91ee86318a7e18dfa89022b4e56ddad2c0ee0d475e95465d0dea72fc
AuthorBekahHW <34313413+BekahHW@users.noreply.github.com> · 2025-09-23 13:06 -04:00
CommitterGitHub <noreply@github.com> · 2025-09-23 13:06 -04:00
Parents77481f9d7b6c, 12ae6ad08848

Browse the files at this changeset

6 files changed

modified docs/customize/custom-providers.mdx +0 −183
@@ -19,116 +19,62 @@
1919
2020 Reference any file in your current workspace.
2121
22-- YAML
23-- JSON
24-
2522 config.yaml
2623
2724 ```
2825 context: - provider: file
2926 ```
3027
31-config.json
32-
33-```json
34-{ "contextProviders": [{ "name": "file" }] }
35-```
36-
3728 ### @Code Context Provider – Reference Functions and Classes
3829
3930 Reference specific functions or classes from throughout your project.
4031
41-- YAML
42-- JSON
43-
4432 config.yaml
4533
4634 ```
4735 context: - provider: code
4836 ```
4937
50-config.json
51-
52-```json
53-{ "contextProviders": [{ "name": "code" }] }
54-```
55-
5638 ### @Git Diff Context Provider – Reference Branch Changes
5739
5840 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.
5941
60-- YAML
61-- JSON
62-
6342 config.yaml
6443
6544 ```
6645 context: - provider: diff
6746 ```
6847
69-config.json
70-
71-```json
72-{ "contextProviders": [{ "name": "diff" }] }
73-```
74-
7548 ### @Current File Context Provider – Reference the Active File
7649
7750 Reference the currently open file.
7851
79-- YAML
80-- JSON
81-
8252 config.yaml
8353
8454 ```
8555 context: - provider: currentFile
8656 ```
8757
88-config.json
89-
90-```json
91-{ "contextProviders": [{ "name": "currentFile" }] }
92-```
93-
9458 ### @Terminal Context Provider – Reference Last Terminal Command and Output
9559
9660 Reference the last command you ran in your IDE's terminal and its output.
9761
98-- YAML
99-- JSON
100-
10162 config.yaml
10263
10364 ```
10465 context: - provider: terminal
10566 ```
10667
107-config.json
108-
109-```json
110-{ "contextProviders": [{ "name": "terminal" }] }
111-```
112-
11368 ### @Docs Context Provider – Reference Documentation Site Content
11469
11570 Reference the contents from any documentation site.
11671
117-- YAML
118-- JSON
119-
12072 config.yaml
12173
12274 ```
12375 context: - provider: docs
12476 ```
12577
126-config.json
127-
128-```json
129-{ "contextProviders": [{ "name": "docs" }] }
130-```
131-
13278 Note that this will only enable the `@Docs` context provider.
13379
13480 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 @@
13783
13884 Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
13985
140-- YAML
141-- JSON
142-
14386 config.yaml
14487
14588 ```
@@ -149,21 +92,12 @@
14992 onlyPinned: true
15093 ```
15194
152-config.json
153-
154-```json
155-{ "contextProviders": [{ "name": "open", "params": { "onlyPinned": true } }] }
156-```
157-
15895 ### @Web Context Provider – Reference Relevant Web Pages
15996
16097 Reference relevant pages from across the web, automatically determined from your input.
16198
16299 Optionally, set `n` to limit the number of results returned (default 6).
163100
164-- YAML
165-- JSON
166-
167101 config.yaml
168102
169103 ```
@@ -173,19 +107,10 @@
173107 n: 5
174108 ```
175109
176-config.json
177-
178-```json
179-{ "contextProviders": [{ "name": "web", "params": { "n": 5 } }] }
180-```
181-
182110 ### @Codebase Context Provider – Reference Relevant Codebase Snippets
183111
184112 Reference the most relevant snippets from your codebase.
185113
186-- YAML
187-- JSON
188-
189114 config.yaml
190115
191116 ```
@@ -193,40 +118,22 @@
193118 - provider: codebase
194119 ```
195120
196-config.json
197-
198-```json
199-{ "contextProviders": [{ "name": "codebase" }] }
200-```
201-
202121 Read more about indexing and retrieval [here](/customize/overview#codebase-context).
203122
204123 ### @Folder Context Provider – Reference Code from a Specific Folder
205124
206125 Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
207126
208-- YAML
209-- JSON
210-
211127 config.yaml
212128
213129 ```
214130 context: - provider: folder
215131 ```
216132
217-config.json
218-
219-```json
220-{ "contextProviders": [{ "name": "folder" }] }
221-```
222-
223133 ### @Search Context Provider – Reference Code Search Results
224134
225135 Reference the results of codebase search, just like the results you would get from VS Code search.
226136
227-- YAML
228-- JSON
229-
230137 config.yaml
231138
232139 ```
@@ -236,21 +143,12 @@
236143 maxResults: 100 # optional, defaults to 200
237144 ```
238145
239-config.json
240-
241-```json
242-{ "contextProviders": [ { "name": "search", "params": { "maxResults": 100 // optional, defaults to 200 } } ]}
243-```
244-
245146 This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
246147
247148 ### @Url Context Provider – Reference Content from a URL
248149
249150 Reference the markdown converted contents of a given URL.
250151
251-- YAML
252-- JSON
253-
254152 config.yaml
255153
256154 ```
@@ -258,19 +156,10 @@
258156 - provider: url
259157 ```
260158
261-config.json
262-
263-```json
264-{ "contextProviders": [{ "name": "url" }] }
265-```
266-
267159 ### @Clipboard Context Provider – Reference Clipboard Items
268160
269161 Reference recent clipboard items
270162
271-- YAML
272-- JSON
273-
274163 config.yaml
275164
276165 ```
@@ -278,19 +167,10 @@
278167 - provider: clipboard
279168 ```
280169
281-config.json
282-
283-```json
284-{ "contextProviders": [{ "name": "clipboard" }] }
285-```
286-
287170 ### @Tree Context Provider – Reference Workspace File Structure
288171
289172 Reference the structure of your current workspace.
290173
291-- YAML
292-- JSON
293-
294174 config.yaml
295175
296176 ```
@@ -298,19 +178,10 @@
298178 - provider: tree
299179 ```
300180
301-config.json
302-
303-```json
304-{ "contextProviders": [{ "name": "tree" }] }
305-```
306-
307181 ### @Problems Context Provider – Reference Problems in the Current File
308182
309183 Get Problems from the current file.
310184
311-- YAML
312-- JSON
313-
314185 config.yaml
315186
316187 ```
@@ -318,19 +189,10 @@
318189 - provider: problems
319190 ```
320191
321-config.json
322-
323-```json
324-{ "contextProviders": [{ "name": "problems" }] }
325-```
326-
327192 ### @Debugger Context Provider – Reference Debugger Local Variables
328193
329194 Reference the contents of the local variables in the debugger. Currently only available in VS Code.
330195
331-- YAML
332-- JSON
333-
334196 config.yaml
335197
336198 ```
@@ -340,12 +202,6 @@
340202 stackDepth: 3
341203 ```
342204
343-config.json
344-
345-```json
346-{ "contextProviders": [{ "name": "debugger", "params": { "stackDepth": 3 } }] }
347-```
348-
349205 Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
350206
351207 ### @Repository Map Context Provider – Reference Codebase Outline and Signatures
@@ -354,9 +210,6 @@
354210
355211 `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.
356212
357-- YAML
358-- JSON
359-
360213 config.yaml
361214
362215 ```
@@ -366,12 +219,6 @@
366219 includeSignatures: false # default true
367220 ```
368221
369-config.json
370-
371-```json
372-{ "contextProviders": [ { "name": "repo-map", "params": { "includeSignatures": false // default true } } ]}
373-```
374-
375222 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.
376223
377224 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 @@
382229
383230 Reference the architecture and platform of your current operating system.
384231
385-- YAML
386-- JSON
387-
388232 config.yaml
389233
390234 ```
@@ -392,19 +236,10 @@
392236 - provider: os
393237 ```
394238
395-config.json
396-
397-```json
398-{ "contextProviders": [{ "name": "os" }] }
399-```
400-
401239 ### Using the Model Context Protocol (MCP) in Continue
402240
403241 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:
404242
405-- YAML
406-- JSON
407-
408243 config.yaml
409244
410245 ```
@@ -417,24 +252,6 @@
417252 - /Users/NAME/test.db
418253 ```
419254
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-
438255 You'll then be able to type "@" and see "MCP" in the context providers dropdown.
439256
440257 ### How to Request a New Context Provider in Continue
modified docs/customize/deep-dives/custom-providers.mdx +71 −299
@@ -15,251 +15,95 @@
1515
1616 Reference any file in your current workspace.
1717
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+```
3722
3823 ### `@Code`
3924
4025 Reference specific functions or classes from throughout your project.
4126
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+```
6131
6232 ### `@Git Diff`
6333
6434 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.
6535
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+```
8540
8641 ### `@Current File`
8742
8843 Reference the currently open file.
8944
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+```
10949
11050 ### `@Terminal`
11151
11252 Reference the last command you ran in your IDE's terminal and its output.
11353
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+```
13358
13459 ### `@Open`
13560
13661 Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
13762
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+```
16269
16370 ### `@Clipboard`
16471
16572 Reference recent clipboard items
16673
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+```
18678
18779 ### `@Tree`
18880
18981 Reference the structure of your current workspace.
19082
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+```
21087
21188 ### `@Problems`
21289
21390 Get Problems from the current file.
21491
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+```
23496
23597 ### `@Debugger`
23698
23799 Reference the contents of the local variables in the debugger. Currently only available in VS Code.
238100
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+```
263107
264108 Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
265109
@@ -269,30 +113,12 @@
269113
270114 `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.
271115
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+```
296122
297123 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.
298124
@@ -304,56 +130,23 @@
304130
305131 Reference the architecture and platform of your current operating system.
306132
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+```
326137
327138 ### `@HTTP`
328139
329140 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.
330141
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+```
357150
358151 The receiving URL should expect to receive the following parameters:
359152
@@ -375,36 +168,15 @@
375168
376169 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:
377170
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+```
408180
409181 You'll then be able to type "@" and see "MCP" in the context providers dropdown.
410182
modified docs/customize/model-roles/chat.mdx +0 −174
@@ -36,20 +36,6 @@
3636 apiKey: <YOUR_ANTHROPIC_API_KEY>
3737 ```
3838 </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>
5339 </Tabs>
5440
5541 ### Gemma from Google DeepMind
@@ -88,37 +74,6 @@
8874 </Tab>
8975 </Tabs>
9076 </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>
12277 </Tabs>
12378
12479 ### GPT-4o from OpenAI
@@ -138,20 +93,6 @@
13893 apiKey: <YOUR_OPENAI_API_KEY>
13994 ```
14095 </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>
15596 </Tabs>
15697
15798 ### Grok-2 from xAI
@@ -171,20 +112,6 @@
171112 apiKey: <YOUR_XAI_API_KEY>
172113 ```
173114 </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>
188115 </Tabs>
189116
190117 ### Gemini 2.0 Flash from Google
@@ -204,20 +131,6 @@
204131 apiKey: <YOUR_GEMINI_API_KEY>
205132 ```
206133 </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>
221134 </Tabs>
222135
223136 ## Local, offline experience
@@ -268,49 +181,6 @@
268181 </Tab>
269182 </Tabs>
270183 </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>
314184 </Tabs>
315185
316186 ### DeepSeek Coder 2 16B
@@ -357,50 +227,6 @@
357227 </Tab>
358228 </Tabs>
359229 </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>
404230 </Tabs>
405231
406232 ## Other experiences
modified docs/customize/model-roles/edit.mdx +9 −32
@@ -10,38 +10,15 @@
1010
1111 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.
1212
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+```
4522
4623 Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). Generally, our recommendations for Edit overlap with recommendations for Chat.
4724
modified docs/customize/model-roles/reranking.mdx +5 −53
@@ -23,7 +23,10 @@
2323
2424 <Tabs>
2525 <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+ ```
2730 </Tab>
2831 <Tab title="YAML">
2932 ```yaml title="config.yaml"
@@ -36,19 +39,6 @@
3639 - rerank
3740 ```
3841 </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>
5242 </Tabs>
5343
5444 ### Cohere
@@ -71,19 +61,6 @@
7161 - rerank
7262 ```
7363 </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>
8764 </Tabs>
8865
8966 ### LLM
@@ -105,21 +82,9 @@
10582 - rerank
10683 ```
10784 </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>
12085 </Tabs>
12186
122-The `"modelTitle"` field must match one of the models in your "models" array in config.json.
87+
12388
12489 ### Text Embeddings Inference
12590
@@ -142,17 +107,4 @@
142107 - rerank
143108 ```
144109 </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>
158110 </Tabs>
modified docs/reference/yaml-migration.mdx +42 −27
@@ -1,17 +1,16 @@
11 ---
22 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."
44 ---
55
66 See also
77
88 - [Intro to YAML](https://yaml.org/)
9-- [JSON Continue Config Reference](/reference)
109 - [YAML Continue Config Reference](/reference)
1110
1211 ## Create YAML file
1312
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.
1514
1615 Give your configuration a `name` and a `version`:
1716
@@ -87,12 +86,12 @@
8786
8887 config.yaml
8988
90-```
89+```yaml
9190 models:
9291 - name: GPT-4
9392 provider: openai
9493 model: gpt-4
95- apiKey: <YOUR_OPENAI_KEY>
94+ apiKey: <YOUR_OPENAI_API_KEY>
9695 defaultCompletionOptions:
9796 temperature: 0.5
9897 maxTokens: 2000
@@ -101,7 +100,8 @@
101100 - edit
102101 - name: My Voyage Reranker
103102 provider: voyage
104- apiKey: <YOUR_VOYAGE_KEY>
103+ model: rerank-2
104+ apiKey: <YOUR_VOYAGE_API_KEY>
105105 roles:
106106 - rerank
107107 - name: My Starcoder
@@ -111,22 +111,25 @@
111111 - autocomplete
112112 - name: My Ada Embedder
113113 provider: openai
114- apiKey: <YOUR_ADA_API_KEY>
114+ model: text-embedding-ada-002
115+ apiKey: <YOUR_OPENAI_API_KEY>
115116 roles:
116117 - embed
117118 embedOptions:
118- - maxChunkSize: 256
119- - maxBatchSize: 5
119+ maxChunkSize: 256
120+ maxBatchSize: 5
120121 - name: Ollama Autodetect
121122 provider: ollama
122123 model: AUTODETECT
123- - name: My Open AI Compatible Model - Apply
124+ roles:
125+ - chat
126+ - name: My Open AI Compatible Model
124127 provider: openai
125128 model: my-openai-compatible-model
126129 apiBase: http://3.3.3.3/v1
127130 requestOptions:
128131 headers:
129- X-Auth-Token: <MY_API_KEY>
132+ X-Auth-Token: <API_KEY>
130133 roles:
131134 - chat
132135 - apply
@@ -159,7 +162,7 @@
159162
160163 config.yaml
161164
162-```
165+```yaml
163166 context:
164167 - provider: docs
165168 - provider: codebase
@@ -178,14 +181,16 @@
178181 config.json
179182
180183 ```json
181-{ "systemMessage": "Always give concise responses" }
184+{
185+ "systemMessage": "Always give concise responses"
186+}
182187 ```
183188
184189 **After**
185190
186191 config.yaml
187192
188-```
193+```yaml
189194 rules:
190195 - Always give concise responses
191196 ```
@@ -214,7 +219,7 @@
214219
215220 config.yaml
216221
217-```
222+```yaml
218223 prompts:
219224 - name: check
220225 description: Check for mistakes in my code
@@ -239,8 +244,14 @@
239244 ```json
240245 {
241246 "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+ }
244255 ]
245256 }
246257 ```
@@ -249,7 +260,7 @@
249260
250261 config.yaml
251262
252-```
263+```yaml
253264 docs:
254265 - name: nest.js
255266 startUrl: https://docs.nestjs.com/
@@ -279,8 +290,14 @@
279290 "transport": {
280291 "type": "stdio",
281292 "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+ }
284301 }
285302 }
286303 ]
@@ -292,7 +309,7 @@
292309
293310 config.yaml
294311
295-```
312+```yaml
296313 mcpServers:
297314 - name: My MCP Server
298315 command: uvx
@@ -308,13 +325,11 @@
308325
309326 ## Deprecated configuration options
310327
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.
314329
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:
316331
317-- Slash commands (JSON `slashCommands`)
332+- Slash commands (`slashCommands`)
318333
319334 - top-level `requestOptions`
320335
@@ -332,7 +347,7 @@
332347
333348 - `analytics`
334349
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
336351
337352 - `customCommands`
338353 - `experimental`