Merge pull request #7754 from continuedev/continue-1757978577745

Replace config.json references with config.yml in documentation
This commit is contained in:
BekahHW 2025-09-23 13:06:55 -04:00 • committed by GitHub
commit 75fab595d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 127 additions and 768 deletions

View file

@ -19,116 +19,62 @@ You can add any built-in context-providers in your config file as shown below:
Reference any file in your current workspace.
- YAML
- JSON
config.yaml
```
context: - provider: file
```
config.json
```json
{ "contextProviders": [{ "name": "file" }] }
```
### @Code Context Provider – Reference Functions and Classes
Reference specific functions or classes from throughout your project.
- YAML
- JSON
config.yaml
```
context: - provider: code
```
config.json
```json
{ "contextProviders": [{ "name": "code" }] }
```
### @Git Diff Context Provider – Reference Branch Changes
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.
- YAML
- JSON
config.yaml
```
context: - provider: diff
```
config.json
```json
{ "contextProviders": [{ "name": "diff" }] }
```
### @Current File Context Provider – Reference the Active File
Reference the currently open file.
- YAML
- JSON
config.yaml
```
context: - provider: currentFile
```
config.json
```json
{ "contextProviders": [{ "name": "currentFile" }] }
```
### @Terminal Context Provider – Reference Last Terminal Command and Output
Reference the last command you ran in your IDE's terminal and its output.
- YAML
- JSON
config.yaml
```
context: - provider: terminal
```
config.json
```json
{ "contextProviders": [{ "name": "terminal" }] }
```
### @Docs Context Provider – Reference Documentation Site Content
Reference the contents from any documentation site.
- YAML
- JSON
config.yaml
```
context: - provider: docs
```
config.json
```json
{ "contextProviders": [{ "name": "docs" }] }
```
Note that this will only enable the `@Docs` context provider.
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 @@ To use it, you need to add a documentation site to your config file. See the [do
Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
- YAML
- JSON
config.yaml
```
@ -149,21 +92,12 @@ context:
onlyPinned: true
```
config.json
```json
{ "contextProviders": [{ "name": "open", "params": { "onlyPinned": true } }] }
```
### @Web Context Provider – Reference Relevant Web Pages
Reference relevant pages from across the web, automatically determined from your input.
Optionally, set `n` to limit the number of results returned (default 6).
- YAML
- JSON
config.yaml
```
@ -173,19 +107,10 @@ context:
n: 5
```
config.json
```json
{ "contextProviders": [{ "name": "web", "params": { "n": 5 } }] }
```
### @Codebase Context Provider – Reference Relevant Codebase Snippets
Reference the most relevant snippets from your codebase.
- YAML
- JSON
config.yaml
```
@ -193,40 +118,22 @@ context:
- provider: codebase
```
config.json
```json
{ "contextProviders": [{ "name": "codebase" }] }
```
Read more about indexing and retrieval [here](/customize/overview#codebase-context).
### @Folder Context Provider – Reference Code from a Specific Folder
Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
- YAML
- JSON
config.yaml
```
context: - provider: folder
```
config.json
```json
{ "contextProviders": [{ "name": "folder" }] }
```
### @Search Context Provider – Reference Code Search Results
Reference the results of codebase search, just like the results you would get from VS Code search.
- YAML
- JSON
config.yaml
```
@ -236,21 +143,12 @@ context:
maxResults: 100 # optional, defaults to 200
```
config.json
```json
{ "contextProviders": [ { "name": "search", "params": { "maxResults": 100 // optional, defaults to 200 } } ]}
```
This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
### @Url Context Provider – Reference Content from a URL
Reference the markdown converted contents of a given URL.
- YAML
- JSON
config.yaml
```
@ -258,19 +156,10 @@ context:
- provider: url
```
config.json
```json
{ "contextProviders": [{ "name": "url" }] }
```
### @Clipboard Context Provider – Reference Clipboard Items
Reference recent clipboard items
- YAML
- JSON
config.yaml
```
@ -278,19 +167,10 @@ context:
- provider: clipboard
```
config.json
```json
{ "contextProviders": [{ "name": "clipboard" }] }
```
### @Tree Context Provider – Reference Workspace File Structure
Reference the structure of your current workspace.
- YAML
- JSON
config.yaml
```
@ -298,19 +178,10 @@ context:
- provider: tree
```
config.json
```json
{ "contextProviders": [{ "name": "tree" }] }
```
### @Problems Context Provider – Reference Problems in the Current File
Get Problems from the current file.
- YAML
- JSON
config.yaml
```
@ -318,19 +189,10 @@ context:
- provider: problems
```
config.json
```json
{ "contextProviders": [{ "name": "problems" }] }
```
### @Debugger Context Provider – Reference Debugger Local Variables
Reference the contents of the local variables in the debugger. Currently only available in VS Code.
- YAML
- JSON
config.yaml
```
@ -340,12 +202,6 @@ context:
stackDepth: 3
```
config.json
```json
{ "contextProviders": [{ "name": "debugger", "params": { "stackDepth": 3 } }] }
```
Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
### @Repository Map Context Provider – Reference Codebase Outline and Signatures
@ -354,9 +210,6 @@ Reference the outline of your codebase. By default, signatures are included alon
`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.
- YAML
- JSON
config.yaml
```
@ -366,12 +219,6 @@ context:
includeSignatures: false # default true
```
config.json
```json
{ "contextProviders": [ { "name": "repo-map", "params": { "includeSignatures": false // default true } } ]}
```
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.
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 @@ This context provider is inspired by [Aider's repository map](https://aider.chat
Reference the architecture and platform of your current operating system.
- YAML
- JSON
config.yaml
```
@ -392,19 +236,10 @@ context:
- provider: os
```
config.json
```json
{ "contextProviders": [{ "name": "os" }] }
```
### Using the Model Context Protocol (MCP) in Continue
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:
- YAML
- JSON
config.yaml
```
@ -417,24 +252,6 @@ mcpServers:
- /Users/NAME/test.db
```
config.json
```json
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
}
}
]
}
}
```
You'll then be able to type "@" and see "MCP" in the context providers dropdown.
### How to Request a New Context Provider in Continue

View file

@ -15,251 +15,95 @@ You can add any built-in context-providers in your config file as shown below:
Reference any file in your current workspace.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: file
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "file"
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: file
```
### `@Code`
Reference specific functions or classes from throughout your project.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: code
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "code"
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: code
```
### `@Git Diff`
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.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: diff
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "diff"
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: diff
```
### `@Current File`
Reference the currently open file.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: currentFile
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "currentFile"
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: currentFile
```
### `@Terminal`
Reference the last command you ran in your IDE's terminal and its output.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: terminal
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "terminal"
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: terminal
```
### `@Open`
Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: open
params:
onlyPinned: true
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "open",
"params": {
"onlyPinned": true
}
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: open
params:
onlyPinned: true
```
### `@Clipboard`
Reference recent clipboard items
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: clipboard
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "clipboard"
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: clipboard
```
### `@Tree`
Reference the structure of your current workspace.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: tree
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "tree"
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: tree
```
### `@Problems`
Get Problems from the current file.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: problems
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "problems"
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: problems
```
### `@Debugger`
Reference the contents of the local variables in the debugger. Currently only available in VS Code.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: debugger
params:
stackDepth: 3
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "debugger",
"params": {
"stackDepth": 3
}
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: debugger
params:
stackDepth: 3
```
Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
@ -269,30 +113,12 @@ Reference the outline of your codebase. By default, signatures are included alon
`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.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: repo-map
params:
includeSignatures: false # default true
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "repo-map",
"params": {
"includeSignatures": false // default true
}
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: repo-map
params:
includeSignatures: false # default true
```
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.
@ -304,56 +130,23 @@ This context provider is inpsired by [Aider's repository map](https://aider.chat
Reference the architecture and platform of your current operating system.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: os
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "os"
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: os
```
### `@HTTP`
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.
<Tabs>
<Tab title="YAML">
```yaml config.yaml
context:
- provider: http
params:
url: "https://api.example.com/v1/users"
headers:
- Authorization: "Bearer <token>"
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"contextProviders": [
{
"name": "http",
"params": {
"url": "https://api.example.com/v1/users"
}
}
]
}
```
</Tab>
</Tabs>
```yaml config.yaml
context:
- provider: http
params:
url: "https://api.example.com/v1/users"
headers:
- Authorization: "Bearer <token>"
```
The receiving URL should expect to receive the following parameters:
@ -375,36 +168,15 @@ Response
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:
<Tabs>
<Tab title="YAML">
```yaml config.yaml
mcpServers:
- name: My MCP Server
command: uvx
args:
- mcp-server-sqlite
- --db-path
- /Users/NAME/test.db
```
</Tab>
<Tab title="JSON (Deprecated)">
```json config.json
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
}
}
]
}
}
```
</Tab>
</Tabs>
```yaml config.yaml
mcpServers:
- name: My MCP Server
command: uvx
args:
- mcp-server-sqlite
- --db-path
- /Users/NAME/test.db
```
You'll then be able to type "@" and see "MCP" in the context providers dropdown.

View file

@ -36,20 +36,6 @@ Our current top recommendations are Claude Opus 4.1 and Claude Sonnet 4 from [An
apiKey: <YOUR_ANTHROPIC_API_KEY>
```
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
{
"title": "Claude Opus 4.1",
"provider": "anthropic",
"model": "claude-4-1-opus",
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
}
]
}
```
</Tab>
</Tabs>
### Gemma from Google DeepMind
@ -88,37 +74,6 @@ If you prefer to use an open-weight model, then the Gemma family of Models from
</Tab>
</Tabs>
</Tab>
<Tab title="JSON">
<Tabs>
<Tab title="Ollama">
```json title="config.json"
{
"models": [
{
"title": "Gemma 3 27B",
"provider": "ollama",
"model": "gemma3:27b"
}
]
}
```
</Tab>
<Tab title="Together">
```json title="config.json"
{
"models": [
{
"title": "Gemma 3 27B",
"provider": "together",
"model": "google/gemma-2-27b-it",
"apiKey": "<YOUR_TOGETHER_API_KEY>"
}
]
}
```
</Tab>
</Tabs>
</Tab>
</Tabs>
### GPT-4o from OpenAI
@ -138,20 +93,6 @@ If you prefer to use a model from [OpenAI](../model-providers/top-level/openai),
apiKey: <YOUR_OPENAI_API_KEY>
```
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
{
"title": "GPT-4o",
"provider": "openai",
"model": "",
"apiKey": "<YOUR_OPENAI_API_KEY>"
}
]
}
```
</Tab>
</Tabs>
### Grok-2 from xAI
@ -171,20 +112,6 @@ If you prefer to use a model from [xAI](../model-providers/more/xAI), then we re
apiKey: <YOUR_XAI_API_KEY>
```
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
{
"title": "Grok-2",
"provider": "xAI",
"model": "grok-2-latest",
"apiKey": "<YOUR_XAI_API_KEY>"
}
]
}
```
</Tab>
</Tabs>
### Gemini 2.0 Flash from Google
@ -204,20 +131,6 @@ If you prefer to use a model from [Google](../model-providers/top-level/gemini),
apiKey: <YOUR_GEMINI_API_KEY>
```
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
{
"title": "Gemini 2.0 Flash",
"provider": "gemini",
"model": "gemini-2.0-flash",
"apiKey": "<YOUR_GEMINI_API_KEY>"
}
]
}
```
</Tab>
</Tabs>
## Local, offline experience
@ -268,49 +181,6 @@ If your local machine can run an 8B parameter model, then we recommend running L
</Tab>
</Tabs>
</Tab>
<Tab title="JSON">
<Tabs>
<Tab title="Ollama">
```json title="config.json"
{
"models": [
{
"title": "Llama 3.1 8B",
"provider": "ollama",
"model": "llama3.1:8b"
}
]
}
```
</Tab>
<Tab title="LM Studio">
```json title="config.json"
{
"models": [
{
"title": "Llama 3.1 8B",
"provider": "lmstudio",
"model": "llama3.1-8b"
}
]
}
```
</Tab>
<Tab title="Msty">
```json title="config.json"
{
"models": [
{
"title": "Llama 3.1 8B",
"provider": "msty",
"model": "llama3.1-8b"
}
]
}
```
</Tab>
</Tabs>
</Tab>
</Tabs>
### DeepSeek Coder 2 16B
@ -357,50 +227,6 @@ If your local machine can run a 16B parameter model, then we recommend running D
</Tab>
</Tabs>
</Tab>
<Tab title="JSON">
<Tabs>
<Tab title="Ollama">
```json title="config.json"
{
"models": [
{
"title": "DeepSeek Coder 2 16B",
"provider": "ollama",
"model": "deepseek-coder-v2:16b",
"apiBase": "http://localhost:11434"
}
]
}
```
</Tab>
<Tab title="LM Studio">
```json title="config.json"
{
"models": [
{
"title": "DeepSeek Coder 2 16B",
"provider": "lmstudio",
"model": "deepseek-coder-v2:16b"
}
]
}
```
</Tab>
<Tab title="Msty">
```json title="config.json"
{
"models": [
{
"title": "DeepSeek Coder 2 16B",
"provider": "msty",
"model": "deepseek-coder-v2:16b"
}
]
}
```
</Tab>
</Tabs>
</Tab>
</Tabs>
## Other experiences

View file

@ -10,38 +10,15 @@ It's often useful to select a different model to respond to Edit prompts than fo
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.
<Tabs>
<Tab title="YAML">
Use model roles.
```yaml title="config.yaml"
models:
- name: Claude 3.5 Sonnet
provider: anthropic
model: claude-3-5-sonnet-latest
apiKey: <YOUR_ANTHROPIC_API_KEY>
roles:
- edit
```
</Tab>
<Tab title="JSON">
Set the `experimental.modelRoles.inlineEdit` property in `config.json`.
```json title="config.json"
{
"models": {
"name": "Claude 3.5 Sonnet",
"provider": "anthropic",
"model": "claude-3-5-sonnet-latest",
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
},
"experimental": {
"modelRoles": {
"inlineEdit": "Claude 3.5 Sonnet",
}
}
}
```
</Tab>
</Tabs>
```yaml title="config.yaml"
models:
- name: Claude 4 Sonnet
provider: anthropic
model: claude-3-5-sonnet-latest
apiKey: <YOUR_ANTHROPIC_API_KEY>
roles:
- edit
```
Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). Generally, our recommendations for Edit overlap with recommendations for Chat.

View file

@ -23,7 +23,10 @@ Voyage AI offers the best reranking model for code with their `rerank-2` model.
<Tabs>
<Tab title="Hub">
[Voyage Rerank 2 Block](https://hub.continue.dev/voyageai/rerank-2)
```yaml title="config.yaml"
models:
- uses: voyageai/rerank-2
```
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
@ -36,19 +39,6 @@ Voyage AI offers the best reranking model for code with their `rerank-2` model.
- rerank
```
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
"name": "voyage",
"params": {
"model": "rerank-2",
"apiKey": "<YOUR_VOYAGE_API_KEY>"
}
}
}
```
</Tab>
</Tabs>
### Cohere
@ -71,19 +61,6 @@ See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rer
- rerank
```
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
"name": "cohere",
"params": {
"model": "rerank-english-v3.0",
"apiKey": "<YOUR_COHERE_API_KEY>"
}
}
}
```
</Tab>
</Tabs>
### LLM
@ -105,21 +82,9 @@ If you only have access to a single LLM, then you can use it as a reranker. This
- rerank
```
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
"name": "llm",
"params": {
"modelTitle": "My Model Title"
}
}
}
```
</Tab>
</Tabs>
The `"modelTitle"` field must match one of the models in your "models" array in config.json.
### Text Embeddings Inference
@ -142,17 +107,4 @@ The `"modelTitle"` field must match one of the models in your "models" array in
- rerank
```
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
"name": "huggingface-tei",
"params": {
"apiBase": "http://localhost:8080",
"apiKey": "<YOUR_TEI_API_KEY>"
}
}
}
```
</Tab>
</Tabs>

View file

@ -1,17 +1,16 @@
---
title: "Migrating Config to YAML"
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 ."
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."
---
See also
- [Intro to YAML](https://yaml.org/)
- [JSON Continue Config Reference](/reference)
- [YAML Continue Config Reference](/reference)
## Create YAML file
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`.
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.
Give your configuration a `name` and a `version`:
@ -87,12 +86,12 @@ config.json
config.yaml
```
```yaml
models:
- name: GPT-4
provider: openai
model: gpt-4
apiKey: <YOUR_OPENAI_KEY>
apiKey: <YOUR_OPENAI_API_KEY>
defaultCompletionOptions:
temperature: 0.5
maxTokens: 2000
@ -101,7 +100,8 @@ models:
- edit
- name: My Voyage Reranker
provider: voyage
apiKey: <YOUR_VOYAGE_KEY>
model: rerank-2
apiKey: <YOUR_VOYAGE_API_KEY>
roles:
- rerank
- name: My Starcoder
@ -111,22 +111,25 @@ models:
- autocomplete
- name: My Ada Embedder
provider: openai
apiKey: <YOUR_ADA_API_KEY>
model: text-embedding-ada-002
apiKey: <YOUR_OPENAI_API_KEY>
roles:
- embed
embedOptions:
- maxChunkSize: 256
- maxBatchSize: 5
maxChunkSize: 256
maxBatchSize: 5
- name: Ollama Autodetect
provider: ollama
model: AUTODETECT
- name: My Open AI Compatible Model - Apply
roles:
- chat
- name: My Open AI Compatible Model
provider: openai
model: my-openai-compatible-model
apiBase: http://3.3.3.3/v1
requestOptions:
headers:
X-Auth-Token: <MY_API_KEY>
X-Auth-Token: <API_KEY>
roles:
- chat
- apply
@ -159,7 +162,7 @@ config.json
config.yaml
```
```yaml
context:
- provider: docs
- provider: codebase
@ -178,14 +181,16 @@ The `systemMessage` property has been replaced with a `rules` property that take
config.json
```json
{ "systemMessage": "Always give concise responses" }
{
"systemMessage": "Always give concise responses"
}
```
**After**
config.yaml
```
```yaml
rules:
- Always give concise responses
```
@ -214,7 +219,7 @@ config.json
config.yaml
```
```yaml
prompts:
- name: check
description: Check for mistakes in my code
@ -239,8 +244,14 @@ config.json
```json
{
"docs": [
{ "startUrl": "https://docs.nestjs.com/", "title": "nest.js" },
{ "startUrl": "https://mysite.com/docs/", "title": "My site" }
{
"startUrl": "https://docs.nestjs.com/",
"title": "nest.js"
},
{
"startUrl": "https://mysite.com/docs/",
"title": "My site"
}
]
}
```
@ -249,7 +260,7 @@ config.json
config.yaml
```
```yaml
docs:
- name: nest.js
startUrl: https://docs.nestjs.com/
@ -279,8 +290,14 @@ config.json
"transport": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"],
"env": { "KEY": "<VALUE>" }
"args": [
"mcp-server-sqlite",
"--db-path",
"/Users/NAME/test.db"
],
"env": {
"KEY": "<VALUE>"
}
}
}
]
@ -292,7 +309,7 @@ config.json
config.yaml
```
```yaml
mcpServers:
- name: My MCP Server
command: uvx
@ -308,13 +325,11 @@ mcpServers:
## Deprecated configuration options
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`.
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.
See the [JSON Config Reference](/reference) for more information on fully deprecated options.
The following top-level fields from config.json have been deprecated and don't have a config.yaml equivalent:
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:
- Slash commands (JSON `slashCommands`)
- Slash commands (`slashCommands`)
- top-level `requestOptions`
@ -332,7 +347,7 @@ The following top-level fields from `config.json` still work when using `config.
- `analytics`
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
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
- `customCommands`
- `experimental`