Elffuss BraidHub

kikocis/continue public

3ecf862e2425 · 14.8 KiBSourceRawPermalink

title: Reference description: Reference for the Continue config.json configuration file keywords: [config, config_schema.json, json]

Below are details for each property that can be set in config.json. The config schema code is found in extensions/vscode/config_schema.json.

All properties at all levels are optional unless explicitly marked required

models

Your chat models are defined here, which are used for Chat, Edit, and Actions. Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json.

Properties:

(AWS Only)

Example:

{
  "models": [
    {
      "title": "Ollama",
      "provider": "ollama",
      "model": "AUTODETECT"
    },
    {
      "model": "gpt-4o",
      "contextLength": 128000,
      "title": "GPT-4o",
      "provider": "openai",
      "apiKey": "YOUR_API_KEY"
    }
  ]
}

tabAutocompleteModel

Specifies the model or models for tab autocompletion, defaulting to an Ollama instance. This property uses the same format as models. Can be an array of models or an object for one model.

Example

{
  "tabAutocompleteModel": {
    "title": "My Starcoder",
    "provider": "ollama",
    "model": "starcoder2:3b"
  }
}

tabAutocompleteOptions

Specifies options for tab autocompletion behavior.

Properties:

Example

{
  "tabAutocompleteOptions": {
    "debounceDelay": 500,
    "maxPromptTokens": 1500,
    "disableInFiles": ["*.md"]
  }
}

embeddingsProvider

Embeddings model settings - the model used for @Codebase and @docs.

Properties:

(AWS ONLY)

Example:

{
  "embeddingsProvider": {
    "provider": "openai",
    "model": "text-embedding-ada-002",
    "apiKey": "<API_KEY>",
    "maxEmbeddingChunkSize": 256,
    "maxEmbeddingBatchSize": 5
  }
}

completionOptions

Parameters that control the behavior of text generation and completion settings. Top-level completionOptions apply to all models, unless overridden at the model level.

Properties:

Example

{
  "completionOptions": {
    "stream": false,
    "temperature": 0.5
  }
}

requestOptions

Default HTTP request options that apply to all models and context providers, unless overridden at the model level.

Properties:

Example

{
  "requestOptions": {
    "headers": {
      "X-Auth-Token": "xxx"
    }
  }
}

reranker

Configuration for the reranker model used in response ranking.

Properties:

Example

{
  "reranker": {
    "name": "voyage",
    "params": {
      "model": "rerank-2",
      "apiKey": "<VOYAGE_API_KEY>"
    }
  }
}

docs

List of documentation sites to index.

Properties:

Example

"docs": [
    {
    "title": "Continue",
    "startUrl": "https://docs.continue.dev/intro",
    "faviconUrl": "https://docs.continue.dev/favicon.ico",
  }
]

analytics

Configuration for analytics tracking.

Properties:

slashCommands

Custom commands initiated by typing "/" in the sidebar. Commands include predefined functionality or may be user-defined.

Properties:

Example:

{
  "slashCommands": [
    {
      "name": "commit",
      "description": "Generate a commit message"
    },
    {
      "name": "share",
      "description": "Export this session as markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    }
  ]
}

customCommands

User-defined commands for prompt shortcuts in the sidebar, allowing quick access to common actions.

Properties:

Example:

{
  "customCommands": [
    {
      "name": "test",
      "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ]
}

contextProviders

List of the pre-defined context providers that will show up as options while typing in the chat, and their customization with params.

Properties:

Example

{
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "open",
      "params": {}
    }
  ]
}

disableSessionTitles

Prevents generating summary titles for each chat session when set to true.

ui

Customizable UI settings to control interface appearance and behavior.

Properties:

Example:

{
  "ui": {
    "codeBlockToolbarPosition": "bottom",
    "fontSize": 14,
    "displayRawMarkdown": false
  }
}

allowAnonymousTelemetry

When true, anonymous usage data is collected using Posthog, to improve features. Default is true.

userToken

An optional token that identifies the user, primarily for authenticated services.

systemMessage

Defines a system message that appears before every response from the language model, providing guidance or context.

disableIndexing

Prevents indexing of the codebase, useful primarily for debugging purposes.

experimental

Several experimental config parameters are available, as described below:

experimental:

Example

{
  "experimental": {
    "modelRoles": {
      "inlineEdit": "Edit Model"
    },
    "promptPath": "custom/.prompts",
    "quickActions": [
      {
        "title": "Tags",
        "prompt": "Return a list of any function and class names from the included code block",
        "sendToChat": true
      }
    ],
    "contextMenuPrompts": {
      "fixGrammar": "Fix grammar in the above but allow for typos."
    },
    "readResponseTTS": false,
    "useChromiumForDocsCrawling": true
  }
}