Changesets · Branches · Tags · Compare
| Changeset | 12ae6ad08848af6531ae9d2479167db051a022d084d69bd6a12cedbbcde6f94f |
|---|---|
| Author | Brian 'bdougie' Douglas <brian@dinnerpeople.app> · 2025-09-22 23:18 -07:00 |
| Committer | Brian 'bdougie' Douglas <brian@dinnerpeople.app> · 2025-09-22 23:18 -07:00 |
| Parents | 9d5865e0e05b |
3 files changed
modified docs/customize/model-roles/edit.mdx +1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | |
| 13 | 13 | ```yaml title="config.yaml" |
| 14 | 14 | models: |
| 15 | - - name: Claude 3.5 Sonnet | |
| 15 | + - name: Claude 4 Sonnet | |
| 16 | 16 | provider: anthropic |
| 17 | 17 | model: claude-3-5-sonnet-latest |
| 18 | 18 | apiKey: <YOUR_ANTHROPIC_API_KEY> |
modified docs/customize/model-roles/reranking.mdx +4 −1
| @@ -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" |
modified docs/reference/yaml-migration.mdx +109 −91
| @@ -44,52 +44,54 @@ | ||
| 44 | 44 | |
| 45 | 45 | config.json |
| 46 | 46 | |
| 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 | +} | |
| 81 | 83 | ``` |
| 82 | 84 | |
| 83 | 85 | **After** |
| 84 | 86 | |
| 85 | 87 | config.yaml |
| 86 | 88 | |
| 87 | -``` | |
| 89 | +```yaml | |
| 88 | 90 | models: |
| 89 | 91 | - name: GPT-4 |
| 90 | 92 | provider: openai |
| 91 | 93 | model: gpt-4 |
| 92 | - apiKey: <YOUR_OPENAI_KEY> | |
| 94 | + apiKey: <YOUR_OPENAI_API_KEY> | |
| 93 | 95 | defaultCompletionOptions: |
| 94 | 96 | temperature: 0.5 |
| 95 | 97 | maxTokens: 2000 |
| @@ -98,7 +100,8 @@ | ||
| 98 | 100 | - edit |
| 99 | 101 | - name: My Voyage Reranker |
| 100 | 102 | provider: voyage |
| 101 | - apiKey: <YOUR_VOYAGE_KEY> | |
| 103 | + model: rerank-2 | |
| 104 | + apiKey: <YOUR_VOYAGE_API_KEY> | |
| 102 | 105 | roles: |
| 103 | 106 | - rerank |
| 104 | 107 | - name: My Starcoder |
| @@ -108,22 +111,25 @@ | ||
| 108 | 111 | - autocomplete |
| 109 | 112 | - name: My Ada Embedder |
| 110 | 113 | provider: openai |
| 111 | - apiKey: <YOUR_ADA_API_KEY> | |
| 114 | + model: text-embedding-ada-002 | |
| 115 | + apiKey: <YOUR_OPENAI_API_KEY> | |
| 112 | 116 | roles: |
| 113 | 117 | - embed |
| 114 | 118 | embedOptions: |
| 115 | - - maxChunkSize: 256 | |
| 116 | - - maxBatchSize: 5 | |
| 119 | + maxChunkSize: 256 | |
| 120 | + maxBatchSize: 5 | |
| 117 | 121 | - name: Ollama Autodetect |
| 118 | 122 | provider: ollama |
| 119 | 123 | model: AUTODETECT |
| 120 | - - name: My Open AI Compatible Model - Apply | |
| 124 | + roles: | |
| 125 | + - chat | |
| 126 | + - name: My Open AI Compatible Model | |
| 121 | 127 | provider: openai |
| 122 | 128 | model: my-openai-compatible-model |
| 123 | 129 | apiBase: http://3.3.3.3/v1 |
| 124 | 130 | requestOptions: |
| 125 | 131 | headers: |
| 126 | - X-Auth-Token: <MY_API_KEY> | |
| 132 | + X-Auth-Token: <API_KEY> | |
| 127 | 133 | roles: |
| 128 | 134 | - chat |
| 129 | 135 | - apply |
| @@ -142,22 +148,21 @@ | ||
| 142 | 148 | |
| 143 | 149 | config.json |
| 144 | 150 | |
| 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 | +} | |
| 154 | 159 | ``` |
| 155 | 160 | |
| 156 | 161 | **After** |
| 157 | 162 | |
| 158 | 163 | config.yaml |
| 159 | 164 | |
| 160 | -``` | |
| 165 | +```yaml | |
| 161 | 166 | context: |
| 162 | 167 | - provider: docs |
| 163 | 168 | - provider: codebase |
| @@ -175,15 +180,17 @@ | ||
| 175 | 180 | |
| 176 | 181 | config.json |
| 177 | 182 | |
| 178 | -```yaml | |
| 179 | -systemMessage: Always give concise responses | |
| 183 | +```json | |
| 184 | +{ | |
| 185 | + "systemMessage": "Always give concise responses" | |
| 186 | +} | |
| 180 | 187 | ``` |
| 181 | 188 | |
| 182 | 189 | **After** |
| 183 | 190 | |
| 184 | 191 | config.yaml |
| 185 | 192 | |
| 186 | -``` | |
| 193 | +```yaml | |
| 187 | 194 | rules: |
| 188 | 195 | - Always give concise responses |
| 189 | 196 | ``` |
| @@ -196,28 +203,23 @@ | ||
| 196 | 203 | |
| 197 | 204 | config.json |
| 198 | 205 | |
| 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 | +} | |
| 214 | 216 | ``` |
| 215 | 217 | |
| 216 | 218 | **After** |
| 217 | 219 | |
| 218 | 220 | config.yaml |
| 219 | 221 | |
| 220 | -``` | |
| 222 | +```yaml | |
| 221 | 223 | prompts: |
| 222 | 224 | - name: check |
| 223 | 225 | description: Check for mistakes in my code |
| @@ -239,19 +241,26 @@ | ||
| 239 | 241 | |
| 240 | 242 | config.json |
| 241 | 243 | |
| 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 | +} | |
| 248 | 257 | ``` |
| 249 | 258 | |
| 250 | 259 | **After** |
| 251 | 260 | |
| 252 | 261 | config.yaml |
| 253 | 262 | |
| 254 | -``` | |
| 263 | +```yaml | |
| 255 | 264 | docs: |
| 256 | 265 | - name: nest.js |
| 257 | 266 | startUrl: https://docs.nestjs.com/ |
| @@ -273,25 +282,34 @@ | ||
| 273 | 282 | |
| 274 | 283 | config.json |
| 275 | 284 | |
| 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 | +} | |
| 288 | 306 | ``` |
| 289 | 307 | |
| 290 | 308 | **After** |
| 291 | 309 | |
| 292 | 310 | config.yaml |
| 293 | 311 | |
| 294 | -``` | |
| 312 | +```yaml | |
| 295 | 313 | mcpServers: |
| 296 | 314 | - name: My MCP Server |
| 297 | 315 | command: uvx |