Elffuss BraidHub

kikocis/continue public

fix: address review comments for YAML migration docs

- Fix yaml-migration.mdx: correct JSON examples to use proper JSON syntax
- Fix yaml-migration.mdx: update YAML examples to use correct field mappings (context vs contextProviders)
- Fix yaml-migration.mdx: correct model configurations with proper roles and embed options
- Fix edit.mdx: change 'Claude 3.5 Sonnet' to 'Claude 4 Sonnet'
- Fix reranking.mdx: replace Hub tab hyperlinks with actual YAML config examples

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
Changeset12ae6ad08848af6531ae9d2479167db051a022d084d69bd6a12cedbbcde6f94f
AuthorBrian 'bdougie' Douglas <brian@dinnerpeople.app> · 2025-09-22 23:18 -07:00
CommitterBrian 'bdougie' Douglas <brian@dinnerpeople.app> · 2025-09-22 23:18 -07:00
Parents9d5865e0e05b

Browse the files at this changeset

3 files changed

modified docs/customize/model-roles/edit.mdx +1 −1
@@ -12,7 +12,7 @@
1212
1313 ```yaml title="config.yaml"
1414 models:
15- - name: Claude 3.5 Sonnet
15+ - name: Claude 4 Sonnet
1616 provider: anthropic
1717 model: claude-3-5-sonnet-latest
1818 apiKey: <YOUR_ANTHROPIC_API_KEY>
modified docs/customize/model-roles/reranking.mdx +4 −1
@@ -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"
modified docs/reference/yaml-migration.mdx +109 −91
@@ -44,52 +44,54 @@
4444
4545 config.json
4646
47-```yaml
48-models:
49- - title: GPT-4
50- provider: openai
51- model: gpt-4
52- apiKey: <YOUR_OPENAI_API_KEY>
53- completionOptions:
54- temperature: 0.5
55- maxTokens: 2000
56- - title: Ollama
57- provider: ollama
58- model: AUTODETECT
59- - title: My Open AI Compatible Model
60- provider: openai
61- apiBase: http://3.3.3.3/v1
62- model: my-openai-compatible-model
63- requestOptions:
64- headers:
65- X-Auth-Token: <API_KEY>
66-tabAutocompleteModel:
67- title: My Starcoder
68- provider: ollama
69- model: starcoder2:3b
70-embeddingsProvider:
71- provider: openai
72- model: text-embedding-ada-002
73- apiKey: <YOUR_OPENAI_API_KEY>
74- maxEmbeddingChunkSize: 256
75- maxEmbeddingBatchSize: 5
76-reranker:
77- name: voyage
78- params:
79- model: rerank-2
80- apiKey: <YOUR_VOYAGE_API_KEY>
47+```json
48+{
49+ "models": [
50+ {
51+ "title": "GPT-4",
52+ "provider": "openai",
53+ "model": "gpt-4",
54+ "apiKey": "<YOUR_OPENAI_API_KEY>",
55+ "completionOptions": { "temperature": 0.5, "maxTokens": 2000 }
56+ },
57+ { "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" },
58+ {
59+ "title": "My Open AI Compatible Model",
60+ "provider": "openai",
61+ "apiBase": "http://3.3.3.3/v1",
62+ "model": "my-openai-compatible-model",
63+ "requestOptions": { "headers": { "X-Auth-Token": "<API_KEY>" } }
64+ }
65+ ],
66+ "tabAutocompleteModel": {
67+ "title": "My Starcoder",
68+ "provider": "ollama",
69+ "model": "starcoder2:3b"
70+ },
71+ "embeddingsProvider": {
72+ "provider": "openai",
73+ "model": "text-embedding-ada-002",
74+ "apiKey": "<YOUR_OPENAI_API_KEY>",
75+ "maxEmbeddingChunkSize": 256,
76+ "maxEmbeddingBatchSize": 5
77+ },
78+ "reranker": {
79+ "name": "voyage",
80+ "params": { "model": "rerank-2", "apiKey": "<YOUR_VOYAGE_API_KEY>" }
81+ }
82+}
8183 ```
8284
8385 **After**
8486
8587 config.yaml
8688
87-```
89+```yaml
8890 models:
8991 - name: GPT-4
9092 provider: openai
9193 model: gpt-4
92- apiKey: <YOUR_OPENAI_KEY>
94+ apiKey: <YOUR_OPENAI_API_KEY>
9395 defaultCompletionOptions:
9496 temperature: 0.5
9597 maxTokens: 2000
@@ -98,7 +100,8 @@
98100 - edit
99101 - name: My Voyage Reranker
100102 provider: voyage
101- apiKey: <YOUR_VOYAGE_KEY>
103+ model: rerank-2
104+ apiKey: <YOUR_VOYAGE_API_KEY>
102105 roles:
103106 - rerank
104107 - name: My Starcoder
@@ -108,22 +111,25 @@
108111 - autocomplete
109112 - name: My Ada Embedder
110113 provider: openai
111- apiKey: <YOUR_ADA_API_KEY>
114+ model: text-embedding-ada-002
115+ apiKey: <YOUR_OPENAI_API_KEY>
112116 roles:
113117 - embed
114118 embedOptions:
115- - maxChunkSize: 256
116- - maxBatchSize: 5
119+ maxChunkSize: 256
120+ maxBatchSize: 5
117121 - name: Ollama Autodetect
118122 provider: ollama
119123 model: AUTODETECT
120- - name: My Open AI Compatible Model - Apply
124+ roles:
125+ - chat
126+ - name: My Open AI Compatible Model
121127 provider: openai
122128 model: my-openai-compatible-model
123129 apiBase: http://3.3.3.3/v1
124130 requestOptions:
125131 headers:
126- X-Auth-Token: <MY_API_KEY>
132+ X-Auth-Token: <API_KEY>
127133 roles:
128134 - chat
129135 - apply
@@ -142,22 +148,21 @@
142148
143149 config.json
144150
145-```yaml
146-contextProviders:
147- - name: docs
148- - name: codebase
149- params:
150- nRetrieve: 30
151- nFinal: 3
152- - name: diff
153- params: {}
151+```json
152+{
153+ "contextProviders": [
154+ { "name": "docs" },
155+ { "name": "codebase", "params": { "nRetrieve": 30, "nFinal": 3 } },
156+ { "name": "diff", "params": {} }
157+ ]
158+}
154159 ```
155160
156161 **After**
157162
158163 config.yaml
159164
160-```
165+```yaml
161166 context:
162167 - provider: docs
163168 - provider: codebase
@@ -175,15 +180,17 @@
175180
176181 config.json
177182
178-```yaml
179-systemMessage: Always give concise responses
183+```json
184+{
185+ "systemMessage": "Always give concise responses"
186+}
180187 ```
181188
182189 **After**
183190
184191 config.yaml
185192
186-```
193+```yaml
187194 rules:
188195 - Always give concise responses
189196 ```
@@ -196,28 +203,23 @@
196203
197204 config.json
198205
199-```yaml
200-customCommands:
201- - name: check
202- description: Check for mistakes in my code
203- prompt: |
204- {{{ input }}}
205-
206- Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:
207- - Syntax errors
208- - Logic errors
209- - Security vulnerabilities
210- - Performance issues
211- - Anything else that looks wrong
212-
213- Once you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found.
206+```json
207+{
208+ "customCommands": [
209+ {
210+ "name": "check",
211+ "description": "Check for mistakes in my code",
212+ "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found."
213+ }
214+ ]
215+}
214216 ```
215217
216218 **After**
217219
218220 config.yaml
219221
220-```
222+```yaml
221223 prompts:
222224 - name: check
223225 description: Check for mistakes in my code
@@ -239,19 +241,26 @@
239241
240242 config.json
241243
242-```yaml
243-docs:
244- - startUrl: https://docs.nestjs.com/
245- title: nest.js
246- - startUrl: https://mysite.com/docs/
247- title: My site
244+```json
245+{
246+ "docs": [
247+ {
248+ "startUrl": "https://docs.nestjs.com/",
249+ "title": "nest.js"
250+ },
251+ {
252+ "startUrl": "https://mysite.com/docs/",
253+ "title": "My site"
254+ }
255+ ]
256+}
248257 ```
249258
250259 **After**
251260
252261 config.yaml
253262
254-```
263+```yaml
255264 docs:
256265 - name: nest.js
257266 startUrl: https://docs.nestjs.com/
@@ -273,25 +282,34 @@
273282
274283 config.json
275284
276-```yaml
277-experimental:
278- modelContextProtocolServers:
279- - transport:
280- type: stdio
281- command: uvx
282- args:
283- - mcp-server-sqlite
284- - --db-path
285- - /Users/NAME/test.db
286- env:
287- KEY: <VALUE>
285+```json
286+{
287+ "experimental": {
288+ "modelContextProtocolServers": [
289+ {
290+ "transport": {
291+ "type": "stdio",
292+ "command": "uvx",
293+ "args": [
294+ "mcp-server-sqlite",
295+ "--db-path",
296+ "/Users/NAME/test.db"
297+ ],
298+ "env": {
299+ "KEY": "<VALUE>"
300+ }
301+ }
302+ }
303+ ]
304+ }
305+}
288306 ```
289307
290308 **After**
291309
292310 config.yaml
293311
294-```
312+```yaml
295313 mcpServers:
296314 - name: My MCP Server
297315 command: uvx