Changesets · Branches · Tags · Compare
| Changeset | aa7a108a7d8ccd5ff2a035e4bd991d12503734d4704667cc3e82233ef0b92177 |
|---|---|
| Author | Brian 'bdougie' Douglas <brian@opensauced.pizza> · 2025-07-02 10:37 -07:00 |
| Committer | Brian 'bdougie' Douglas <brian@opensauced.pizza> · 2025-07-02 10:37 -07:00 |
| Parents | c3f798ae5f86 |
7 files changed
added docs/docs/_category_.yml +7 −0
| @@ -0,0 +1,7 @@ | ||
| 1 | +label: 'Continue Docs' | |
| 2 | +className: red | |
| 3 | +link: | |
| 4 | + type: generated-index | |
| 5 | + title: Getting Started | |
| 6 | +customProps: | |
| 7 | + description: This description can be used in the swizzled DocCard | |
| No newline at the end of the file |
deleted docs/docs/advanced/reference.mdx +0 −556
| @@ -1,556 +0,0 @@ | ||
| 1 | ---- | |
| 2 | -title: Config YAML Reference | |
| 3 | -description: Reference for the Continue configuration YAML file | |
| 4 | -keywords: [config, yaml, configuration, customize, customization] | |
| 5 | ---- | |
| 6 | - | |
| 7 | -# config.yaml Reference | |
| 8 | - | |
| 9 | -## Introduction | |
| 10 | - | |
| 11 | -Continue hub assistants are defined using the `config.yaml` specification. Assistants can be loaded | |
| 12 | -from [the Hub](https://hub.continue.dev/explore/assistants) or locally | |
| 13 | - | |
| 14 | -- [Continue Hub](https://hub.continue.dev/explore/assistants) - YAML is stored on the hub and automatically synced to | |
| 15 | - the extension | |
| 16 | -- Locally | |
| 17 | - - in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`) within `.continue/assistants`. | |
| 18 | - The name of the file will be used as the display name of the assistant, e.g. `My Assistant.yaml` | |
| 19 | - - in your workspace in a `/.continue/assistants` folder, with the same naming convention | |
| 20 | - | |
| 21 | -:::info | |
| 22 | -Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](./yaml-migration)**. | |
| 23 | -::: | |
| 24 | - | |
| 25 | -An assistant is made up of: | |
| 26 | - | |
| 27 | -1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the assistant | |
| 28 | -2. **Block lists**, which are composable arrays of coding assistant building blocks available to the assistant, such as | |
| 29 | - models, docs, and context providers. | |
| 30 | - | |
| 31 | -A block is a single standalone building block of a coding assistants, e.g., one model or one documentation source. In | |
| 32 | -`config.yaml` syntax, a block consists of the same top-level properties as assistants (`name`, `version`, and `schema`), | |
| 33 | -but only has **ONE** item under whichever block type it is. | |
| 34 | - | |
| 35 | -Examples of blocks and assistants can be found on the [Continue hub](https://hub.continue.dev/explore/assistants). | |
| 36 | - | |
| 37 | -Assistants can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing | |
| 38 | -hub blocks. | |
| 39 | - | |
| 40 | -### Using Blocks | |
| 41 | - | |
| 42 | -Hub blocks and assistants are identified with a slug in the format `owner-slug/block-or-assistant-slug`, where an owner | |
| 43 | -can be a user or organization (For example, if you want to use | |
| 44 | -the [OpenAI 4o Model block](https://hub.continue.dev/openai/gpt-4o), your slug would be `openai/gpt-4o`). These blocks | |
| 45 | -are pulled from [https://hub.continue.dev](https://hub.continue.dev). | |
| 46 | - | |
| 47 | -Blocks can be imported into an assistant by adding a `uses` clause under the block type. This can be alongside other | |
| 48 | -`uses` clauses or explicit blocks of that type. | |
| 49 | - | |
| 50 | -For example, the following assistant imports an Anthropic model and defines an Ollama DeepSeek one. | |
| 51 | - | |
| 52 | -```yaml title="Assistant models section" | |
| 53 | -models: | |
| 54 | - - uses: anthropic/claude-3.5-sonnet # an imported model block | |
| 55 | - - model: deepseek-reasoner # an explicit model block | |
| 56 | - provider: ollama | |
| 57 | -``` | |
| 58 | - | |
| 59 | -### Local Blocks | |
| 60 | - | |
| 61 | -It is also possible to define blocks locally in a `.continue` folder. This folder can be located at either the root of | |
| 62 | -your workspace (these will automatically be applied to all assistants when you are in that workspace) or in your home | |
| 63 | -directory at `~/.continue` (these will automatically be applied globally). | |
| 64 | - | |
| 65 | -Place your YAML files in the following folders: | |
| 66 | - | |
| 67 | -Assistants: | |
| 68 | - | |
| 69 | -- `.continue/assistants` - for assistants | |
| 70 | - | |
| 71 | -Blocks: | |
| 72 | - | |
| 73 | -- `.continue/rules` - for rules | |
| 74 | -- `.continue/models` - for models | |
| 75 | -- `.continue/prompts` - for prompts | |
| 76 | -- `.continue/context` - for context providers | |
| 77 | -- `.continue/docs` - for docs | |
| 78 | -- `.continue/data` - for data | |
| 79 | -- `.continue/mcpServers` - for MCP Servers | |
| 80 | - | |
| 81 | -You can find many examples of each of these block types on | |
| 82 | -the [Continue Explore Page](https://hub.continue.dev/explore/models) | |
| 83 | - | |
| 84 | -:::info | |
| 85 | -Local blocks utilizing mustache notation for secrets (`${{ secrets.SECRET_NAME }}`) can read secret values: | |
| 86 | - | |
| 87 | -- globally, from a `.env` located in the global `.continue` folder (`~/.continue/.env`) | |
| 88 | -- per-workspace, from a `.env` file located at the root of the current workspace. | |
| 89 | - ::: | |
| 90 | - | |
| 91 | -### Inputs | |
| 92 | - | |
| 93 | -Blocks can be passed user inputs, including hub secrets and raw text values. To create a block that has an input, use | |
| 94 | -mustache templating as follows: | |
| 95 | - | |
| 96 | -```yaml title="Block config.yaml" | |
| 97 | -name: myprofile/custom-model | |
| 98 | -models: | |
| 99 | - - name: My Favorite Model | |
| 100 | - provider: anthropic | |
| 101 | - apiKey: ${{ inputs.ANTHROPIC_API_KEY }} | |
| 102 | - defaultCompletionOptions: | |
| 103 | - temperature: ${{ inputs.TEMP }} | |
| 104 | -``` | |
| 105 | - | |
| 106 | -Which can then be imported like | |
| 107 | - | |
| 108 | -```yaml title="Assistant config.yaml" | |
| 109 | -name: myprofile/custom-assistant | |
| 110 | -models: | |
| 111 | - - uses: myprofile/custom-model | |
| 112 | - with: | |
| 113 | - ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }} | |
| 114 | - TEMP: 0.9 | |
| 115 | -``` | |
| 116 | - | |
| 117 | -Note that hub secrets can be passed as inputs, using a similar mustache format: `secrets.SECRET_NAME`. | |
| 118 | - | |
| 119 | -### Overrides | |
| 120 | - | |
| 121 | -Block properties can be also be directly overriden using `override`. For example: | |
| 122 | - | |
| 123 | -```yaml title="Assistant config.yaml" | |
| 124 | -name: myprofile/custom-assistant | |
| 125 | -models: | |
| 126 | - - uses: myprofile/custom-model | |
| 127 | - with: | |
| 128 | - ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }} | |
| 129 | - TEMP: 0.9 | |
| 130 | - override: | |
| 131 | - roles: | |
| 132 | - - chat | |
| 133 | -``` | |
| 134 | - | |
| 135 | -## Properties | |
| 136 | - | |
| 137 | -Below are details for each property that can be set in `config.yaml`. | |
| 138 | - | |
| 139 | -**All properties at all levels are optional unless explicitly marked as required.** | |
| 140 | - | |
| 141 | -The top-level properties in the `config.yaml` configuration file are: | |
| 142 | - | |
| 143 | -- [`name`](#name) (**required**) | |
| 144 | -- [`version`](#version) (**required**) | |
| 145 | -- [`schema`](#schema) (**required**) | |
| 146 | -- [`models`](#models) | |
| 147 | -- [`context`](#context) | |
| 148 | -- [`rules`](#rules) | |
| 149 | -- [`prompts`](#prompts) | |
| 150 | -- [`docs`](#docs) | |
| 151 | -- [`mcpServers`](#mcpservers) | |
| 152 | -- [`data`](#data) | |
| 153 | - | |
| 154 | ---- | |
| 155 | - | |
| 156 | -### `name` | |
| 157 | - | |
| 158 | -The `name` property specifies the name of your project or configuration. | |
| 159 | - | |
| 160 | -```yaml title="config.yaml" | |
| 161 | -name: MyProject | |
| 162 | -``` | |
| 163 | - | |
| 164 | ---- | |
| 165 | - | |
| 166 | -### `version` | |
| 167 | - | |
| 168 | -The `version` property specifies the version of your project or configuration. | |
| 169 | - | |
| 170 | -### `schema` | |
| 171 | - | |
| 172 | -The `schema` property specifies the schema version used for the `config.yaml`, e.g. `v1` | |
| 173 | - | |
| 174 | ---- | |
| 175 | - | |
| 176 | -### `models` | |
| 177 | - | |
| 178 | -The `models` section defines the language models used in your configuration. Models are used for functionalities such as | |
| 179 | -chat, editing, and summarizing. | |
| 180 | - | |
| 181 | -**Properties:** | |
| 182 | - | |
| 183 | -- `name` (**required**): A unique name to identify the model within your configuration. | |
| 184 | -- `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`). | |
| 185 | -- `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`). | |
| 186 | -- `apiBase`: Can be used to override the default API base that is specified per model | |
| 187 | -- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, | |
| 188 | - `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is | |
| 189 | - not currently used. | |
| 190 | -- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on | |
| 191 | - provider and model. Supported capabilities include `tool_use` and `image_input`. | |
| 192 | -- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. | |
| 193 | -- `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are | |
| 194 | - `chat`, [`edit`](./model-roles/edit#prompt-templating), [ | |
| 195 | - `apply`](./model-roles/apply#prompt-templating) and [ | |
| 196 | - `autocomplete`](./model-roles/autocomplete#prompt-templating). The `chat` property must be a | |
| 197 | - valid template name, such as `llama3` or `anthropic`. | |
| 198 | -- `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode: | |
| 199 | - - `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode. | |
| 200 | - <!-- - `baseAgentSystemMessage`: Can be used to override the default system prompt for **Agent** mode. <!-- This setting is experimental and hence is undocumented. --> | |
| 201 | -- `embedOptions`: If the model includes role `embed`, these settings apply for embeddings: | |
| 202 | - - `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens. | |
| 203 | - - `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk. | |
| 204 | -- `defaultCompletionOptions`: Default completion options for model settings. | |
| 205 | - - `contextLength`: Maximum context length of the model, typically in tokens. | |
| 206 | - - `maxTokens`: Maximum number of tokens to generate in a completion. | |
| 207 | - - `temperature`: Controls the randomness of the completion. Values range from `0.0` (deterministic) to `1.0` (random). | |
| 208 | - - `topP`: The cumulative probability for nucleus sampling. | |
| 209 | - - `topK`: Maximum number of tokens considered at each step. | |
| 210 | - - `stop`: An array of stop tokens that will terminate the completion. | |
| 211 | - - `reasoning`: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ models. | |
| 212 | - - `reasoningBudgetTokens`: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models. | |
| 213 | -- `requestOptions`: HTTP request options specific to the model. | |
| 214 | - - `timeout`: Timeout for each request to the language model. | |
| 215 | - - `verifySsl`: Whether to verify SSL certificates for requests. | |
| 216 | - - `caBundlePath`: Path to a custom CA bundle for HTTP requests. | |
| 217 | - - `proxy`: Proxy URL for HTTP requests. | |
| 218 | - - `headers`: Custom headers for HTTP requests. | |
| 219 | - - `extraBodyProperties`: Additional properties to merge with the HTTP request body. | |
| 220 | - - `noProxy`: List of hostnames that should bypass the specified proxy. | |
| 221 | - - `clientCertificate`: Client certificate for HTTP requests. | |
| 222 | - - `cert`: Path to the client certificate file. | |
| 223 | - - `key`: Path to the client certificate key file. | |
| 224 | - - `passphrase`: Optional passphrase for the client certificate key file. | |
| 225 | - | |
| 226 | -#### Example | |
| 227 | - | |
| 228 | -```yaml title="config.yaml" | |
| 229 | -models: | |
| 230 | - - name: GPT-4o | |
| 231 | - provider: openai | |
| 232 | - model: gpt-4o | |
| 233 | - roles: | |
| 234 | - - chat | |
| 235 | - - edit | |
| 236 | - - apply | |
| 237 | - defaultCompletionOptions: | |
| 238 | - temperature: 0.7 | |
| 239 | - maxTokens: 1500 | |
| 240 | - | |
| 241 | - - name: Codestral | |
| 242 | - provider: mistral | |
| 243 | - model: codestral-latest | |
| 244 | - roles: | |
| 245 | - - autocomplete | |
| 246 | - | |
| 247 | - - name: My Model - OpenAI-Compatible | |
| 248 | - provider: openai | |
| 249 | - apiBase: http://my-endpoint/v1 | |
| 250 | - model: my-custom-model | |
| 251 | - capabilities: | |
| 252 | - - tool_use | |
| 253 | - - image_input | |
| 254 | - roles: | |
| 255 | - - chat | |
| 256 | - - edit | |
| 257 | -``` | |
| 258 | - | |
| 259 | ---- | |
| 260 | - | |
| 261 | -### `context` | |
| 262 | - | |
| 263 | -The `context` section defines context providers, which supply additional information or context to the language models. | |
| 264 | -Each context provider can be configured with specific parameters. | |
| 265 | - | |
| 266 | -More information about usage/params for each context provider can be found [here](/advanced/context-integration/custom-providers) | |
| 267 | - | |
| 268 | -**Properties:** | |
| 269 | - | |
| 270 | -- `provider` (**required**): The identifier or name of the context provider (e.g., `code`, `docs`, `web`) | |
| 271 | -- `name`: Optional name for the provider | |
| 272 | -- `params`: Optional parameters to configure the context provider's behavior. | |
| 273 | - | |
| 274 | -**Example:** | |
| 275 | - | |
| 276 | -```yaml title="config.yaml" | |
| 277 | -context: | |
| 278 | - - provider: file | |
| 279 | - - provider: code | |
| 280 | - - provider: codebase | |
| 281 | - params: | |
| 282 | - nFinal: 10 | |
| 283 | - - provider: docs | |
| 284 | - - provider: diff | |
| 285 | - - provider: http | |
| 286 | - name: Context Server 1 | |
| 287 | - params: | |
| 288 | - url: "https://api.example.com/server1" | |
| 289 | - - provider: folder | |
| 290 | - - provider: terminal | |
| 291 | -``` | |
| 292 | - | |
| 293 | ---- | |
| 294 | - | |
| 295 | -### `rules` | |
| 296 | - | |
| 297 | -List of rules that the LLM should follow. These are concatenated into the system message for | |
| 298 | -all [Chat](../features/chat/quick-start), [Edit](../features/edit/quick-start), and [Agent](../features/agent/quick-start) requests. | |
| 299 | -See the [rules deep dive](../customization/rules) for details. | |
| 300 | - | |
| 301 | -Explicit rules can either be simple text or an object with the following properties: | |
| 302 | - | |
| 303 | -- `name` (**required**): A display name/title for the rule | |
| 304 | -- `rule` (**required**): The text content of the rule | |
| 305 | -- `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This | |
| 306 | - can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., | |
| 307 | - `["src/**/*.ts", "tests/**/*.ts"]`). | |
| 308 | - | |
| 309 | -```yaml title="config.yaml" | |
| 310 | -rules: | |
| 311 | - - Always annotate Python functions with their parameter and return types | |
| 312 | - | |
| 313 | - - name: TypeScript best practices | |
| 314 | - rule: Always use TypeScript interfaces to define shape of objects. Use type aliases sparingly. | |
| 315 | - globs: "**/*.{ts,tsx}" | |
| 316 | - | |
| 317 | - - name: TypeScript test patterns | |
| 318 | - rule: In TypeScript tests, use Jest's describe/it pattern and follow best practices for mocking. | |
| 319 | - globs: | |
| 320 | - - "src/**/*.test.ts" | |
| 321 | - - "tests/**/*.ts" | |
| 322 | - | |
| 323 | - - uses: myprofile/my-mood-setter | |
| 324 | - with: | |
| 325 | - TONE: concise | |
| 326 | -``` | |
| 327 | - | |
| 328 | ---- | |
| 329 | - | |
| 330 | -### `prompts` | |
| 331 | - | |
| 332 | -A list of custom prompts that can be invoked from the chat window. Each prompt has a name, description, and the actual | |
| 333 | -prompt text. | |
| 334 | - | |
| 335 | -```yaml title="config.yaml" | |
| 336 | -prompts: | |
| 337 | - - name: check | |
| 338 | - description: Check for mistakes in my code | |
| 339 | - prompt: | | |
| 340 | - Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant: | |
| 341 | - - Syntax errors | |
| 342 | - - Logic errors | |
| 343 | - - Security vulnerabilities | |
| 344 | -``` | |
| 345 | - | |
| 346 | ---- | |
| 347 | - | |
| 348 | -### `docs` | |
| 349 | - | |
| 350 | -List of documentation sites to index. | |
| 351 | - | |
| 352 | -**Properties:** | |
| 353 | - | |
| 354 | -- `name` (**required**): Name of the documentation site, displayed in dropdowns, etc. | |
| 355 | -- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs | |
| 356 | - | |
| 357 | -<!-- - `rootUrl`: Crawler will only index docs within this domain - pages that contain this URL --> | |
| 358 | - | |
| 359 | -- `maxDepth`: Maximum link depth for crawling. Default `4` | |
| 360 | -- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`). | |
| 361 | -- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler. | |
| 362 | - | |
| 363 | -Example | |
| 364 | - | |
| 365 | -```yaml title="config.yaml" | |
| 366 | -docs: | |
| 367 | - - name: Continue | |
| 368 | - startUrl: https://docs.continue.dev/intro | |
| 369 | - favicon: https://docs.continue.dev/favicon.ico | |
| 370 | -``` | |
| 371 | - | |
| 372 | ---- | |
| 373 | - | |
| 374 | -### `mcpServers` | |
| 375 | - | |
| 376 | -<!-- TODO is this correct? --> | |
| 377 | - | |
| 378 | -The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify | |
| 379 | -prompts, context, and tool use. Continue supports any MCP server with the MCP context provider. | |
| 380 | - | |
| 381 | -**Properties:** | |
| 382 | - | |
| 383 | -- `name` (**required**): The name of the MCP server. | |
| 384 | -- `command` (**required**): The command used to start the server. | |
| 385 | -- `args`: An optional array of arguments for the command. | |
| 386 | -- `env`: An optional map of environment variables for the server process. | |
| 387 | -- `connectionTimeout`: An optional connection timeout number to the server in milliseconds. | |
| 388 | - | |
| 389 | -**Example:** | |
| 390 | - | |
| 391 | -```yaml title="config.yaml" | |
| 392 | -mcpServers: | |
| 393 | - - name: My MCP Server | |
| 394 | - command: uvx | |
| 395 | - args: | |
| 396 | - - mcp-server-sqlite | |
| 397 | - - --db-path | |
| 398 | - - /Users/NAME/test.db | |
| 399 | -``` | |
| 400 | - | |
| 401 | -### `data` | |
| 402 | - | |
| 403 | -Destinations to which [development data](./deep-dives/development-data) will be sent. | |
| 404 | - | |
| 405 | -**Properties:** | |
| 406 | - | |
| 407 | -- `name` (**required**): The display name of the data destination | |
| 408 | -- `destination` (**required**): The destination/endpoint that will receive the data. Can be: | |
| 409 | - - an HTTP endpoint that will receive a POST request with a JSON blob | |
| 410 | - - a file URL to a directory in which events will be dumpted to `.jsonl` files | |
| 411 | -- `schema` (**required**): the schema version of the JSON blobs to be sent. Options include `0.1.0` and `0.2.0` | |
| 412 | -- `events`: an array of event names to include. Defaults to all events if not specified. | |
| 413 | -- `level`: a pre-defined filter for event fields. Options include `all` and `noCode`; the latter excludes data like file | |
| 414 | - contents, prompts, and completions. Defaults to `all` | |
| 415 | -- `apiKey`: api key to be sent with request (Bearer header) | |
| 416 | -- `requestOptions`: Options for event POST requests. Same format as [model requestOptions](#models). | |
| 417 | - | |
| 418 | - **Example:** | |
| 419 | - | |
| 420 | -```yaml title="config.yaml" | |
| 421 | -data: | |
| 422 | - - name: Local Data Bank | |
| 423 | - destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data | |
| 424 | - schema: 0.2.0 | |
| 425 | - level: all | |
| 426 | - - name: My Private Company | |
| 427 | - destination: https://mycompany.com/ingest | |
| 428 | - schema: 0.2.0 | |
| 429 | - level: noCode | |
| 430 | - events: | |
| 431 | - - autocomplete | |
| 432 | - - chatInteraction | |
| 433 | -``` | |
| 434 | - | |
| 435 | ---- | |
| 436 | - | |
| 437 | -## Complete YAML Config Example | |
| 438 | - | |
| 439 | -Putting it all together, here's a complete example of a `config.yaml` configuration file: | |
| 440 | - | |
| 441 | -```yaml title="config.yaml" | |
| 442 | -name: MyProject | |
| 443 | -version: 0.0.1 | |
| 444 | -schema: v1 | |
| 445 | - | |
| 446 | -models: | |
| 447 | - - uses: anthropic/claude-3.5-sonnet | |
| 448 | - with: | |
| 449 | - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| 450 | - override: | |
| 451 | - defaultCompletionOptions: | |
| 452 | - temperature: 0.8 | |
| 453 | - - name: GPT-4 | |
| 454 | - provider: openai | |
| 455 | - model: gpt-4 | |
| 456 | - roles: | |
| 457 | - - chat | |
| 458 | - - edit | |
| 459 | - defaultCompletionOptions: | |
| 460 | - temperature: 0.5 | |
| 461 | - maxTokens: 2000 | |
| 462 | - requestOptions: | |
| 463 | - headers: | |
| 464 | - Authorization: Bearer YOUR_OPENAI_API_KEY | |
| 465 | - | |
| 466 | - - name: Ollama Starcoder | |
| 467 | - provider: ollama | |
| 468 | - model: starcoder | |
| 469 | - roles: | |
| 470 | - - autocomplete | |
| 471 | - defaultCompletionOptions: | |
| 472 | - temperature: 0.3 | |
| 473 | - stop: | |
| 474 | - - "\n" | |
| 475 | - | |
| 476 | -rules: | |
| 477 | - - Give concise responses | |
| 478 | - - Always assume TypeScript rather than JavaScript | |
| 479 | - | |
| 480 | -prompts: | |
| 481 | - - name: test | |
| 482 | - description: Unit test a function | |
| 483 | - prompt: | | |
| 484 | - Please write a complete suite of unit tests for this function. You should use the Jest testing framework. The tests should cover all possible edge cases and should be as thorough as possible. You should also include a description of each test case. | |
| 485 | - - uses: myprofile/my-favorite-prompt | |
| 486 | - | |
| 487 | -context: | |
| 488 | - - provider: diff | |
| 489 | - - provider: file | |
| 490 | - - provider: codebase | |
| 491 | - - provider: code | |
| 492 | - - provider: docs | |
| 493 | - params: | |
| 494 | - startUrl: https://docs.example.com/introduction | |
| 495 | - rootUrl: https://docs.example.com | |
| 496 | - maxDepth: 3 | |
| 497 | - | |
| 498 | -mcpServers: | |
| 499 | - - name: DevServer | |
| 500 | - command: npm | |
| 501 | - args: | |
| 502 | - - run | |
| 503 | - - dev | |
| 504 | - env: | |
| 505 | - PORT: "3000" | |
| 506 | - | |
| 507 | -data: | |
| 508 | - - name: My Private Company | |
| 509 | - destination: https://mycompany.com/ingest | |
| 510 | - schema: 0.2.0 | |
| 511 | - level: noCode | |
| 512 | - events: | |
| 513 | - - autocomplete | |
| 514 | - - chatInteraction | |
| 515 | -``` | |
| 516 | - | |
| 517 | -## Using YAML anchors to avoid config duplication | |
| 518 | - | |
| 519 | -You can also use node anchors to avoid duplication of properties. To do so, | |
| 520 | -adding the YAML version header `%YAML 1.1` is needed, here's an example of | |
| 521 | -a `config.yaml` configuration file using anchors: | |
| 522 | - | |
| 523 | -```yaml title="config.yaml" | |
| 524 | -%YAML 1.1 | |
| 525 | ---- | |
| 526 | -name: MyProject | |
| 527 | -version: 0.0.1 | |
| 528 | -schema: v1 | |
| 529 | - | |
| 530 | -model_defaults: &model_defaults | |
| 531 | - provider: openai | |
| 532 | - apiKey: my-api-key | |
| 533 | - apiBase: https://api.example.com/llm | |
| 534 | - | |
| 535 | -models: | |
| 536 | - - name: mistral | |
| 537 | - <<: *model_defaults | |
| 538 | - model: mistral-7b-instruct | |
| 539 | - roles: | |
| 540 | - - chat | |
| 541 | - - edit | |
| 542 | - | |
| 543 | - - name: qwen2.5-coder-7b-instruct | |
| 544 | - <<: *model_defaults | |
| 545 | - model: qwen2.5-coder-7b-instruct | |
| 546 | - roles: | |
| 547 | - - chat | |
| 548 | - - edit | |
| 549 | - | |
| 550 | - - name: qwen2.5-coder-7b | |
| 551 | - <<: *model_defaults | |
| 552 | - model: qwen2.5-coder-7b | |
| 553 | - useLegacyCompletionsEndpoint: false | |
| 554 | - roles: | |
| 555 | - - autocomplete | |
| 556 | -``` |
deleted docs/docs/advanced/troubleshooting.mdx +0 −172
| @@ -1,172 +0,0 @@ | ||
| 1 | ---- | |
| 2 | -title: Troubleshooting | |
| 3 | -description: Troubleshooting while waiting for help during beta / alpha testing | |
| 4 | -keywords: [reload, delete, manually, logs, server, console] | |
| 5 | ---- | |
| 6 | - | |
| 7 | -import TabItem from "@theme/TabItem"; | |
| 8 | -import Tabs from "@theme/Tabs"; | |
| 9 | - | |
| 10 | -1. [Check the logs](#check-the-logs) | |
| 11 | -2. [Try the latest pre-release](#download-the-latest-pre-release) | |
| 12 | -3. [Download an older version](#download-an-older-version) | |
| 13 | -4. [Resolve keyboard shortcut issues](#keyboard-shortcuts-not-resolving) | |
| 14 | -5. [Check FAQs for common issues](#faqs) | |
| 15 | - | |
| 16 | -## Check the logs | |
| 17 | - | |
| 18 | -To solve many problems, the first step is reading the logs to find the relevant error message. To do this, follow these steps: | |
| 19 | - | |
| 20 | -### VS Code | |
| 21 | - | |
| 22 | -#### Console logs | |
| 23 | - | |
| 24 | -:::info | |
| 25 | -In order to view debug logs, which contain extra information, click the dropdown at the top that says "Default levels" and select "Verbose". | |
| 26 | -::: | |
| 27 | - | |
| 28 | -1. <kbd>cmd</kbd> + <kbd>shift</kbd> + <kbd>P</kbd> for MacOS or <kbd>ctrl</kbd> | |
| 29 | - + <kbd>shift</kbd> + <kbd>P</kbd> for Windows | |
| 30 | -2. Search for and then select "Developer: Toggle Developer Tools" | |
| 31 | -3. This will open the [Chrome DevTools window](https://developer.chrome.com/docs/devtools/) | |
| 32 | -4. Select the `Console` tab | |
| 33 | -5. Read the console logs | |
| 34 | - | |
| 35 | -#### Prompt Logs (Continue Console) | |
| 36 | - | |
| 37 | -To view prompt logs/analytics, you can enable the Continue Console. | |
| 38 | - | |
| 39 | -1. Open VS Code settings (<kbd>cmd/ctrl</kbd> + <kbd>,</kbd>) | |
| 40 | -2. Search for the setting "Continue: Enable Console" and enable it | |
| 41 | -3. Reload the window | |
| 42 | -4. Open the Continue Console by using the command palette (<kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>P</kbd>) and searching for "Continue: Focus on Continue Console View" | |
| 43 | - | |
| 44 | - | |
| 45 | - | |
| 46 | -### JetBrains | |
| 47 | - | |
| 48 | -Open `~/.continue/logs/core.log` to view the logs for the Continue plugin. The most recent logs are found at the bottom of the file. | |
| 49 | - | |
| 50 | -Some JetBrains-related logs may also be found by clicking "Help" > "Show Log in Explorer/Finder". | |
| 51 | - | |
| 52 | -## Download the latest pre-release | |
| 53 | - | |
| 54 | -### VS Code | |
| 55 | - | |
| 56 | -We are constantly making fixes and improvements to Continue, but the latest changes remain in a "pre-release" version for roughly a week so that we can test their stability. If you are experiencing issues, you can try the pre-release by going to the Continue extension page in VS Code and selecting "Switch to Pre-Release" as shown below. | |
| 57 | - | |
| 58 | - | |
| 59 | - | |
| 60 | -### JetBrains | |
| 61 | - | |
| 62 | -On JetBrains, the "pre-release" happens through their Early Access Program (EAP) channel. To download the latest EAP version, enable the EAP channel: | |
| 63 | - | |
| 64 | -1. Open JetBrains settings (<kbd>cmd/ctrl</kbd> + <kbd>,</kbd>) and go to "Plugins" | |
| 65 | -2. Click the gear icon at the top | |
| 66 | -3. Select "Manage Plugin Repositories..." | |
| 67 | -4. Add "[https://plugins.jetbrains.com/plugins/eap/list](https://plugins.jetbrains.com/plugins/eap/list)" to the list | |
| 68 | -5. You'll now always be able to download the latest EAP version from the marketplace | |
| 69 | - | |
| 70 | -## Download an Older Version | |
| 71 | - | |
| 72 | -If you've tried everything, reported an error, know that a previous version was working for you, and are waiting to hear back, you can try downloading an older version of the extension. | |
| 73 | - | |
| 74 | -For VS Code, All versions are hosted on the Open VSX Registry [here](https://open-vsx.org/extension/Continue/continue). Once you've downloaded the extension, which will be a .vsix file, you can install it manually by following the instructions [here](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix). | |
| 75 | - | |
| 76 | -You can find older versions of the JetBrains extension on their [marketplace](https://plugins.jetbrains.com/plugin/22707-continue), which will walk you through installing from disk. | |
| 77 | - | |
| 78 | -## Keyboard shortcuts not resolving | |
| 79 | - | |
| 80 | -If your keyboard shortcuts are not resolving, you may have other commands that are taking precedence over the Continue shortcuts. You can see if this is the case, and change your shortcut mappings, in the configuration of your IDE. | |
| 81 | - | |
| 82 | -- [VSCode keyboard shortcuts docs](https://code.visualstudio.com/docs/getstarted/keybindings) | |
| 83 | -- [IntelliJ keyboard shortcut docs](https://www.jetbrains.com/help/idea/configuring-keyboard-and-mouse-shortcuts.html) | |
| 84 | - | |
| 85 | -## FAQs | |
| 86 | - | |
| 87 | -### Networking Issues | |
| 88 | - | |
| 89 | -#### Configure Certificates | |
| 90 | - | |
| 91 | -If you're seeing a `fetch failed` error and your network requires custom certificates, you will need to configure them in your config file. In each of the objects in the `"models"` array, add `requestOptions.caBundlePath` like this: | |
| 92 | - | |
| 93 | -<Tabs groupId="config-example"> | |
| 94 | - <TabItem value="yaml" label="YAML"> | |
| 95 | - ```yaml title="config.yaml" | |
| 96 | - models: | |
| 97 | - - name: My Model | |
| 98 | - ... | |
| 99 | - requestOptions: | |
| 100 | - caBundlePath: /path/to/cert.pem | |
| 101 | - ``` | |
| 102 | - </TabItem> | |
| 103 | - <TabItem value="json" label="JSON"> | |
| 104 | - ```json title="config.json" | |
| 105 | - { | |
| 106 | - "models": [ | |
| 107 | - { | |
| 108 | - "title": "My Model", | |
| 109 | - ... | |
| 110 | - "requestOptions": { | |
| 111 | - "caBundlePath": "/path/to/cert.pem" | |
| 112 | - } | |
| 113 | - } | |
| 114 | - ], | |
| 115 | - } | |
| 116 | - ``` | |
| 117 | - </TabItem> | |
| 118 | -</Tabs> | |
| 119 | - | |
| 120 | -You may also set `requestOptions.caBundlePath` to an array of paths to multiple certificates. | |
| 121 | - | |
| 122 | -**_Windows VS Code Users_**: Installing the [win-ca](https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca) extension should also correct this issue. | |
| 123 | - | |
| 124 | -#### VS Code Proxy Settings | |
| 125 | - | |
| 126 | -If you are using VS Code and require requests to be made through a proxy, you are likely already set up through VS Code's [Proxy Server Support](https://code.visualstudio.com/docs/setup/network#_proxy-server-support). To double-check that this is enabled, use <kbd>cmd/ctrl</kbd> + <kbd>,</kbd> to open settings and search for "Proxy Support". Unless it is set to "off", then VS Code is responsible for making the request to the proxy. | |
| 127 | - | |
| 128 | -#### code-server | |
| 129 | - | |
| 130 | -Continue can be used in [code-server](https://coder.com/), but if you are running across an error in the logs that includes "This is likely because the editor is not running in a secure context", please see [their documentation on securely exposing code-server](https://coder.com/docs/code-server/latest/guide#expose-code-server). | |
| 131 | - | |
| 132 | -### I installed Continue, but don't see the sidebar window | |
| 133 | - | |
| 134 | -By default the Continue window is on the left side of VS Code, but it can be dragged to right side as well, which we recommend in our tutorial. In the situation where you have previously installed Continue and moved it to the right side, it may still be there. You can reveal Continue either by using cmd/ctrl+L or by clicking the button in the top right of VS Code to open the right sidebar. | |
| 135 | - | |
| 136 | -### I'm getting a 404 error from OpenAI | |
| 137 | - | |
| 138 | -If you have entered a valid API key and model, but are still getting a 404 error from OpenAI, this may be because you need to add credits to your billing account. You can do so from the [billing console](https://platform.openai.com/settings/organization/billing/overview). If you just want to check that this is in fact the cause of the error, you can try adding $1 to your account and checking whether the error persists. | |
| 139 | - | |
| 140 | -### I'm getting a 404 error from OpenRouter | |
| 141 | - | |
| 142 | -If you have entered a valid API key and model, but are still getting a 404 error from OpenRouter, this may be because models that do not support function calling will return an error to Continue when a request is sent. | |
| 143 | -Example error: | |
| 144 | -`HTTP 404 Not Found from https://openrouter.ai/api/v1/chat/completions` | |
| 145 | - | |
| 146 | -### Indexing issues | |
| 147 | - | |
| 148 | -If you are having persistent errors with indexing, our recommendation is to rebuild your index from scratch. Note that for large codebases this may take some time. | |
| 149 | - | |
| 150 | -This can be accomplished using the following command: `Continue: Rebuild codebase index`. | |
| 151 | - | |
| 152 | -### Android Studio - "Nothing to show" in Chat | |
| 153 | - | |
| 154 | -This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/596#issuecomment-1789327178) for details. | |
| 155 | - | |
| 156 | -### I received a "Codebase indexing disabled - Your Linux system lacks required CPU features (AVX2, FMA)" notification | |
| 157 | - | |
| 158 | -We use LanceDB as our vector database for codebase search features. On x64 Linux systems, LanceDB requires specific CPU features (FMA and AVX2) which may not be available on older processors. | |
| 159 | - | |
| 160 | -Most Continue features will work normally, including autocomplete and chat. However, commands that rely on codebase indexing, such as `@codebase`, `@files`, and `@folder`, will be disabled. | |
| 161 | - | |
| 162 | -For more details about this requirement, see the [LanceDB issue #2195](https://github.com/lancedb/lance/issues/2195). | |
| 163 | - | |
| 164 | -### How do I reset the state of the extension? | |
| 165 | - | |
| 166 | -Continue stores it's data in the `~/.continue` directory (%USERPROFILE%\.continue` on Windows). | |
| 167 | - | |
| 168 | -If you'd like to perform a clean reset of the extension, including removing all configuration files, indices, etc, you can remove this directory, uninstall, and then reinstall. | |
| 169 | - | |
| 170 | -## Still having trouble? | |
| 171 | - | |
| 172 | -You can also join our Discord community [here](https://discord.gg/vapESyrFmJ) for additional support and discussions. Alternatively, you can create a GitHub issue [here](https://github.com/continuedev/continue/issues/new?assignees=&labels=bug&projects=&template=bug-report-%F0%9F%90%9B.md&title=), providing details of your problem, and we'll be able to help you out more quickly. |
added docs/docs/reference.mdx +556 −0
| @@ -0,0 +1,556 @@ | ||
| 1 | +--- | |
| 2 | +title: "config.yaml Reference" | |
| 3 | +description: Reference for the Continue configuration YAML file | |
| 4 | +keywords: [config, yaml, configuration, customize, customization] | |
| 5 | +--- | |
| 6 | + | |
| 7 | +# config.yaml Reference | |
| 8 | + | |
| 9 | +## Introduction | |
| 10 | + | |
| 11 | +Continue hub assistants are defined using the `config.yaml` specification. Assistants can be loaded | |
| 12 | +from [the Hub](https://hub.continue.dev/explore/assistants) or locally | |
| 13 | + | |
| 14 | +- [Continue Hub](https://hub.continue.dev/explore/assistants) - YAML is stored on the hub and automatically synced to | |
| 15 | + the extension | |
| 16 | +- Locally | |
| 17 | + - in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`) within `.continue/assistants`. | |
| 18 | + The name of the file will be used as the display name of the assistant, e.g. `My Assistant.yaml` | |
| 19 | + - in your workspace in a `/.continue/assistants` folder, with the same naming convention | |
| 20 | + | |
| 21 | +:::info | |
| 22 | +Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](./yaml-migration)**. | |
| 23 | +::: | |
| 24 | + | |
| 25 | +An assistant is made up of: | |
| 26 | + | |
| 27 | +1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the assistant | |
| 28 | +2. **Block lists**, which are composable arrays of coding assistant building blocks available to the assistant, such as | |
| 29 | + models, docs, and context providers. | |
| 30 | + | |
| 31 | +A block is a single standalone building block of a coding assistants, e.g., one model or one documentation source. In | |
| 32 | +`config.yaml` syntax, a block consists of the same top-level properties as assistants (`name`, `version`, and `schema`), | |
| 33 | +but only has **ONE** item under whichever block type it is. | |
| 34 | + | |
| 35 | +Examples of blocks and assistants can be found on the [Continue hub](https://hub.continue.dev/explore/assistants). | |
| 36 | + | |
| 37 | +Assistants can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing | |
| 38 | +hub blocks. | |
| 39 | + | |
| 40 | +### Using Blocks | |
| 41 | + | |
| 42 | +Hub blocks and assistants are identified with a slug in the format `owner-slug/block-or-assistant-slug`, where an owner | |
| 43 | +can be a user or organization (For example, if you want to use | |
| 44 | +the [OpenAI 4o Model block](https://hub.continue.dev/openai/gpt-4o), your slug would be `openai/gpt-4o`). These blocks | |
| 45 | +are pulled from [https://hub.continue.dev](https://hub.continue.dev). | |
| 46 | + | |
| 47 | +Blocks can be imported into an assistant by adding a `uses` clause under the block type. This can be alongside other | |
| 48 | +`uses` clauses or explicit blocks of that type. | |
| 49 | + | |
| 50 | +For example, the following assistant imports an Anthropic model and defines an Ollama DeepSeek one. | |
| 51 | + | |
| 52 | +```yaml title="Assistant models section" | |
| 53 | +models: | |
| 54 | + - uses: anthropic/claude-3.5-sonnet # an imported model block | |
| 55 | + - model: deepseek-reasoner # an explicit model block | |
| 56 | + provider: ollama | |
| 57 | +``` | |
| 58 | + | |
| 59 | +### Local Blocks | |
| 60 | + | |
| 61 | +It is also possible to define blocks locally in a `.continue` folder. This folder can be located at either the root of | |
| 62 | +your workspace (these will automatically be applied to all assistants when you are in that workspace) or in your home | |
| 63 | +directory at `~/.continue` (these will automatically be applied globally). | |
| 64 | + | |
| 65 | +Place your YAML files in the following folders: | |
| 66 | + | |
| 67 | +Assistants: | |
| 68 | + | |
| 69 | +- `.continue/assistants` - for assistants | |
| 70 | + | |
| 71 | +Blocks: | |
| 72 | + | |
| 73 | +- `.continue/rules` - for rules | |
| 74 | +- `.continue/models` - for models | |
| 75 | +- `.continue/prompts` - for prompts | |
| 76 | +- `.continue/context` - for context providers | |
| 77 | +- `.continue/docs` - for docs | |
| 78 | +- `.continue/data` - for data | |
| 79 | +- `.continue/mcpServers` - for MCP Servers | |
| 80 | + | |
| 81 | +You can find many examples of each of these block types on | |
| 82 | +the [Continue Explore Page](https://hub.continue.dev/explore/models) | |
| 83 | + | |
| 84 | +:::info | |
| 85 | +Local blocks utilizing mustache notation for secrets (`${{ secrets.SECRET_NAME }}`) can read secret values: | |
| 86 | + | |
| 87 | +- globally, from a `.env` located in the global `.continue` folder (`~/.continue/.env`) | |
| 88 | +- per-workspace, from a `.env` file located at the root of the current workspace. | |
| 89 | + ::: | |
| 90 | + | |
| 91 | +### Inputs | |
| 92 | + | |
| 93 | +Blocks can be passed user inputs, including hub secrets and raw text values. To create a block that has an input, use | |
| 94 | +mustache templating as follows: | |
| 95 | + | |
| 96 | +```yaml title="Block config.yaml" | |
| 97 | +name: myprofile/custom-model | |
| 98 | +models: | |
| 99 | + - name: My Favorite Model | |
| 100 | + provider: anthropic | |
| 101 | + apiKey: ${{ inputs.ANTHROPIC_API_KEY }} | |
| 102 | + defaultCompletionOptions: | |
| 103 | + temperature: ${{ inputs.TEMP }} | |
| 104 | +``` | |
| 105 | + | |
| 106 | +Which can then be imported like | |
| 107 | + | |
| 108 | +```yaml title="Assistant config.yaml" | |
| 109 | +name: myprofile/custom-assistant | |
| 110 | +models: | |
| 111 | + - uses: myprofile/custom-model | |
| 112 | + with: | |
| 113 | + ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }} | |
| 114 | + TEMP: 0.9 | |
| 115 | +``` | |
| 116 | + | |
| 117 | +Note that hub secrets can be passed as inputs, using a similar mustache format: `secrets.SECRET_NAME`. | |
| 118 | + | |
| 119 | +### Overrides | |
| 120 | + | |
| 121 | +Block properties can be also be directly overriden using `override`. For example: | |
| 122 | + | |
| 123 | +```yaml title="Assistant config.yaml" | |
| 124 | +name: myprofile/custom-assistant | |
| 125 | +models: | |
| 126 | + - uses: myprofile/custom-model | |
| 127 | + with: | |
| 128 | + ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }} | |
| 129 | + TEMP: 0.9 | |
| 130 | + override: | |
| 131 | + roles: | |
| 132 | + - chat | |
| 133 | +``` | |
| 134 | + | |
| 135 | +## Properties | |
| 136 | + | |
| 137 | +Below are details for each property that can be set in `config.yaml`. | |
| 138 | + | |
| 139 | +**All properties at all levels are optional unless explicitly marked as required.** | |
| 140 | + | |
| 141 | +The top-level properties in the `config.yaml` configuration file are: | |
| 142 | + | |
| 143 | +- [`name`](#name) (**required**) | |
| 144 | +- [`version`](#version) (**required**) | |
| 145 | +- [`schema`](#schema) (**required**) | |
| 146 | +- [`models`](#models) | |
| 147 | +- [`context`](#context) | |
| 148 | +- [`rules`](#rules) | |
| 149 | +- [`prompts`](#prompts) | |
| 150 | +- [`docs`](#docs) | |
| 151 | +- [`mcpServers`](#mcpservers) | |
| 152 | +- [`data`](#data) | |
| 153 | + | |
| 154 | +--- | |
| 155 | + | |
| 156 | +### `name` | |
| 157 | + | |
| 158 | +The `name` property specifies the name of your project or configuration. | |
| 159 | + | |
| 160 | +```yaml title="config.yaml" | |
| 161 | +name: MyProject | |
| 162 | +``` | |
| 163 | + | |
| 164 | +--- | |
| 165 | + | |
| 166 | +### `version` | |
| 167 | + | |
| 168 | +The `version` property specifies the version of your project or configuration. | |
| 169 | + | |
| 170 | +### `schema` | |
| 171 | + | |
| 172 | +The `schema` property specifies the schema version used for the `config.yaml`, e.g. `v1` | |
| 173 | + | |
| 174 | +--- | |
| 175 | + | |
| 176 | +### `models` | |
| 177 | + | |
| 178 | +The `models` section defines the language models used in your configuration. Models are used for functionalities such as | |
| 179 | +chat, editing, and summarizing. | |
| 180 | + | |
| 181 | +**Properties:** | |
| 182 | + | |
| 183 | +- `name` (**required**): A unique name to identify the model within your configuration. | |
| 184 | +- `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`). | |
| 185 | +- `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`). | |
| 186 | +- `apiBase`: Can be used to override the default API base that is specified per model | |
| 187 | +- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, | |
| 188 | + `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is | |
| 189 | + not currently used. | |
| 190 | +- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on | |
| 191 | + provider and model. Supported capabilities include `tool_use` and `image_input`. | |
| 192 | +- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. | |
| 193 | +- `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are | |
| 194 | + `chat`, [`edit`](./model-roles/edit#prompt-templating), [ | |
| 195 | + `apply`](./model-roles/apply#prompt-templating) and [ | |
| 196 | + `autocomplete`](./model-roles/autocomplete#prompt-templating). The `chat` property must be a | |
| 197 | + valid template name, such as `llama3` or `anthropic`. | |
| 198 | +- `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode: | |
| 199 | + - `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode. | |
| 200 | + <!-- - `baseAgentSystemMessage`: Can be used to override the default system prompt for **Agent** mode. <!-- This setting is experimental and hence is undocumented. --> | |
| 201 | +- `embedOptions`: If the model includes role `embed`, these settings apply for embeddings: | |
| 202 | + - `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens. | |
| 203 | + - `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk. | |
| 204 | +- `defaultCompletionOptions`: Default completion options for model settings. | |
| 205 | + - `contextLength`: Maximum context length of the model, typically in tokens. | |
| 206 | + - `maxTokens`: Maximum number of tokens to generate in a completion. | |
| 207 | + - `temperature`: Controls the randomness of the completion. Values range from `0.0` (deterministic) to `1.0` (random). | |
| 208 | + - `topP`: The cumulative probability for nucleus sampling. | |
| 209 | + - `topK`: Maximum number of tokens considered at each step. | |
| 210 | + - `stop`: An array of stop tokens that will terminate the completion. | |
| 211 | + - `reasoning`: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ models. | |
| 212 | + - `reasoningBudgetTokens`: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models. | |
| 213 | +- `requestOptions`: HTTP request options specific to the model. | |
| 214 | + - `timeout`: Timeout for each request to the language model. | |
| 215 | + - `verifySsl`: Whether to verify SSL certificates for requests. | |
| 216 | + - `caBundlePath`: Path to a custom CA bundle for HTTP requests. | |
| 217 | + - `proxy`: Proxy URL for HTTP requests. | |
| 218 | + - `headers`: Custom headers for HTTP requests. | |
| 219 | + - `extraBodyProperties`: Additional properties to merge with the HTTP request body. | |
| 220 | + - `noProxy`: List of hostnames that should bypass the specified proxy. | |
| 221 | + - `clientCertificate`: Client certificate for HTTP requests. | |
| 222 | + - `cert`: Path to the client certificate file. | |
| 223 | + - `key`: Path to the client certificate key file. | |
| 224 | + - `passphrase`: Optional passphrase for the client certificate key file. | |
| 225 | + | |
| 226 | +#### Example | |
| 227 | + | |
| 228 | +```yaml title="config.yaml" | |
| 229 | +models: | |
| 230 | + - name: GPT-4o | |
| 231 | + provider: openai | |
| 232 | + model: gpt-4o | |
| 233 | + roles: | |
| 234 | + - chat | |
| 235 | + - edit | |
| 236 | + - apply | |
| 237 | + defaultCompletionOptions: | |
| 238 | + temperature: 0.7 | |
| 239 | + maxTokens: 1500 | |
| 240 | + | |
| 241 | + - name: Codestral | |
| 242 | + provider: mistral | |
| 243 | + model: codestral-latest | |
| 244 | + roles: | |
| 245 | + - autocomplete | |
| 246 | + | |
| 247 | + - name: My Model - OpenAI-Compatible | |
| 248 | + provider: openai | |
| 249 | + apiBase: http://my-endpoint/v1 | |
| 250 | + model: my-custom-model | |
| 251 | + capabilities: | |
| 252 | + - tool_use | |
| 253 | + - image_input | |
| 254 | + roles: | |
| 255 | + - chat | |
| 256 | + - edit | |
| 257 | +``` | |
| 258 | + | |
| 259 | +--- | |
| 260 | + | |
| 261 | +### `context` | |
| 262 | + | |
| 263 | +The `context` section defines context providers, which supply additional information or context to the language models. | |
| 264 | +Each context provider can be configured with specific parameters. | |
| 265 | + | |
| 266 | +More information about usage/params for each context provider can be found [here](/advanced/context-integration/custom-providers) | |
| 267 | + | |
| 268 | +**Properties:** | |
| 269 | + | |
| 270 | +- `provider` (**required**): The identifier or name of the context provider (e.g., `code`, `docs`, `web`) | |
| 271 | +- `name`: Optional name for the provider | |
| 272 | +- `params`: Optional parameters to configure the context provider's behavior. | |
| 273 | + | |
| 274 | +**Example:** | |
| 275 | + | |
| 276 | +```yaml title="config.yaml" | |
| 277 | +context: | |
| 278 | + - provider: file | |
| 279 | + - provider: code | |
| 280 | + - provider: codebase | |
| 281 | + params: | |
| 282 | + nFinal: 10 | |
| 283 | + - provider: docs | |
| 284 | + - provider: diff | |
| 285 | + - provider: http | |
| 286 | + name: Context Server 1 | |
| 287 | + params: | |
| 288 | + url: "https://api.example.com/server1" | |
| 289 | + - provider: folder | |
| 290 | + - provider: terminal | |
| 291 | +``` | |
| 292 | + | |
| 293 | +--- | |
| 294 | + | |
| 295 | +### `rules` | |
| 296 | + | |
| 297 | +List of rules that the LLM should follow. These are concatenated into the system message for | |
| 298 | +all [Chat](../features/chat/quick-start), [Edit](../features/edit/quick-start), and [Agent](../features/agent/quick-start) requests. | |
| 299 | +See the [rules deep dive](../customization/rules) for details. | |
| 300 | + | |
| 301 | +Explicit rules can either be simple text or an object with the following properties: | |
| 302 | + | |
| 303 | +- `name` (**required**): A display name/title for the rule | |
| 304 | +- `rule` (**required**): The text content of the rule | |
| 305 | +- `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This | |
| 306 | + can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., | |
| 307 | + `["src/**/*.ts", "tests/**/*.ts"]`). | |
| 308 | + | |
| 309 | +```yaml title="config.yaml" | |
| 310 | +rules: | |
| 311 | + - Always annotate Python functions with their parameter and return types | |
| 312 | + | |
| 313 | + - name: TypeScript best practices | |
| 314 | + rule: Always use TypeScript interfaces to define shape of objects. Use type aliases sparingly. | |
| 315 | + globs: "**/*.{ts,tsx}" | |
| 316 | + | |
| 317 | + - name: TypeScript test patterns | |
| 318 | + rule: In TypeScript tests, use Jest's describe/it pattern and follow best practices for mocking. | |
| 319 | + globs: | |
| 320 | + - "src/**/*.test.ts" | |
| 321 | + - "tests/**/*.ts" | |
| 322 | + | |
| 323 | + - uses: myprofile/my-mood-setter | |
| 324 | + with: | |
| 325 | + TONE: concise | |
| 326 | +``` | |
| 327 | + | |
| 328 | +--- | |
| 329 | + | |
| 330 | +### `prompts` | |
| 331 | + | |
| 332 | +A list of custom prompts that can be invoked from the chat window. Each prompt has a name, description, and the actual | |
| 333 | +prompt text. | |
| 334 | + | |
| 335 | +```yaml title="config.yaml" | |
| 336 | +prompts: | |
| 337 | + - name: check | |
| 338 | + description: Check for mistakes in my code | |
| 339 | + prompt: | | |
| 340 | + Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant: | |
| 341 | + - Syntax errors | |
| 342 | + - Logic errors | |
| 343 | + - Security vulnerabilities | |
| 344 | +``` | |
| 345 | + | |
| 346 | +--- | |
| 347 | + | |
| 348 | +### `docs` | |
| 349 | + | |
| 350 | +List of documentation sites to index. | |
| 351 | + | |
| 352 | +**Properties:** | |
| 353 | + | |
| 354 | +- `name` (**required**): Name of the documentation site, displayed in dropdowns, etc. | |
| 355 | +- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs | |
| 356 | + | |
| 357 | +<!-- - `rootUrl`: Crawler will only index docs within this domain - pages that contain this URL --> | |
| 358 | + | |
| 359 | +- `maxDepth`: Maximum link depth for crawling. Default `4` | |
| 360 | +- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`). | |
| 361 | +- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler. | |
| 362 | + | |
| 363 | +Example | |
| 364 | + | |
| 365 | +```yaml title="config.yaml" | |
| 366 | +docs: | |
| 367 | + - name: Continue | |
| 368 | + startUrl: https://docs.continue.dev/intro | |
| 369 | + favicon: https://docs.continue.dev/favicon.ico | |
| 370 | +``` | |
| 371 | + | |
| 372 | +--- | |
| 373 | + | |
| 374 | +### `mcpServers` | |
| 375 | + | |
| 376 | +<!-- TODO is this correct? --> | |
| 377 | + | |
| 378 | +The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify | |
| 379 | +prompts, context, and tool use. Continue supports any MCP server with the MCP context provider. | |
| 380 | + | |
| 381 | +**Properties:** | |
| 382 | + | |
| 383 | +- `name` (**required**): The name of the MCP server. | |
| 384 | +- `command` (**required**): The command used to start the server. | |
| 385 | +- `args`: An optional array of arguments for the command. | |
| 386 | +- `env`: An optional map of environment variables for the server process. | |
| 387 | +- `connectionTimeout`: An optional connection timeout number to the server in milliseconds. | |
| 388 | + | |
| 389 | +**Example:** | |
| 390 | + | |
| 391 | +```yaml title="config.yaml" | |
| 392 | +mcpServers: | |
| 393 | + - name: My MCP Server | |
| 394 | + command: uvx | |
| 395 | + args: | |
| 396 | + - mcp-server-sqlite | |
| 397 | + - --db-path | |
| 398 | + - /Users/NAME/test.db | |
| 399 | +``` | |
| 400 | + | |
| 401 | +### `data` | |
| 402 | + | |
| 403 | +Destinations to which [development data](./deep-dives/development-data) will be sent. | |
| 404 | + | |
| 405 | +**Properties:** | |
| 406 | + | |
| 407 | +- `name` (**required**): The display name of the data destination | |
| 408 | +- `destination` (**required**): The destination/endpoint that will receive the data. Can be: | |
| 409 | + - an HTTP endpoint that will receive a POST request with a JSON blob | |
| 410 | + - a file URL to a directory in which events will be dumpted to `.jsonl` files | |
| 411 | +- `schema` (**required**): the schema version of the JSON blobs to be sent. Options include `0.1.0` and `0.2.0` | |
| 412 | +- `events`: an array of event names to include. Defaults to all events if not specified. | |
| 413 | +- `level`: a pre-defined filter for event fields. Options include `all` and `noCode`; the latter excludes data like file | |
| 414 | + contents, prompts, and completions. Defaults to `all` | |
| 415 | +- `apiKey`: api key to be sent with request (Bearer header) | |
| 416 | +- `requestOptions`: Options for event POST requests. Same format as [model requestOptions](#models). | |
| 417 | + | |
| 418 | + **Example:** | |
| 419 | + | |
| 420 | +```yaml title="config.yaml" | |
| 421 | +data: | |
| 422 | + - name: Local Data Bank | |
| 423 | + destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data | |
| 424 | + schema: 0.2.0 | |
| 425 | + level: all | |
| 426 | + - name: My Private Company | |
| 427 | + destination: https://mycompany.com/ingest | |
| 428 | + schema: 0.2.0 | |
| 429 | + level: noCode | |
| 430 | + events: | |
| 431 | + - autocomplete | |
| 432 | + - chatInteraction | |
| 433 | +``` | |
| 434 | + | |
| 435 | +--- | |
| 436 | + | |
| 437 | +## Complete YAML Config Example | |
| 438 | + | |
| 439 | +Putting it all together, here's a complete example of a `config.yaml` configuration file: | |
| 440 | + | |
| 441 | +```yaml title="config.yaml" | |
| 442 | +name: MyProject | |
| 443 | +version: 0.0.1 | |
| 444 | +schema: v1 | |
| 445 | + | |
| 446 | +models: | |
| 447 | + - uses: anthropic/claude-3.5-sonnet | |
| 448 | + with: | |
| 449 | + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| 450 | + override: | |
| 451 | + defaultCompletionOptions: | |
| 452 | + temperature: 0.8 | |
| 453 | + - name: GPT-4 | |
| 454 | + provider: openai | |
| 455 | + model: gpt-4 | |
| 456 | + roles: | |
| 457 | + - chat | |
| 458 | + - edit | |
| 459 | + defaultCompletionOptions: | |
| 460 | + temperature: 0.5 | |
| 461 | + maxTokens: 2000 | |
| 462 | + requestOptions: | |
| 463 | + headers: | |
| 464 | + Authorization: Bearer YOUR_OPENAI_API_KEY | |
| 465 | + | |
| 466 | + - name: Ollama Starcoder | |
| 467 | + provider: ollama | |
| 468 | + model: starcoder | |
| 469 | + roles: | |
| 470 | + - autocomplete | |
| 471 | + defaultCompletionOptions: | |
| 472 | + temperature: 0.3 | |
| 473 | + stop: | |
| 474 | + - "\n" | |
| 475 | + | |
| 476 | +rules: | |
| 477 | + - Give concise responses | |
| 478 | + - Always assume TypeScript rather than JavaScript | |
| 479 | + | |
| 480 | +prompts: | |
| 481 | + - name: test | |
| 482 | + description: Unit test a function | |
| 483 | + prompt: | | |
| 484 | + Please write a complete suite of unit tests for this function. You should use the Jest testing framework. The tests should cover all possible edge cases and should be as thorough as possible. You should also include a description of each test case. | |
| 485 | + - uses: myprofile/my-favorite-prompt | |
| 486 | + | |
| 487 | +context: | |
| 488 | + - provider: diff | |
| 489 | + - provider: file | |
| 490 | + - provider: codebase | |
| 491 | + - provider: code | |
| 492 | + - provider: docs | |
| 493 | + params: | |
| 494 | + startUrl: https://docs.example.com/introduction | |
| 495 | + rootUrl: https://docs.example.com | |
| 496 | + maxDepth: 3 | |
| 497 | + | |
| 498 | +mcpServers: | |
| 499 | + - name: DevServer | |
| 500 | + command: npm | |
| 501 | + args: | |
| 502 | + - run | |
| 503 | + - dev | |
| 504 | + env: | |
| 505 | + PORT: "3000" | |
| 506 | + | |
| 507 | +data: | |
| 508 | + - name: My Private Company | |
| 509 | + destination: https://mycompany.com/ingest | |
| 510 | + schema: 0.2.0 | |
| 511 | + level: noCode | |
| 512 | + events: | |
| 513 | + - autocomplete | |
| 514 | + - chatInteraction | |
| 515 | +``` | |
| 516 | + | |
| 517 | +## Using YAML anchors to avoid config duplication | |
| 518 | + | |
| 519 | +You can also use node anchors to avoid duplication of properties. To do so, | |
| 520 | +adding the YAML version header `%YAML 1.1` is needed, here's an example of | |
| 521 | +a `config.yaml` configuration file using anchors: | |
| 522 | + | |
| 523 | +```yaml title="config.yaml" | |
| 524 | +%YAML 1.1 | |
| 525 | +--- | |
| 526 | +name: MyProject | |
| 527 | +version: 0.0.1 | |
| 528 | +schema: v1 | |
| 529 | + | |
| 530 | +model_defaults: &model_defaults | |
| 531 | + provider: openai | |
| 532 | + apiKey: my-api-key | |
| 533 | + apiBase: https://api.example.com/llm | |
| 534 | + | |
| 535 | +models: | |
| 536 | + - name: mistral | |
| 537 | + <<: *model_defaults | |
| 538 | + model: mistral-7b-instruct | |
| 539 | + roles: | |
| 540 | + - chat | |
| 541 | + - edit | |
| 542 | + | |
| 543 | + - name: qwen2.5-coder-7b-instruct | |
| 544 | + <<: *model_defaults | |
| 545 | + model: qwen2.5-coder-7b-instruct | |
| 546 | + roles: | |
| 547 | + - chat | |
| 548 | + - edit | |
| 549 | + | |
| 550 | + - name: qwen2.5-coder-7b | |
| 551 | + <<: *model_defaults | |
| 552 | + model: qwen2.5-coder-7b | |
| 553 | + useLegacyCompletionsEndpoint: false | |
| 554 | + roles: | |
| 555 | + - autocomplete | |
| 556 | +``` |
added docs/docs/troubleshooting.mdx +172 −0
| @@ -0,0 +1,172 @@ | ||
| 1 | +--- | |
| 2 | +title: Troubleshooting | |
| 3 | +description: Troubleshooting while waiting for help during beta / alpha testing | |
| 4 | +keywords: [reload, delete, manually, logs, server, console] | |
| 5 | +--- | |
| 6 | + | |
| 7 | +import TabItem from "@theme/TabItem"; | |
| 8 | +import Tabs from "@theme/Tabs"; | |
| 9 | + | |
| 10 | +1. [Check the logs](#check-the-logs) | |
| 11 | +2. [Try the latest pre-release](#download-the-latest-pre-release) | |
| 12 | +3. [Download an older version](#download-an-older-version) | |
| 13 | +4. [Resolve keyboard shortcut issues](#keyboard-shortcuts-not-resolving) | |
| 14 | +5. [Check FAQs for common issues](#faqs) | |
| 15 | + | |
| 16 | +## Check the logs | |
| 17 | + | |
| 18 | +To solve many problems, the first step is reading the logs to find the relevant error message. To do this, follow these steps: | |
| 19 | + | |
| 20 | +### VS Code | |
| 21 | + | |
| 22 | +#### Console logs | |
| 23 | + | |
| 24 | +:::info | |
| 25 | +In order to view debug logs, which contain extra information, click the dropdown at the top that says "Default levels" and select "Verbose". | |
| 26 | +::: | |
| 27 | + | |
| 28 | +1. <kbd>cmd</kbd> + <kbd>shift</kbd> + <kbd>P</kbd> for MacOS or <kbd>ctrl</kbd> | |
| 29 | + + <kbd>shift</kbd> + <kbd>P</kbd> for Windows | |
| 30 | +2. Search for and then select "Developer: Toggle Developer Tools" | |
| 31 | +3. This will open the [Chrome DevTools window](https://developer.chrome.com/docs/devtools/) | |
| 32 | +4. Select the `Console` tab | |
| 33 | +5. Read the console logs | |
| 34 | + | |
| 35 | +#### Prompt Logs (Continue Console) | |
| 36 | + | |
| 37 | +To view prompt logs/analytics, you can enable the Continue Console. | |
| 38 | + | |
| 39 | +1. Open VS Code settings (<kbd>cmd/ctrl</kbd> + <kbd>,</kbd>) | |
| 40 | +2. Search for the setting "Continue: Enable Console" and enable it | |
| 41 | +3. Reload the window | |
| 42 | +4. Open the Continue Console by using the command palette (<kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>P</kbd>) and searching for "Continue: Focus on Continue Console View" | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | +### JetBrains | |
| 47 | + | |
| 48 | +Open `~/.continue/logs/core.log` to view the logs for the Continue plugin. The most recent logs are found at the bottom of the file. | |
| 49 | + | |
| 50 | +Some JetBrains-related logs may also be found by clicking "Help" > "Show Log in Explorer/Finder". | |
| 51 | + | |
| 52 | +## Download the latest pre-release | |
| 53 | + | |
| 54 | +### VS Code | |
| 55 | + | |
| 56 | +We are constantly making fixes and improvements to Continue, but the latest changes remain in a "pre-release" version for roughly a week so that we can test their stability. If you are experiencing issues, you can try the pre-release by going to the Continue extension page in VS Code and selecting "Switch to Pre-Release" as shown below. | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | +### JetBrains | |
| 61 | + | |
| 62 | +On JetBrains, the "pre-release" happens through their Early Access Program (EAP) channel. To download the latest EAP version, enable the EAP channel: | |
| 63 | + | |
| 64 | +1. Open JetBrains settings (<kbd>cmd/ctrl</kbd> + <kbd>,</kbd>) and go to "Plugins" | |
| 65 | +2. Click the gear icon at the top | |
| 66 | +3. Select "Manage Plugin Repositories..." | |
| 67 | +4. Add "[https://plugins.jetbrains.com/plugins/eap/list](https://plugins.jetbrains.com/plugins/eap/list)" to the list | |
| 68 | +5. You'll now always be able to download the latest EAP version from the marketplace | |
| 69 | + | |
| 70 | +## Download an Older Version | |
| 71 | + | |
| 72 | +If you've tried everything, reported an error, know that a previous version was working for you, and are waiting to hear back, you can try downloading an older version of the extension. | |
| 73 | + | |
| 74 | +For VS Code, All versions are hosted on the Open VSX Registry [here](https://open-vsx.org/extension/Continue/continue). Once you've downloaded the extension, which will be a .vsix file, you can install it manually by following the instructions [here](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix). | |
| 75 | + | |
| 76 | +You can find older versions of the JetBrains extension on their [marketplace](https://plugins.jetbrains.com/plugin/22707-continue), which will walk you through installing from disk. | |
| 77 | + | |
| 78 | +## Keyboard shortcuts not resolving | |
| 79 | + | |
| 80 | +If your keyboard shortcuts are not resolving, you may have other commands that are taking precedence over the Continue shortcuts. You can see if this is the case, and change your shortcut mappings, in the configuration of your IDE. | |
| 81 | + | |
| 82 | +- [VSCode keyboard shortcuts docs](https://code.visualstudio.com/docs/getstarted/keybindings) | |
| 83 | +- [IntelliJ keyboard shortcut docs](https://www.jetbrains.com/help/idea/configuring-keyboard-and-mouse-shortcuts.html) | |
| 84 | + | |
| 85 | +## FAQs | |
| 86 | + | |
| 87 | +### Networking Issues | |
| 88 | + | |
| 89 | +#### Configure Certificates | |
| 90 | + | |
| 91 | +If you're seeing a `fetch failed` error and your network requires custom certificates, you will need to configure them in your config file. In each of the objects in the `"models"` array, add `requestOptions.caBundlePath` like this: | |
| 92 | + | |
| 93 | +<Tabs groupId="config-example"> | |
| 94 | + <TabItem value="yaml" label="YAML"> | |
| 95 | + ```yaml title="config.yaml" | |
| 96 | + models: | |
| 97 | + - name: My Model | |
| 98 | + ... | |
| 99 | + requestOptions: | |
| 100 | + caBundlePath: /path/to/cert.pem | |
| 101 | + ``` | |
| 102 | + </TabItem> | |
| 103 | + <TabItem value="json" label="JSON"> | |
| 104 | + ```json title="config.json" | |
| 105 | + { | |
| 106 | + "models": [ | |
| 107 | + { | |
| 108 | + "title": "My Model", | |
| 109 | + ... | |
| 110 | + "requestOptions": { | |
| 111 | + "caBundlePath": "/path/to/cert.pem" | |
| 112 | + } | |
| 113 | + } | |
| 114 | + ], | |
| 115 | + } | |
| 116 | + ``` | |
| 117 | + </TabItem> | |
| 118 | +</Tabs> | |
| 119 | + | |
| 120 | +You may also set `requestOptions.caBundlePath` to an array of paths to multiple certificates. | |
| 121 | + | |
| 122 | +**_Windows VS Code Users_**: Installing the [win-ca](https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca) extension should also correct this issue. | |
| 123 | + | |
| 124 | +#### VS Code Proxy Settings | |
| 125 | + | |
| 126 | +If you are using VS Code and require requests to be made through a proxy, you are likely already set up through VS Code's [Proxy Server Support](https://code.visualstudio.com/docs/setup/network#_proxy-server-support). To double-check that this is enabled, use <kbd>cmd/ctrl</kbd> + <kbd>,</kbd> to open settings and search for "Proxy Support". Unless it is set to "off", then VS Code is responsible for making the request to the proxy. | |
| 127 | + | |
| 128 | +#### code-server | |
| 129 | + | |
| 130 | +Continue can be used in [code-server](https://coder.com/), but if you are running across an error in the logs that includes "This is likely because the editor is not running in a secure context", please see [their documentation on securely exposing code-server](https://coder.com/docs/code-server/latest/guide#expose-code-server). | |
| 131 | + | |
| 132 | +### I installed Continue, but don't see the sidebar window | |
| 133 | + | |
| 134 | +By default the Continue window is on the left side of VS Code, but it can be dragged to right side as well, which we recommend in our tutorial. In the situation where you have previously installed Continue and moved it to the right side, it may still be there. You can reveal Continue either by using cmd/ctrl+L or by clicking the button in the top right of VS Code to open the right sidebar. | |
| 135 | + | |
| 136 | +### I'm getting a 404 error from OpenAI | |
| 137 | + | |
| 138 | +If you have entered a valid API key and model, but are still getting a 404 error from OpenAI, this may be because you need to add credits to your billing account. You can do so from the [billing console](https://platform.openai.com/settings/organization/billing/overview). If you just want to check that this is in fact the cause of the error, you can try adding $1 to your account and checking whether the error persists. | |
| 139 | + | |
| 140 | +### I'm getting a 404 error from OpenRouter | |
| 141 | + | |
| 142 | +If you have entered a valid API key and model, but are still getting a 404 error from OpenRouter, this may be because models that do not support function calling will return an error to Continue when a request is sent. | |
| 143 | +Example error: | |
| 144 | +`HTTP 404 Not Found from https://openrouter.ai/api/v1/chat/completions` | |
| 145 | + | |
| 146 | +### Indexing issues | |
| 147 | + | |
| 148 | +If you are having persistent errors with indexing, our recommendation is to rebuild your index from scratch. Note that for large codebases this may take some time. | |
| 149 | + | |
| 150 | +This can be accomplished using the following command: `Continue: Rebuild codebase index`. | |
| 151 | + | |
| 152 | +### Android Studio - "Nothing to show" in Chat | |
| 153 | + | |
| 154 | +This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/596#issuecomment-1789327178) for details. | |
| 155 | + | |
| 156 | +### I received a "Codebase indexing disabled - Your Linux system lacks required CPU features (AVX2, FMA)" notification | |
| 157 | + | |
| 158 | +We use LanceDB as our vector database for codebase search features. On x64 Linux systems, LanceDB requires specific CPU features (FMA and AVX2) which may not be available on older processors. | |
| 159 | + | |
| 160 | +Most Continue features will work normally, including autocomplete and chat. However, commands that rely on codebase indexing, such as `@codebase`, `@files`, and `@folder`, will be disabled. | |
| 161 | + | |
| 162 | +For more details about this requirement, see the [LanceDB issue #2195](https://github.com/lancedb/lance/issues/2195). | |
| 163 | + | |
| 164 | +### How do I reset the state of the extension? | |
| 165 | + | |
| 166 | +Continue stores it's data in the `~/.continue` directory (%USERPROFILE%\.continue` on Windows). | |
| 167 | + | |
| 168 | +If you'd like to perform a clean reset of the extension, including removing all configuration files, indices, etc, you can remove this directory, uninstall, and then reinstall. | |
| 169 | + | |
| 170 | +## Still having trouble? | |
| 171 | + | |
| 172 | +You can also join our Discord community [here](https://discord.gg/vapESyrFmJ) for additional support and discussions. Alternatively, you can create a GitHub issue [here](https://github.com/continuedev/continue/issues/new?assignees=&labels=bug&projects=&template=bug-report-%F0%9F%90%9B.md&title=), providing details of your problem, and we'll be able to help you out more quickly. |
modified docs/docusaurus.config.js +4 −8
| @@ -525,14 +525,6 @@ | ||
| 525 | 525 | to: "/features/agent/how-it-works", |
| 526 | 526 | from: "/agent/how-it-works", |
| 527 | 527 | }, |
| 528 | - { | |
| 529 | - to: "/advanced/reference", | |
| 530 | - from: "/reference", | |
| 531 | - }, | |
| 532 | - { | |
| 533 | - to: "/advanced/troubleshooting", | |
| 534 | - from: "/troubleshooting", | |
| 535 | - }, | |
| 536 | 528 | { |
| 537 | 529 | to: "/advanced/telemetry", |
| 538 | 530 | from: "/telemetry", |
| @@ -545,6 +537,10 @@ | ||
| 545 | 537 | to: "/advanced/yaml-migration", |
| 546 | 538 | from: "/yaml-migration", |
| 547 | 539 | }, |
| 540 | + { | |
| 541 | + to: "/troubleshooting", | |
| 542 | + from: "/advanced/troubleshooting", | |
| 543 | + }, | |
| 548 | 544 | ], |
| 549 | 545 | }, |
| 550 | 546 | ], |
modified docs/sidebars.js +2 −0
| @@ -65,6 +65,8 @@ | ||
| 65 | 65 | }, |
| 66 | 66 | ], |
| 67 | 67 | }, |
| 68 | + "troubleshooting", | |
| 69 | + "reference", | |
| 68 | 70 | ], |
| 69 | 71 | }; |
| 70 | 72 |