From 8ac15187d7a333702b9f9dc2dc1160e20dab55ad Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Oct 2024 10:02:12 -0700 Subject: [PATCH 1/9] config docs updates, fix broken links --- docs/docs/actions/how-to-customize.md | 4 +- docs/docs/autocomplete/how-to-customize.md | 2 +- docs/docs/chat/model-setup.mdx | 2 +- docs/docs/customize/config.md | 289 ++++++++++++++++++ docs/docs/customize/config.ts | 2 - .../docs/customize/deep-dives/autocomplete.md | 2 +- docs/docs/customize/overview.md | 6 +- docs/docs/edit/model-setup.md | 2 +- 8 files changed, 298 insertions(+), 11 deletions(-) diff --git a/docs/docs/actions/how-to-customize.md b/docs/docs/actions/how-to-customize.md index 0170283d9..ae3c324db 100644 --- a/docs/docs/actions/how-to-customize.md +++ b/docs/docs/actions/how-to-customize.md @@ -7,7 +7,7 @@ sidebar_position: 5 ## Built-in slash commands -Continue has a large library of built-in slash commands, but when you first install we only display the most commonly used ones, like “/edit”, “/comment”, and “/share”. To add more actions, you can open [config.json](../customize/config.mdx) and add them to the `slashCommands` array. +Continue has a large library of built-in slash commands, but when you first install we only display the most commonly used ones, like “/edit”, “/comment”, and “/share”. To add more actions, you can open [config.json](../customize/config.md) and add them to the `slashCommands` array. ## Custom slash commands @@ -20,7 +20,7 @@ There are two ways to add custom slash commands: If you want to go a step further than writing custom commands with natural language, you can write a custom function that returns the response. This requires using `config.ts` instead of `config.json`. diff --git a/docs/docs/autocomplete/how-to-customize.md b/docs/docs/autocomplete/how-to-customize.md index df95b3201..4be8303d8 100644 --- a/docs/docs/autocomplete/how-to-customize.md +++ b/docs/docs/autocomplete/how-to-customize.md @@ -5,7 +5,7 @@ keywords: [customize] sidebar_position: 5 --- -Continue offers a handful of parameters in [`config.json`](../customize/config.mdx) that can be tuned to find the perfect balance between suggestion quality and system performance for your specific needs and hardware capabilities: +Continue offers a handful of parameters in [`config.json`](../customize/config.md) that can be tuned to find the perfect balance between suggestion quality and system performance for your specific needs and hardware capabilities: ```json title="config.json" "tabAutocompleteOptions": { diff --git a/docs/docs/chat/model-setup.mdx b/docs/docs/chat/model-setup.mdx index 023e875c1..92ac1ea59 100644 --- a/docs/docs/chat/model-setup.mdx +++ b/docs/docs/chat/model-setup.mdx @@ -9,7 +9,7 @@ import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; :::info -This page recommends models and providers for Chat. Read more about how to set up your `config.json` [here](../customize/config.mdx). +This page recommends models and providers for Chat. Read more about how to set up your `config.json` [here](../customize/config.md). ::: ## Best overall experience diff --git a/docs/docs/customize/config.md b/docs/docs/customize/config.md index e69de29bb..aeed0db58 100644 --- a/docs/docs/customize/config.md +++ b/docs/docs/customize/config.md @@ -0,0 +1,289 @@ +--- +title: Continue Configuration +description: Continue configuration files +keywords: [config, config_schema.json, json] +sidebar_position: 2 +--- + +# Continue Config + +Continue can be deeply customized. User-level configuration is stored and can be edited in your home directory in [`config.json`](#configjson): + +- `~/.continue/config.json` (MacOS / Linux) +- `%USERPROFILE%\.continue\config.json` (Windows) + +To open `config.json`, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can use IntelliSense to see the available options as you type, or check the reference below. + +When you save `config.json`, Continue will automatically refresh to take into account your changes. `config.json` is automatically created the first time you use Continue. + +In the vast majority of cases, you will only need to edit `config.json`. However, Continue offers two additional ways to customize configuration: + +- [`.continuerc.json`](#continuercjson) - Workspace-level configuration. If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. This can be set to merge with _or_ override the user-level `config.json` +- [`config.ts`](#config-ts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema: + - `~/.continue/config.ts` (MacOS / Linux) + - `%USERPROFILE%\.continue\config.ts` (Windows) + +## `config.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`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json). + +### `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:** + +- `stream`: Whether to stream the LLM response. Currently only respected by the `anthropic` and `ollama` providers; other providers will always stream (default: `true`). +- `temperature`: Controls the randomness of the completion. Higher values result in more diverse outputs. +- `topP`: The cumulative probability for nucleus sampling. Lower values limit responses to tokens within the top probability mass. +- `topK`: The maximum number of tokens considered at each step. Limits the generated text to tokens within this probability. +- `presencePenalty`: Discourages the model from generating tokens that have already appeared in the output. +- `frequencePenalty`: Penalizes tokens based on their frequency in the text, reducing repetition. +- `mirostat`: Enables Mirostat sampling, which controls the perplexity during text generation. Supported by Ollama, LM Studio, and llama.cpp providers (default: `0`, where `0` = disabled, `1` = Mirostat, and `2` = Mirostat 2.0). +- `stop`: An array of stop tokens that, when encountered, will terminate the completion. Allows specifying multiple end conditions. +- `maxTokens`: The maximum number of tokens to generate in a completion (default: `600`). +- `numThreads`: The number of threads used during the generation process. Available only for Ollama as `num_thread`. +- `keepAlive`: For Ollama, this parameter sets the number of seconds to keep the model loaded after the last request, unloading it from memory if inactive (default: `1800` seconds, or 30 minutes). + +### `requestOptions` + +Default HTTP request options that apply to all models and context providers, unless overridden at the model level. + +**Properties:** + +- `timeout`: Timeout for each request to the LLM (default: 7200 seconds). +- `verifySsl`: Whether to verify SSL certificates for requests. +- `caBundlePath`: Path to a custom CA bundle for HTTP requests. +- `proxy`: Proxy URL to use for HTTP requests. +- `headers`: Custom headers for HTTP requests. +- `extraBodyProperties`: Additional properties to merge with the HTTP request body. +- `noProxy`: List of hostnames that should bypass the specified proxy. +- `clientCertificate`: Client certificate for HTTP requests. + - `cert`: Path to the client certificate file. + - `key`: Path to the client certificate key file. + - `passphrase`: Optional passphrase for the client certificate key file. + +### `models` + +Your **chat** models are defined here, which are used for chat, edit, and actions. + +**Properties:** + +### `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. + +Properties: + +- `title`: The title to assign to your model. +- `provider`: The provider of the model, which determines the type and interaction method. Options inclued `openai`, `ollama`, etc., see intelliJ suggestions. +- `model`: The name of the model, used for prompt template auto-detection. +- `apiKey`: API key required by providers like OpenAI, Anthropic, and Cohere. +- `apiBase`: The base URL of the LLM API. +- `region`: Region where the model is hosted (e.g., `us-east-1`, `eu-central-1`). +- `profile`: AWS security profile for authorization. +- `modelArn`: AWS ARN for imported models (e.g., for `bedrockimport` provider). +- `contextLength`: Maximum context length of the model, typically in tokens (default: 2048). +- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. +- `template`: Chat template to format messages. Auto-detected for most models but can be overridden. See intelliJ suggestions. +- `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. [Customization Guide](https://docs.continue.dev/model-setup/configuration#customizing-the-edit-prompt). +- `completionOptions`: Model-specific completion options, same format as top-level `completionOptions`, which they override. +- `systemMessage`: A system message that will precede responses from the LLM. +- `requestOptions`: Model-specific HTTP request options, same format as top-level `requestOptions`, which they override. +- `apiType`: Specifies the type of API (`openai` or `azure`). +- `apiVersion`: Azure API version (e.g., `2023-07-01-preview`). +- `engine`: Engine for Azure OpenAI requests. +- `capabilities`: Override auto-detected capabilities, including: + - `uploadImage`: Boolean indicating if the model supports image uploads. + +Example: + +````json +{ + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "AUTODETECT" + }, + { + "model": "gpt-4o", + "contextLength": 128000, + "title": "GPT-4o", + "provider": "openai", + "apiKey": "YOUR_API_KEY" + } + ] +} + + +- `title`: "... I will manually enter these" +- `provider`: "" +- `model`: "" +- `apiKey`: "" +- `apiBase`: "" +- `region`: "" +- `profile`: "" +- `modelArn`: "" +- `contextLength`: "" +- `maxStopWords`: "" +- `template`: "" +- `promptTemplates`: "" +- `completionOptions`: Same format as top-level `completionOptions` - model-specific options overwrite. +- `systemMessage`: "" +- `requestOptions`: Same format as top-level `requestOptions` - model-specific options overwrite. +- `apiType`: "" +- `apiVersion`: "" +- `engine`: "" +- `capabilities`: "" + +Example: + +```json +{ + "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`. + +### `experimental.defaultContext` + +Defines the default context for the LLM. Uses the same format as `contextProviders` but includes an additional `query` property to specify custom query parameters. + +### `tabAutocompleteOptions` + +Specifies options for tab autocompletion behavior. + +**Properties:** + +- `disable`: If `true`, disables tab autocomplete (default: `false`). +- `useCopyBuffer`: If `true`, includes the copy buffer in the prompt. +- `useFileSuffix`: If `true`, includes file suffix in the prompt. +- `maxPromptTokens`: Maximum number of tokens for the prompt. +- `debounceDelay`: Delay (in ms) before triggering autocomplete. +- `maxSuffixPercentage`: Maximum percentage of prompt for suffix. +- `prefixPercentage`: Percentage of input for prefix. +- `template`: Template string for autocomplete, using Mustache templating. +- `multilineCompletions`: Controls multiline completions (`"always"`, `"never"`, or `"auto"`). +- `useCache`: If `true`, caches completions. +- `onlyMyCode`: If `true`, only includes code within the repository. +- `useOtherFiles`: If `true`, includes snippets from other files (default: `true`). +- `disableInFiles`: Array of glob patterns for files where autocomplete is disabled. + +### `embeddingsProvider` + +Configuration for the embeddings provider used for codebase embeddings. + +**Properties:** + +- `provider`: The embeddings provider (`"huggingface-tei"`, `"transformers.js"`, `"ollama"`, `"openai"`, `"cohere"`, `"free-trial"`, `"gemini"`, `"voyage"`, `"nvidia"`, `"bedrock"`, `"sagemaker"`, `"vertex"`). +- `model`: Model name for embeddings. +- `apiKey`: API key for the provider. +- `apiBase`: Base URL for API requests. +- `requestOptions`: Same format as `requestOptions` for embeddings provider. +- `maxChunkSize`: Maximum tokens per document chunk (minimum: 128). +- `maxBatchSize`: Maximum chunks per request (minimum: 1). +- `region`: Region where the model is hosted. +- `profile`: AWS security profile. + +### `reranker` + +Configuration for the reranker used in response ranking. + +**Properties:** + +- `name`: Reranker name (`"cohere"`, `"voyage"`, `"llm"`, `"free-trial"`, `"huggingface-tei"`). +- `params`: Additional parameters for reranking. + +### `contextProviders` + +List of context providers for enriching LLM context. + +### `docs` + +List of documentation sites to index. + +**Properties:** + +- `title`: Title of the documentation site. +- `startUrl`: Starting URL for indexing. +- `rootUrl`: Optional root URL of the site. +- `maxDepth`: Maximum depth for crawling. +- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`). + +### `analytics` + +Configuration for analytics tracking. + +**Properties:** + +- `provider`: Analytics provider (`"posthog"` or `"logstash"`). +- `url`: URL for analytics data. +- `clientKey`: Client key for analytics. + +### `experimental.modelRoles` + +Model roles used for various tasks. + +**Properties:** + +- `inlineEdit`: Model title for inline edits. +- `applyCodeBlock`: Model title for applying code blocks. +- `repoMapFileSelection`: Model title for repo map selections. + +### `experimental.promptPath` + +Path for prompt configuration. + +### `experimental.quickActions` + +Array of custom quick actions for code lens. + +**Properties:** + +- `title`: Display title for the quick action. +- `prompt`: Prompt for the quick action. +- `sendToChat`: If `true`, sends result to chat; otherwise, inserts it into the document (default: `false`). + +### `experimental.contextMenuPrompts` + +Predefined prompts for context menu actions. + +**Properties:** + +- `comment`: Prompt for commenting code. +- `docstring`: Prompt for adding docstrings. +- `fix`: Prompt for fixing code. +- `optimize`: Prompt for optimizing code. +- `fixGrammar`: Prompt for fixing grammar or spelling. + +## `.continuerc.json` + +The format of `.continuerc.json` is the same as `config.json`, plus one _additional_ property `mergeBehavior`, which can be set to either "merge" or "overwrite". If set to "merge" (the default), `.continuerc.json` will be applied on top of `config.json` (arrays and objects are merged). If set to "overwrite", then every top-level property of `.continuerc.json` will overwrite that property from `config.json`. + +Example + +```json +{ + "tabAutocompleteOptions": { + "disable": true + }, + "mergeBehavior": "overwrite" +} +``` diff --git a/docs/docs/customize/config.ts b/docs/docs/customize/config.ts index 31a9c94b6..ddc9b5328 100644 --- a/docs/docs/customize/config.ts +++ b/docs/docs/customize/config.ts @@ -78,7 +78,6 @@ interface ContextProviderWithParams { } interface SerializedContinueConfig { - completionOptions?: BaseCompletionOptions; // Default completion options, overridden by model-specific options. requestOptions?: RequestOptions; // Default HTTP request options for models and context providers. models?: ModelDescription[]; // Model configurations, defaulting to GPT-4 (trial) with free-trial provider. @@ -121,7 +120,6 @@ interface SerializedContinueConfig { // RERANKING - reranker?: { name: "cohere" | "voyage" | "llm" | "free-trial" | "huggingface-tei"; // Reranker name. params?: Record; // Additional parameters for reranking. diff --git a/docs/docs/customize/deep-dives/autocomplete.md b/docs/docs/customize/deep-dives/autocomplete.md index 346ffb2d3..b3ef445d9 100644 --- a/docs/docs/customize/deep-dives/autocomplete.md +++ b/docs/docs/customize/deep-dives/autocomplete.md @@ -44,7 +44,7 @@ All of the configuration options available for chat models are available to use } ``` -If you aren't yet familiar with the available options, you can find the full reference [here](../config.mdx). +If you aren't yet familiar with the available options, you can find the full reference [here](../config.md). ## Configuration Options diff --git a/docs/docs/customize/overview.md b/docs/docs/customize/overview.md index 04183a427..9ff77e2ca 100644 --- a/docs/docs/customize/overview.md +++ b/docs/docs/customize/overview.md @@ -8,16 +8,16 @@ Continue can be deeply customized. This is primarily accomplished by editing a l ## Getting started -To open `config.json`, click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can use IntelliSense to see the available options as you type, or you can check the [full reference](./config.mdx). +To open `config.json`, click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can use IntelliSense to see the available options as you type, or you can check the [full reference](./config.md). When you save `config.json`, Continue will automatically refresh to take into account your changes. ## Per-workspace configuration -If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. It has the same [definition](./config.mdx) as `config.json`, and will automatically be applied on top of the local config.json. +If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. It has the same [definition](./config.md) as `config.json`, and will automatically be applied on top of the local config.json. ## Programmatic configuration `config.json` can handle the vast majority of necessary configuration, so we recommend using it whenever possible. However, if you need to programmatically configure Continue, you can use `config.ts`, which is located at `~/.continue/config.ts` (MacOS / Linux) or `%USERPROFILE%\.continue\config.ts` (Windows). -For examples of how to use `config.ts`, see [writing custom slash commands](./tutorials/build-your-own-slash-command.md#custom-slash-commands) or [writing custom context providers](./tutorials/build-your-own-context-provider.md). \ No newline at end of file +For examples of how to use `config.ts`, see [writing custom slash commands](./tutorials/build-your-own-slash-command.md#custom-slash-commands) or [writing custom context providers](./tutorials/build-your-own-context-provider.md). diff --git a/docs/docs/edit/model-setup.md b/docs/docs/edit/model-setup.md index ce5e18e18..80965c085 100644 --- a/docs/docs/edit/model-setup.md +++ b/docs/docs/edit/model-setup.md @@ -7,4 +7,4 @@ keywords: [edit, cmd l, model] By default, Edit uses the [same model as Chat](chat/model-setup.mdx) since we recommend a similar, 400B+ parameter model or one of the frontier model for code edits. -You can configure a different model to be used for edits by updating your [`config.json`](../customize/config.mdx). +You can configure a different model to be used for edits by updating your [`config.json`](../customize/config.md). From a0ccc4fd3e7be009f89f6a85e991a6f35d34e070 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Oct 2024 17:07:18 -0700 Subject: [PATCH 2/9] config md updates --- docs/docs/customize/config.md | 463 ++++++++++++++---- docs/docs/customize/deep-dives/docs.md | 2 +- docs/docs/customize/model-types/embeddings.md | 6 +- 3 files changed, 374 insertions(+), 97 deletions(-) diff --git a/docs/docs/customize/config.md b/docs/docs/customize/config.md index aeed0db58..f302f1d0d 100644 --- a/docs/docs/customize/config.md +++ b/docs/docs/customize/config.md @@ -12,14 +12,14 @@ Continue can be deeply customized. User-level configuration is stored and can be - `~/.continue/config.json` (MacOS / Linux) - `%USERPROFILE%\.continue\config.json` (Windows) -To open `config.json`, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can use IntelliSense to see the available options as you type, or check the reference below. +To open `config.json`, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options through IntelliSense as you type, or check the reference below. -When you save `config.json`, Continue will automatically refresh to take into account your changes. `config.json` is automatically created the first time you use Continue. +When you save `config.json`, Continue will automatically refresh to take into account your changes. `config.json` is automatically created the first time you use Continue. `config.json` is automatically generated if it doesn't exist. In the vast majority of cases, you will only need to edit `config.json`. However, Continue offers two additional ways to customize configuration: - [`.continuerc.json`](#continuercjson) - Workspace-level configuration. If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. This can be set to merge with _or_ override the user-level `config.json` -- [`config.ts`](#config-ts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema: +- [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema: - `~/.continue/config.ts` (MacOS / Linux) - `%USERPROFILE%\.continue\config.ts` (Windows) @@ -27,6 +27,8 @@ In the vast majority of cases, you will only need to edit `config.json`. However 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`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json). +**All properties at all levels are optional unless explicitly marked required** + ### `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_. @@ -45,6 +47,17 @@ Parameters that control the behavior of text generation and completion settings. - `numThreads`: The number of threads used during the generation process. Available only for Ollama as `num_thread`. - `keepAlive`: For Ollama, this parameter sets the number of seconds to keep the model loaded after the last request, unloading it from memory if inactive (default: `1800` seconds, or 30 minutes). +Example + +```json title="config.json" +{ + "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. @@ -53,52 +66,63 @@ Default HTTP request options that apply to all models and context providers, unl - `timeout`: Timeout for each request to the LLM (default: 7200 seconds). - `verifySsl`: Whether to verify SSL certificates for requests. -- `caBundlePath`: Path to a custom CA bundle for HTTP requests. +- `caBundlePath`: Path to a custom CA bundle for HTTP requests - path to `.pem` file (or array of paths) - `proxy`: Proxy URL to use for HTTP requests. - `headers`: Custom headers for HTTP requests. - `extraBodyProperties`: Additional properties to merge with the HTTP request body. - `noProxy`: List of hostnames that should bypass the specified proxy. - `clientCertificate`: Client certificate for HTTP requests. + - `cert`: Path to the client certificate file. - `key`: Path to the client certificate key file. - `passphrase`: Optional passphrase for the client certificate key file. +Example + +```json title="config.json" +{ + "requestOptions": { + "headers": { + "X-Auth-Token": "xxx" + } + } +} +``` + ### `models` -Your **chat** models are defined here, which are used for chat, edit, and actions. +Your **chat** models are defined here, which are used for [Chat](../chat/how-to-use-it.md), [Edit](../edit/how-to-use-it.md), and [Actions](../actions/how-to-use-it.md). +Each model has specific configuration options tailored to its provider and functionality, which can be seen with Intellisense. **Properties:** -### `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. - -Properties: - -- `title`: The title to assign to your model. -- `provider`: The provider of the model, which determines the type and interaction method. Options inclued `openai`, `ollama`, etc., see intelliJ suggestions. -- `model`: The name of the model, used for prompt template auto-detection. +- `title` (**required**): The title to assign to your model, shown in dropdowns, etc. +- `provider` (**required**): The provider of the model, which determines the type and interaction method. Options inclued `openai`, `ollama`, etc., see intelliJ suggestions. +- `model` (**required**): The name of the model, used for prompt template auto-detection. - `apiKey`: API key required by providers like OpenAI, Anthropic, and Cohere. - `apiBase`: The base URL of the LLM API. -- `region`: Region where the model is hosted (e.g., `us-east-1`, `eu-central-1`). -- `profile`: AWS security profile for authorization. -- `modelArn`: AWS ARN for imported models (e.g., for `bedrockimport` provider). - `contextLength`: Maximum context length of the model, typically in tokens (default: 2048). - `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. - `template`: Chat template to format messages. Auto-detected for most models but can be overridden. See intelliJ suggestions. - `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. [Customization Guide](https://docs.continue.dev/model-setup/configuration#customizing-the-edit-prompt). -- `completionOptions`: Model-specific completion options, same format as top-level `completionOptions`, which they override. +- `completionOptions`: Model-specific completion options, same format as top-level [`completionOptions`](#completionoptions), which they override. - `systemMessage`: A system message that will precede responses from the LLM. -- `requestOptions`: Model-specific HTTP request options, same format as top-level `requestOptions`, which they override. +- `requestOptions`: Model-specific HTTP request options, same format as top-level [`requestOptions`](#requestoptions), which they override. - `apiType`: Specifies the type of API (`openai` or `azure`). - `apiVersion`: Azure API version (e.g., `2023-07-01-preview`). - `engine`: Engine for Azure OpenAI requests. -- `capabilities`: Override auto-detected capabilities, including: +- `capabilities`: Override auto-detected capabilities: - `uploadImage`: Boolean indicating if the model supports image uploads. +_(AWS Only)_ + +- `profile`: AWS security profile for authorization. +- `modelArn`: AWS ARN for imported models (e.g., for `bedrockimport` provider). +- `region`: Region where the model is hosted (e.g., `us-east-1`, `eu-central-1`). + Example: -````json +```json title="config.json" { "models": [ { @@ -115,56 +139,23 @@ Example: } ] } - - -- `title`: "... I will manually enter these" -- `provider`: "" -- `model`: "" -- `apiKey`: "" -- `apiBase`: "" -- `region`: "" -- `profile`: "" -- `modelArn`: "" -- `contextLength`: "" -- `maxStopWords`: "" -- `template`: "" -- `promptTemplates`: "" -- `completionOptions`: Same format as top-level `completionOptions` - model-specific options overwrite. -- `systemMessage`: "" -- `requestOptions`: Same format as top-level `requestOptions` - model-specific options overwrite. -- `apiType`: "" -- `apiVersion`: "" -- `engine`: "" -- `capabilities`: "" - -Example: - -```json -{ - "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`. +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. -### `experimental.defaultContext` +Example -Defines the default context for the LLM. Uses the same format as `contextProviders` but includes an additional `query` property to specify custom query parameters. +```json title="config.json" +{ + "tabAutocompleteModel": { + "title": "My Starcoder", + "provider": "ollama", + "model": "starcoder2:3b" + } +} +``` ### `tabAutocompleteOptions` @@ -186,6 +177,18 @@ Specifies options for tab autocompletion behavior. - `useOtherFiles`: If `true`, includes snippets from other files (default: `true`). - `disableInFiles`: Array of glob patterns for files where autocomplete is disabled. +Example + +```json title="config.json" +{ + "tabAutocompleteOptions": { + "debounceDelay": 500, + "maxPromptTokens": 1500, + "disableInFiles": ["*.md"] + } +} +``` + ### `embeddingsProvider` Configuration for the embeddings provider used for codebase embeddings. @@ -202,18 +205,42 @@ Configuration for the embeddings provider used for codebase embeddings. - `region`: Region where the model is hosted. - `profile`: AWS security profile. +Example + +```json title="config.json" +{ + "embeddingsProvider": { + "provider": "voyage", + "model": "voyage-code-2", + "apiKey": "" + } +} +``` + ### `reranker` -Configuration for the reranker used in response ranking. +Configuration for the reranker model used in response ranking. **Properties:** -- `name`: Reranker name (`"cohere"`, `"voyage"`, `"llm"`, `"free-trial"`, `"huggingface-tei"`). -- `params`: Additional parameters for reranking. +- `name` (**required**): Reranker name, e.g., `cohere`, `voyage`, `llm`, `free-trial`, `huggingface-tei` +- `params`: + - `model`: Model name + - `apiKey`: Api key -### `contextProviders` +Example -List of context providers for enriching LLM context. +```json title="config.json" +{ + "reranker": { + "name": "voyage", + "params": { + "model": "rerank-2", + "apiKey": "" + } + } +} +``` ### `docs` @@ -221,12 +248,25 @@ List of documentation sites to index. **Properties:** -- `title`: Title of the documentation site. -- `startUrl`: Starting URL for indexing. -- `rootUrl`: Optional root URL of the site. -- `maxDepth`: Maximum depth for crawling. +- `title` (**required**): Title of the documentation site, displayed in dropdowns, etc. +- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs +- `rootUrl`: Crawler will only index docs within this domain - pages that contain this URL +- `maxDepth`: Maximum depth for crawling. Default `3` - `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`). +Example + +```json title="config.json" +"docs": [ + { + "title": "Continue", + "startUrl": "https://docs.continue.dev/intro", + "rootUrl": "https://docs.continue.dev", + "faviconUrl": "https://docs.continue.dev/favicon.ico", + } +] +``` + ### `analytics` Configuration for analytics tracking. @@ -237,41 +277,247 @@ Configuration for analytics tracking. - `url`: URL for analytics data. - `clientKey`: Client key for analytics. -### `experimental.modelRoles` +### embeddingsProvider -Model roles used for various tasks. +Defines the provider and settings for codebase embeddings, allowing specific models to handle code embeddings. **Properties:** -- `inlineEdit`: Model title for inline edits. -- `applyCodeBlock`: Model title for applying code blocks. -- `repoMapFileSelection`: Model title for repo map selections. +- `provider` (**required**): Specifies the embeddings provider, with options including "transformers.js", "ollama", "openai", "cohere", "free-trial", "gemini", etc +- `model`: Model name for embeddings. +- `apiKey`: API key for the provider. +- `apiBase`: Base URL for API requests. +- `requestOptions`: Additional HTTP request settings specific to the embeddings provider. +- `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens. +- `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk. -### `experimental.promptPath` +(AWS ONLY) -Path for prompt configuration. +- `region`: Specifies the region hosting the model. +- `profile`: AWS security profile. -### `experimental.quickActions` +Example: -Array of custom quick actions for code lens. +```json title="config.json" +{ + "embeddingsProvider": { + "provider": "openai", + "model": "text-embedding-ada-002", + "apiKey": "", + "maxChunkSize": 256, + "maxBatchSize": 5 + } +} +``` + +### `slashCommands` + +Custom commands initiated by typing "/" in the sidebar. Commands include predefined functionality or may be user-defined. **Properties:** -- `title`: Display title for the quick action. -- `prompt`: Prompt for the quick action. -- `sendToChat`: If `true`, sends result to chat; otherwise, inserts it into the document (default: `false`). +- `name`: The command name. Options include "issue", "share", "cmd", "edit", "comment", "http", "commit", "review", or a custom name. +- `description`: Brief description of the command. +- `step`: (Deprecated) Used for built-in commands; set the name for pre-configured options. +- `params`: Additional parameters to configure command behavior (command-specific - see code for command) -### `experimental.contextMenuPrompts` +Example: -Predefined prompts for context menu actions. +```json title="config.json" +{ + "slashCommands": [ + { + "name": "commit", + "description": "Generate a commit message" + }, + { + "name": "comment", + "description": "Write comments for the selected code" + }, + { + "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:** -- `comment`: Prompt for commenting code. -- `docstring`: Prompt for adding docstrings. -- `fix`: Prompt for fixing code. -- `optimize`: Prompt for optimizing code. -- `fixGrammar`: Prompt for fixing grammar or spelling. +- `name`: The name of the custom command. +- `prompt`: Text prompt for the command. +- `description`: Brief description explaining the command's function. + +Example: + +```json title="config.json" +{ + "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:** + +- `name`: Name of the context provider, e.g. `docs` or `web` +- `params`: A context-provider-specific record of params to configure the context behavior + +Example + +```json title="config.json" +{ + "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:** + +- `codeBlockToolbarPosition`: Sets the toolbar position within code blocks, either "top" (default) or "bottom". +- `fontSize`: Specifies font size for UI elements. +- `displayRawMarkdown`: If true, shows raw markdown in responses. +- `showChatScrollbar`: If true, enables a scrollbar in the chat window. + +Example: + +```json title="config.json" +{ + "ui": { + "codeBlockToolbarPosition": "bottom", + "fontSize": 14, + "displayRawMarkdown": false + } +} +``` + +### `analytics` + +You can set up Continue to route analytics to your own provider. + +**Properties:** + +- `provider` (**required**): Specifies the analytics provider, options are "posthog" or "logstash" +- `url`: The URL where analytics data is sent +- `clientKey`: Key for identifying the client within analytics + +Example: + +```json title="config.json" +{ + "analytics": { + "provider": "posthog", + "url": "https://analytics.example.com", + "clientKey": "CLIENT_KEY" + } +} +``` + +### `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`: + +- `defaultContext`: Defines the default context for the LLM. Uses the same format as `contextProviders` but includes an additional `query` property to specify custom query parameters.= +- `modelRoles`: + - `inlineEdit`: Model title for inline edits. + - `applyCodeBlock`: Model title for applying code blocks. + - `repoMapFileSelection`: Model title for repo map selections. +- `readResponseTTS`: If true, reads LLM responses aloud with TTS. Default is true. +- `promptPath`: Change the path to custom prompt files from the default ".prompts" +- `quickActions`: Array of custom quick actions + - `title` (**required**): Display title for the quick action. + - `prompt` (**required**): Prompt for quick action. + - `sendToChat`: If true, sends result to chat; else inserts in document. Default is false. +- `contextMenuPrompts`: + - `comment`: Prompt for commenting code. + - `docstring`: Prompt for adding docstrings. + - `fix`: Prompt for fixing code. + - `optimize`: Prompt for optimizing code. + - `fixGrammar`: Prompt for fixing grammar or spelling. +- `useChromiumForDocsCrawling`: use chromium to crawl docs instead of default lighter-weight tool that can't render sites. Downloads and installs Chromium to `~/.continue/.utils`. + +Example + +```json title="config.json" +{ + "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 + } +} +``` ## `.continuerc.json` @@ -279,7 +525,7 @@ The format of `.continuerc.json` is the same as `config.json`, plus one _additio Example -```json +```json title="config.json" { "tabAutocompleteOptions": { "disable": true @@ -287,3 +533,30 @@ Example "mergeBehavior": "overwrite" } ``` + +## `config.ts` + +To programatically extend `config.json`, you can place a `config.ts` script in same directory as `config.json` and export a `modifyConfig` function, like: + +```ts title="config.ts" +export function modifyConfig(config: Config): Config { + config.slashCommands?.push({ + name: "commit", + description: "Write a commit message", + run: async function* (sdk) { + const diff = await sdk.ide.getDiff(); + for await (const message of sdk.llm.streamComplete( + `${diff}\n\nWrite a commit message for the above changes. Use no more than 20 tokens to give a brief description in the imperative mood (e.g. 'Add feature' not 'Added feature'):`, + { + maxTokens: 20, + }, + )) { + yield message; + } + }, + }); + return config; +} +``` + +This can be used for slash commands and custom context providers. diff --git a/docs/docs/customize/deep-dives/docs.md b/docs/docs/customize/deep-dives/docs.md index 99d3c054e..96604ca70 100644 --- a/docs/docs/customize/deep-dives/docs.md +++ b/docs/docs/customize/deep-dives/docs.md @@ -77,7 +77,7 @@ As with [@Codebase context provider configuration](https://docs.continue.dev/cus { "contextProviders": [ { - "name": "codebase", + "name": "docs", "params": { "nRetrieve": 25, "nFinal": 5, diff --git a/docs/docs/customize/model-types/embeddings.md b/docs/docs/customize/model-types/embeddings.md index 621c96af1..e30a63ac1 100644 --- a/docs/docs/customize/model-types/embeddings.md +++ b/docs/docs/customize/model-types/embeddings.md @@ -76,4 +76,8 @@ See [here](../model-providers/top-level/gemini.md#embeddings-model) for instruct ### Vertex -See [here](../model-providers/more/vertex.md#embeddings-model) for instructions on how to use Vertex for embeddings. +See the following for instructions on how to use Vertex for embeddings: + +- [Gemini with Vertex](../model-providers/more/gemini-vertexai.md) +- [Anthropic with Vertex](../model-providers/more/anthropic-vertexai.md) +- [Mistral with Vertex](../model-providers/more/mistral-vertexai.md) From d4c39f7366d9cd5c599a6618bcc5fd4c2c02ffcc Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Oct 2024 17:08:02 -0700 Subject: [PATCH 3/9] remove ts reference --- docs/docs/customize/config.ts | 199 ---------------------------------- 1 file changed, 199 deletions(-) delete mode 100644 docs/docs/customize/config.ts diff --git a/docs/docs/customize/config.ts b/docs/docs/customize/config.ts deleted file mode 100644 index ddc9b5328..000000000 --- a/docs/docs/customize/config.ts +++ /dev/null @@ -1,199 +0,0 @@ -interface BaseCompletionOptions { - stream?: boolean; // Whether to stream the LLM response. Only respected by the 'anthropic' provider. Defaults to true. - temperature?: number; // The temperature of the completion, controlling randomness. - topP?: number; // The top-p value, which controls the cumulative probability for nucleus sampling. - topK?: number; // The top-k value, which restricts sampling to the top k tokens. - presencePenalty?: number; // The presence penalty, influencing the likelihood of generating similar tokens. - frequencePenalty?: number; // The frequency penalty, affecting the likelihood of repeating tokens. - mirostat?: number; // Mirostat sampling option to control perplexity (0 = disabled, 1 = Mirostat, 2 = Mirostat 2.0). Only supported by Ollama, LM Studio, and llama.cpp providers. - stop?: string[]; // Array of stop tokens that wil dl terminate the completion. - maxTokens?: number; // The maximum number of tokens to generate. Defaults to 600. - numThreads?: number; // The number of threads used in the generation process. Only available for the Ollama provider. - keepAlive?: number; // The number of seconds to keep the model loaded after the last request. Defaults to 1800 seconds (30 minutes). -} - -interface RequestOptions { - timeout?: number; // Set the timeout for each request to the LLM. Default is 7200 seconds. - verifySsl?: boolean; // Whether to verify SSL certificates for requests. - caBundlePath?: string | string[]; // Path to a custom CA bundle for HTTP requests. - proxy?: string; // Proxy URL to use for HTTP requests. - headers?: Record; // Headers for HTTP requests. - extraBodyProperties?: Record; // Properties to merge with the HTTP request body. - noProxy?: string[]; // List of hostnames that should bypass the specified proxy. - clientCertificate?: { - cert: string; // Path to the client certificate file. - key: string; // Path to the client certificate key file. - passphrase?: string; // Passphrase for the client certificate key file, if required. - }; // Client certificate for HTTP requests. -} - -interface ModelDescription { - title: string; // Title for the model. - provider: - | "openai" - | "free-trial" - | "etc" // Provider of the model, used to determine model type and interaction method. - model: string; // Model name, used for prompt template auto-detection. - apiKey?: string; // API key for providers like OpenAI, Anthropic, Cohere, etc. - apiBase?: string; // Base URL of the LLM API. - region?: string; // Region where the model is hosted. - profile?: string; // AWS security profile. - modelArn?: string; // AWS ARN for the imported model. - contextLength?: number; // Maximum context length of the LLM in tokens. - maxStopWords?: number; // Maximum stop words accepted by the API. - template?: - | "llama2" - | "alpaca" - | "zephyr" - | "phi2" - | "phind" - | "anthropic" - | "chatml" - | "none" - | "deepseek" - | "openchat" - | "xwin-coder" - | "neural-chat" - | "codellama-70b" - | "llava" - | "gemma" - | "llama3"; // Chat template for message formatting, with auto-detection option. - promptTemplates?: Record; // Mapping of prompt template names to prompt strings. - completionOptions?: BaseCompletionOptions; // Options for the completion endpoint. - systemMessage?: string; // System message that will precede responses from the LLM. - requestOptions?: RequestOptions; // HTTP request options for the LLM. - apiType?: "openai" | "azure"; // API type (OpenAI or Azure). - apiVersion?: string; // Azure OpenAI API version (e.g., 2023-07-01-preview). - engine?: string; // Azure OpenAI engine. - capabilities?: { - uploadImage?: boolean; // Indicates if the model can upload images. - }; -} - -type ContextProviderName = "diff" | "terminal" | "debugger" | "open" | "google" | "search" | "http" | "codebase" | "problems" | "folder" | "issue" | "docs" | "tree" | "highlights" | "outline" | "postgres" | "code" | "currentFile" | "url" | "database" | "os" | "repo-map" | "greptile" | "web" | string - -interface ContextProviderWithParams { - name: ContextProviderName - params?: Record; // Parameters for the context provider. DEFAULT {} -} - -interface SerializedContinueConfig { - completionOptions?: BaseCompletionOptions; // Default completion options, overridden by model-specific options. - requestOptions?: RequestOptions; // Default HTTP request options for models and context providers. - models?: ModelDescription[]; // Model configurations, defaulting to GPT-4 (trial) with free-trial provider. - - systemMessage?: string; // System message preceding all LLM responses. - - // TAB AUTOCOMPLETE - - tabAutocompleteModel?: ModelDescription | ModelDescription[]; // Model for tab autocompletion, defaulting to Ollama instance. - - tabAutocompleteOptions?: { - disable?: boolean; // If true, disables tab autocomplete. Default is false. - useCopyBuffer?: boolean; // If true, includes the copy buffer in prompt. - useFileSuffix?: boolean; // If true, includes file suffix in prompt. - maxPromptTokens?: number; // Max tokens for prompt. - debounceDelay?: number; // Delay in ms before triggering autocomplete. - maxSuffixPercentage?: number; // Max percentage of prompt for suffix. - prefixPercentage?: number; // Percentage of input for prefix. - template?: string; // Template string for autocomplete, using Mustache templating. - multilineCompletions?: "always" | "never" | "auto"; // Controls multiline completions. - useCache?: boolean; // If true, caches completions. - onlyMyCode?: boolean; // If true, only includes code within repository. - useOtherFiles?: boolean; // If true, includes snippets from other files. Default is true. - disableInFiles?: string[]; // Glob patterns for files where autocomplete is disabled. - }; - - // EMBEDDINGS - disableIndexing?: boolean; // If true, prevents codebase indexing, mainly for debugging. - embeddingsProvider?: { - provider: "huggingface-tei" | "transformers.js" | "ollama" | "openai" | "cohere" | "free-trial" | "gemini" | "voyage" | "nvidia" | "bedrock" | "sagemaker" | "vertex"; // Embeddings provider for codebase embeddings. - model?: string; // Model name for embeddings. - apiKey?: string; // API key for the provider. - apiBase?: string; // Base URL for API requests. - requestOptions?: RequestOptions; // Request options for embeddings provider. - maxChunkSize?: number; // Max tokens per document chunk, min 128. - maxBatchSize?: number; // Max chunks per request, min 1. - region?: string; // Region where the model is hosted. - profile?: string; // AWS security profile. - }; - - - // RERANKING - reranker?: { - name: "cohere" | "voyage" | "llm" | "free-trial" | "huggingface-tei"; // Reranker name. - params?: Record; // Additional parameters for reranking. - }; - - // COMMANDS - slashCommands?: { - name: "issue" | "share" | "cmd" | "edit" | "comment" | "http" | "commit" | "review" | string; // Slash command name. - description: string; // Description of the command. - step?: string; // Deprecated. Used for built-in commands; set name for pre-configured options. - params?: Record; // Additional parameters for the command. - }; // Custom slash commands for sidebar actions. - customCommands?: { - name: string; // Name of the custom command. - prompt: string; // Prompt for the command. - description: string; // Description of the command. - }[]; // Custom commands for prompt shortcuts, with name, description, and prompt. - - // CONTEXT_PROVIDERS - contextProviders?: ContextProviderWithParams[]; // List of context providers for LLM context. - - // DOCS - docs?: { - title: string; // Title of the documentation site. - startUrl: string; // Starting URL for indexing. - rootUrl?: string; // Root URL of the site. - maxDepth?: number; // Maximum depth for crawling. - favicon?: string; // URL for site favicon, defaults to /favicon.ico from startUrl. - }[]; // List of documentation sites to index. - - // UI - disableSessionTitles?: boolean; // If true, prevents generating session summary titles. - - ui?: { - codeBlockToolbarPosition?: "top" | "bottom"; // Toolbar position in code blocks, default is "top". - fontSize?: number; // Font size for UI elements. - displayRawMarkdown?: boolean; // If true, displays raw markdown in output. - showChatScrollbar?: boolean; // If true, displays scrollbar in chat window. - }; - - // ANALYTICS - allowAnonymousTelemetry?: boolean; // If true, anonymous telemetry is collected. Default is true. - - analytics?: { - provider: "posthog" | "logstash"; // Analytics provider. - url?: string; // URL for analytics data. - clientKey?: string; // Client key for analytics. - }; - - // AUTH - userToken?: string; // Optional token to identify the user. - - // EXPERIMENTAL - experimental?: { - defaultContext?: (ContextProviderWithParams & { query?: string })[]; // Default context for the LLM. - modelRoles?: { - inlineEdit?: string; // Model title for inline edits. - applyCodeBlock?: string; // Model title for applying code blocks. - repoMapFileSelection?: string; // Model title for repo map selections. - }; - readResponseTTS?: boolean; // If true, reads LLM responses aloud with TTS. Default is true. - promptPath?: string; // Path for prompt configuration. - quickActions?: { - title: string; // Display title for the quick action. - prompt: string; // Prompt for quick action. - sendToChat?: boolean; // If true, sends result to chat; else inserts in document. Default is false. - }[]; // Array of custom quick actions for code lens. - - contextMenuPrompts?: { - comment?: string; // Prompt for commenting code. - docstring?: string; // Prompt for adding docstrings. - fix?: string; // Prompt for fixing code. - optimize?: string; // Prompt for optimizing code. - fixGrammar?: string; // Prompt for fixing grammar or spelling. - }; - }; -} From 4f9ee626a736336278c7bf71ba41f26b4a62e901 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Oct 2024 17:27:13 -0700 Subject: [PATCH 4/9] title and minor docs changes --- docs/docs/customize/config.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/docs/customize/config.md b/docs/docs/customize/config.md index f302f1d0d..2e515fdac 100644 --- a/docs/docs/customize/config.md +++ b/docs/docs/customize/config.md @@ -1,11 +1,11 @@ --- -title: Continue Configuration -description: Continue configuration files +title: Configuration +description: Continue configuration keywords: [config, config_schema.json, json] sidebar_position: 2 --- -# Continue Config +# Continue Configuration Continue can be deeply customized. User-level configuration is stored and can be edited in your home directory in [`config.json`](#configjson): @@ -406,7 +406,7 @@ Example ### `disableSessionTitles` -Prevents generating summary titles for each chat session when set to true. +Prevents generating summary titles for each chat session when set to `true`. ### `ui` @@ -414,10 +414,10 @@ Customizable UI settings to control interface appearance and behavior. **Properties:** -- `codeBlockToolbarPosition`: Sets the toolbar position within code blocks, either "top" (default) or "bottom". +- `codeBlockToolbarPosition`: Sets the toolbar position within code blocks, either `top` (default) or `bottom`. - `fontSize`: Specifies font size for UI elements. -- `displayRawMarkdown`: If true, shows raw markdown in responses. -- `showChatScrollbar`: If true, enables a scrollbar in the chat window. +- `displayRawMarkdown`: If `true`, shows raw markdown in responses. +- `showChatScrollbar`: If `true`, enables a scrollbar in the chat window. Example: @@ -480,12 +480,12 @@ Several experimental config parameters are available, as described below: - `inlineEdit`: Model title for inline edits. - `applyCodeBlock`: Model title for applying code blocks. - `repoMapFileSelection`: Model title for repo map selections. -- `readResponseTTS`: If true, reads LLM responses aloud with TTS. Default is true. +- `readResponseTTS`: If `true`, reads LLM responses aloud with TTS. Default is `true`. - `promptPath`: Change the path to custom prompt files from the default ".prompts" - `quickActions`: Array of custom quick actions - `title` (**required**): Display title for the quick action. - `prompt` (**required**): Prompt for quick action. - - `sendToChat`: If true, sends result to chat; else inserts in document. Default is false. + - `sendToChat`: If `true`, sends result to chat; else inserts in document. Default is `false`. - `contextMenuPrompts`: - `comment`: Prompt for commenting code. - `docstring`: Prompt for adding docstrings. From ee9df981f4851ab238ac1100b8b7912a2f786df9 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Oct 2024 17:29:35 -0700 Subject: [PATCH 5/9] remove duplicate embededingsprovider --- docs/docs/customize/config.md | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/docs/docs/customize/config.md b/docs/docs/customize/config.md index 2e515fdac..68aa955e3 100644 --- a/docs/docs/customize/config.md +++ b/docs/docs/customize/config.md @@ -189,34 +189,6 @@ Example } ``` -### `embeddingsProvider` - -Configuration for the embeddings provider used for codebase embeddings. - -**Properties:** - -- `provider`: The embeddings provider (`"huggingface-tei"`, `"transformers.js"`, `"ollama"`, `"openai"`, `"cohere"`, `"free-trial"`, `"gemini"`, `"voyage"`, `"nvidia"`, `"bedrock"`, `"sagemaker"`, `"vertex"`). -- `model`: Model name for embeddings. -- `apiKey`: API key for the provider. -- `apiBase`: Base URL for API requests. -- `requestOptions`: Same format as `requestOptions` for embeddings provider. -- `maxChunkSize`: Maximum tokens per document chunk (minimum: 128). -- `maxBatchSize`: Maximum chunks per request (minimum: 1). -- `region`: Region where the model is hosted. -- `profile`: AWS security profile. - -Example - -```json title="config.json" -{ - "embeddingsProvider": { - "provider": "voyage", - "model": "voyage-code-2", - "apiKey": "" - } -} -``` - ### `reranker` Configuration for the reranker model used in response ranking. @@ -277,13 +249,13 @@ Configuration for analytics tracking. - `url`: URL for analytics data. - `clientKey`: Client key for analytics. -### embeddingsProvider +### `embeddingsProvider` -Defines the provider and settings for codebase embeddings, allowing specific models to handle code embeddings. +Embeddings model settings - the model used for @Codebase and @docs. **Properties:** -- `provider` (**required**): Specifies the embeddings provider, with options including "transformers.js", "ollama", "openai", "cohere", "free-trial", "gemini", etc +- `provider` (**required**): Specifies the embeddings provider, with options including `transformers.js`, `ollama`, `openai`, `cohere`, `free-trial`, `gemini`, etc - `model`: Model name for embeddings. - `apiKey`: API key for the provider. - `apiBase`: Base URL for API requests. From ad6b1c80893a69df180d7c827ea395f9a4f8fe54 Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 29 Oct 2024 20:29:41 -0700 Subject: [PATCH 6/9] docs: updated to 'references' --- docs/docs/actions/how-to-customize.md | 2 +- docs/docs/autocomplete/how-to-customize.md | 2 +- docs/docs/chat/model-setup.mdx | 2 +- docs/docs/edit/model-setup.md | 2 +- docs/docs/{customize/config.md => reference.md} | 9 +++------ docs/docusaurus.config.js | 9 ++++++++- docs/sidebars.js | 1 - 7 files changed, 15 insertions(+), 12 deletions(-) rename docs/docs/{customize/config.md => reference.md} (99%) diff --git a/docs/docs/actions/how-to-customize.md b/docs/docs/actions/how-to-customize.md index ae3c324db..4b277c8b1 100644 --- a/docs/docs/actions/how-to-customize.md +++ b/docs/docs/actions/how-to-customize.md @@ -7,7 +7,7 @@ sidebar_position: 5 ## Built-in slash commands -Continue has a large library of built-in slash commands, but when you first install we only display the most commonly used ones, like “/edit”, “/comment”, and “/share”. To add more actions, you can open [config.json](../customize/config.md) and add them to the `slashCommands` array. +Continue has a large library of built-in slash commands, but when you first install we only display the most commonly used ones, like “/edit”, “/comment”, and “/share”. To add more actions, you can open [config.json](../reference.md) and add them to the `slashCommands` array. ## Custom slash commands diff --git a/docs/docs/autocomplete/how-to-customize.md b/docs/docs/autocomplete/how-to-customize.md index 4be8303d8..dcf6ba234 100644 --- a/docs/docs/autocomplete/how-to-customize.md +++ b/docs/docs/autocomplete/how-to-customize.md @@ -5,7 +5,7 @@ keywords: [customize] sidebar_position: 5 --- -Continue offers a handful of parameters in [`config.json`](../customize/config.md) that can be tuned to find the perfect balance between suggestion quality and system performance for your specific needs and hardware capabilities: +Continue offers a handful of parameters in [`config.json`](../reference.md) that can be tuned to find the perfect balance between suggestion quality and system performance for your specific needs and hardware capabilities: ```json title="config.json" "tabAutocompleteOptions": { diff --git a/docs/docs/chat/model-setup.mdx b/docs/docs/chat/model-setup.mdx index 92ac1ea59..6e9dbcf22 100644 --- a/docs/docs/chat/model-setup.mdx +++ b/docs/docs/chat/model-setup.mdx @@ -9,7 +9,7 @@ import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; :::info -This page recommends models and providers for Chat. Read more about how to set up your `config.json` [here](../customize/config.md). +This page recommends models and providers for Chat. Read more about how to set up your `config.json` [here](../reference.md). ::: ## Best overall experience diff --git a/docs/docs/edit/model-setup.md b/docs/docs/edit/model-setup.md index 80965c085..ded10c2a4 100644 --- a/docs/docs/edit/model-setup.md +++ b/docs/docs/edit/model-setup.md @@ -7,4 +7,4 @@ keywords: [edit, cmd l, model] By default, Edit uses the [same model as Chat](chat/model-setup.mdx) since we recommend a similar, 400B+ parameter model or one of the frontier model for code edits. -You can configure a different model to be used for edits by updating your [`config.json`](../customize/config.md). +You can configure a different model to be used for edits by updating your [`config.json`](../reference.md). diff --git a/docs/docs/customize/config.md b/docs/docs/reference.md similarity index 99% rename from docs/docs/customize/config.md rename to docs/docs/reference.md index 68aa955e3..6468eb85f 100644 --- a/docs/docs/customize/config.md +++ b/docs/docs/reference.md @@ -1,12 +1,9 @@ --- -title: Configuration -description: Continue configuration +title: Reference +description: Reference for the Continue _config.json_ configuration file keywords: [config, config_schema.json, json] -sidebar_position: 2 --- -# Continue Configuration - Continue can be deeply customized. User-level configuration is stored and can be edited in your home directory in [`config.json`](#configjson): - `~/.continue/config.json` (MacOS / Linux) @@ -464,7 +461,7 @@ Several experimental config parameters are available, as described below: - `fix`: Prompt for fixing code. - `optimize`: Prompt for optimizing code. - `fixGrammar`: Prompt for fixing grammar or spelling. -- `useChromiumForDocsCrawling`: use chromium to crawl docs instead of default lighter-weight tool that can't render sites. Downloads and installs Chromium to `~/.continue/.utils`. +- `useChromiumForDocsCrawling`: Use chromium to crawl docs instead of default lighter-weight tool that can't render sites. Downloads and installs Chromium to `~/.continue/.utils`. Example diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 2b4c39510..b4e5b7278 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -91,6 +91,13 @@ const config = { label: "Customize", href: "/customize/overview", }, + { + type: "docSidebar", + sidebarId: "customizingSidebar", + position: "left", + label: "Reference", + href: "/reference", + }, { to: "https://github.com/continuedev/continue", label: "GitHub", @@ -230,7 +237,7 @@ const config = { from: "/changelog", }, { - to: "/customize/config", + to: "/reference", from: ["/customization/code-config", "/reference/config"], }, { diff --git a/docs/sidebars.js b/docs/sidebars.js index 755d7f720..10db5727d 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -131,7 +131,6 @@ const sidebars = { }, ], }, - "customize/config", "customize/changelog", ], }; From 430cb916a200c3eaee7157011f1acb752104264c Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 29 Oct 2024 21:50:28 -0700 Subject: [PATCH 7/9] tweaks --- docs/docs/reference.md | 26 ++------------------------ extensions/vscode/config_schema.json | 19 +++---------------- 2 files changed, 5 insertions(+), 40 deletions(-) diff --git a/docs/docs/reference.md b/docs/docs/reference.md index 6468eb85f..51c29cc6e 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -40,7 +40,7 @@ Parameters that control the behavior of text generation and completion settings. - `frequencePenalty`: Penalizes tokens based on their frequency in the text, reducing repetition. - `mirostat`: Enables Mirostat sampling, which controls the perplexity during text generation. Supported by Ollama, LM Studio, and llama.cpp providers (default: `0`, where `0` = disabled, `1` = Mirostat, and `2` = Mirostat 2.0). - `stop`: An array of stop tokens that, when encountered, will terminate the completion. Allows specifying multiple end conditions. -- `maxTokens`: The maximum number of tokens to generate in a completion (default: `600`). +- `maxTokens`: The maximum number of tokens to generate in a completion (default: `2048`). - `numThreads`: The number of threads used during the generation process. Available only for Ollama as `num_thread`. - `keepAlive`: For Ollama, this parameter sets the number of seconds to keep the model loaded after the last request, unloading it from memory if inactive (default: `1800` seconds, or 30 minutes). @@ -285,7 +285,7 @@ Custom commands initiated by typing "/" in the sidebar. Commands include predefi **Properties:** -- `name`: The command name. Options include "issue", "share", "cmd", "edit", "comment", "http", "commit", "review", or a custom name. +- `name`: The command name. Options include "issue", "share", "cmd", "edit", "comment", "http", "commit", and "review". - `description`: Brief description of the command. - `step`: (Deprecated) Used for built-in commands; set the name for pre-configured options. - `params`: Additional parameters to configure command behavior (command-specific - see code for command) @@ -400,28 +400,6 @@ Example: } ``` -### `analytics` - -You can set up Continue to route analytics to your own provider. - -**Properties:** - -- `provider` (**required**): Specifies the analytics provider, options are "posthog" or "logstash" -- `url`: The URL where analytics data is sent -- `clientKey`: Key for identifying the client within analytics - -Example: - -```json title="config.json" -{ - "analytics": { - "provider": "posthog", - "url": "https://analytics.example.com", - "clientKey": "CLIENT_KEY" - } -} -``` - ### `allowAnonymousTelemetry` When `true`, anonymous usage data is collected using Posthog, to improve features. Default is `true`. diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 945d0277f..9ffe9dfb1 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -368,7 +368,7 @@ "presencePenalty": null, "frequencyPenalty": null, "stop": null, - "maxTokens": 600 + "maxTokens": 2048 }, "allOf": [ { @@ -2851,12 +2851,11 @@ "properties": { "provider": { "type": "string", - "enum": ["posthog", "logstash"], + "enum": ["posthog"], "description": "The 3rd party analytics provider to use.", "default": "posthog", "markdownEnumDescriptions": [ - "### Posthog\nTo use Posthog, set up an account, obtain your client key, and enter it in the client key field.", - "### Logstash\nContinue's Logstash integration uses the TCP input at the specified URL" + "### Posthog\nTo use Posthog, set up an account, obtain your client key, and enter it in the client key field." ] }, "url": { @@ -2881,18 +2880,6 @@ "then": { "required": ["clientKey"] } - }, - { - "if": { - "properties": { - "provider": { - "enum": ["logstash"] - } - } - }, - "then": { - "required": ["url"] - } } ] }, From a6a0acdf6cda20ada75a16d083d79981c5ca9038 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 29 Oct 2024 21:55:30 -0700 Subject: [PATCH 8/9] move top-level description to "ways to configure" page --- .../customize/deep-dives/ways-to-configure.md | 68 +++++++++++++++++++ docs/docs/reference.md | 60 ---------------- 2 files changed, 68 insertions(+), 60 deletions(-) create mode 100644 docs/docs/customize/deep-dives/ways-to-configure.md diff --git a/docs/docs/customize/deep-dives/ways-to-configure.md b/docs/docs/customize/deep-dives/ways-to-configure.md new file mode 100644 index 000000000..94743325c --- /dev/null +++ b/docs/docs/customize/deep-dives/ways-to-configure.md @@ -0,0 +1,68 @@ +--- +description: Ways to configure +keywords: [config, settings, customize] +--- + +# Ways to configure + +Continue can be deeply customized. User-level configuration is stored and can be edited in your home directory in [`config.json`](#configjson): + +- `~/.continue/config.json` (MacOS / Linux) +- `%USERPROFILE%\.continue\config.json` (Windows) + +To open `config.json`, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options through IntelliSense as you type, or check the reference below. + +When you save `config.json`, Continue will automatically refresh to take into account your changes. `config.json` is automatically created the first time you use Continue. `config.json` is automatically generated if it doesn't exist. + +In the vast majority of cases, you will only need to edit `config.json`. However, Continue offers two additional ways to customize configuration: + +- [`.continuerc.json`](#continuercjson) - Workspace-level configuration. If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. This can be set to merge with _or_ override the user-level `config.json` +- [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema: + - `~/.continue/config.ts` (MacOS / Linux) + - `%USERPROFILE%\.continue\config.ts` (Windows) + +## `config.json` + +See the full reference for `config.json` [here](../../reference.md). + +## `.continuerc.json` + +The format of `.continuerc.json` is the same as `config.json`, plus one _additional_ property `mergeBehavior`, which can be set to either "merge" or "overwrite". If set to "merge" (the default), `.continuerc.json` will be applied on top of `config.json` (arrays and objects are merged). If set to "overwrite", then every top-level property of `.continuerc.json` will overwrite that property from `config.json`. + +Example + +```json title="config.json" +{ + "tabAutocompleteOptions": { + "disable": true + }, + "mergeBehavior": "overwrite" +} +``` + +## `config.ts` + +To programatically extend `config.json`, you can place a `config.ts` script in same directory as `config.json` and export a `modifyConfig` function, like: + +```ts title="config.ts" +export function modifyConfig(config: Config): Config { + config.slashCommands?.push({ + name: "commit", + description: "Write a commit message", + run: async function* (sdk) { + const diff = await sdk.ide.getDiff(); + for await (const message of sdk.llm.streamComplete( + `${diff}\n\nWrite a commit message for the above changes. Use no more than 20 tokens to give a brief description in the imperative mood (e.g. 'Add feature' not 'Added feature'):`, + { + maxTokens: 20, + }, + )) { + yield message; + } + }, + }); + return config; +} +``` + +This can be used for slash commands and custom context providers. diff --git a/docs/docs/reference.md b/docs/docs/reference.md index 51c29cc6e..7bb6ddc79 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -4,24 +4,6 @@ description: Reference for the Continue _config.json_ configuration file keywords: [config, config_schema.json, json] --- -Continue can be deeply customized. User-level configuration is stored and can be edited in your home directory in [`config.json`](#configjson): - -- `~/.continue/config.json` (MacOS / Linux) -- `%USERPROFILE%\.continue\config.json` (Windows) - -To open `config.json`, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options through IntelliSense as you type, or check the reference below. - -When you save `config.json`, Continue will automatically refresh to take into account your changes. `config.json` is automatically created the first time you use Continue. `config.json` is automatically generated if it doesn't exist. - -In the vast majority of cases, you will only need to edit `config.json`. However, Continue offers two additional ways to customize configuration: - -- [`.continuerc.json`](#continuercjson) - Workspace-level configuration. If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. This can be set to merge with _or_ override the user-level `config.json` -- [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema: - - `~/.continue/config.ts` (MacOS / Linux) - - `%USERPROFILE%\.continue\config.ts` (Windows) - -## `config.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`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json). **All properties at all levels are optional unless explicitly marked required** @@ -465,45 +447,3 @@ Example } } ``` - -## `.continuerc.json` - -The format of `.continuerc.json` is the same as `config.json`, plus one _additional_ property `mergeBehavior`, which can be set to either "merge" or "overwrite". If set to "merge" (the default), `.continuerc.json` will be applied on top of `config.json` (arrays and objects are merged). If set to "overwrite", then every top-level property of `.continuerc.json` will overwrite that property from `config.json`. - -Example - -```json title="config.json" -{ - "tabAutocompleteOptions": { - "disable": true - }, - "mergeBehavior": "overwrite" -} -``` - -## `config.ts` - -To programatically extend `config.json`, you can place a `config.ts` script in same directory as `config.json` and export a `modifyConfig` function, like: - -```ts title="config.ts" -export function modifyConfig(config: Config): Config { - config.slashCommands?.push({ - name: "commit", - description: "Write a commit message", - run: async function* (sdk) { - const diff = await sdk.ide.getDiff(); - for await (const message of sdk.llm.streamComplete( - `${diff}\n\nWrite a commit message for the above changes. Use no more than 20 tokens to give a brief description in the imperative mood (e.g. 'Add feature' not 'Added feature'):`, - { - maxTokens: 20, - }, - )) { - yield message; - } - }, - }); - return config; -} -``` - -This can be used for slash commands and custom context providers. From 4c4902bc06586a8640df4a51d6070218129cfdf3 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 31 Oct 2024 00:58:45 -0700 Subject: [PATCH 9/9] bit more docs cleanup --- docs/docs/actions/how-to-customize.md | 2 +- docs/docs/customize/deep-dives/autocomplete.md | 2 +- docs/docs/customize/deep-dives/ways-to-configure.md | 2 +- docs/docs/customize/overview.md | 4 ++-- docs/docs/reference.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/actions/how-to-customize.md b/docs/docs/actions/how-to-customize.md index 4b277c8b1..01cf2d064 100644 --- a/docs/docs/actions/how-to-customize.md +++ b/docs/docs/actions/how-to-customize.md @@ -20,7 +20,7 @@ There are two ways to add custom slash commands: If you want to go a step further than writing custom commands with natural language, you can write a custom function that returns the response. This requires using `config.ts` instead of `config.json`. diff --git a/docs/docs/customize/deep-dives/autocomplete.md b/docs/docs/customize/deep-dives/autocomplete.md index b3ef445d9..f945d79d4 100644 --- a/docs/docs/customize/deep-dives/autocomplete.md +++ b/docs/docs/customize/deep-dives/autocomplete.md @@ -44,7 +44,7 @@ All of the configuration options available for chat models are available to use } ``` -If you aren't yet familiar with the available options, you can find the full reference [here](../config.md). +If you aren't yet familiar with the available options, you can find the full reference [here](./ways-to-configure.md). ## Configuration Options diff --git a/docs/docs/customize/deep-dives/ways-to-configure.md b/docs/docs/customize/deep-dives/ways-to-configure.md index 94743325c..d67b92147 100644 --- a/docs/docs/customize/deep-dives/ways-to-configure.md +++ b/docs/docs/customize/deep-dives/ways-to-configure.md @@ -10,7 +10,7 @@ Continue can be deeply customized. User-level configuration is stored and can be - `~/.continue/config.json` (MacOS / Linux) - `%USERPROFILE%\.continue\config.json` (Windows) -To open `config.json`, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options through IntelliSense as you type, or check the reference below. +To open `config.json`, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options suggested as you type, or check the reference below. When you save `config.json`, Continue will automatically refresh to take into account your changes. `config.json` is automatically created the first time you use Continue. `config.json` is automatically generated if it doesn't exist. diff --git a/docs/docs/customize/overview.md b/docs/docs/customize/overview.md index 9ff77e2ca..4f231d55c 100644 --- a/docs/docs/customize/overview.md +++ b/docs/docs/customize/overview.md @@ -8,13 +8,13 @@ Continue can be deeply customized. This is primarily accomplished by editing a l ## Getting started -To open `config.json`, click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can use IntelliSense to see the available options as you type, or you can check the [full reference](./config.md). +To open `config.json`, click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options suggested as you type, or you can check the [full reference](./deep-dives/ways-to-configure.md). When you save `config.json`, Continue will automatically refresh to take into account your changes. ## Per-workspace configuration -If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. It has the same [definition](./config.md) as `config.json`, and will automatically be applied on top of the local config.json. +If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. It has the same [definition](./deep-dives/ways-to-configure.md) as `config.json`, and will automatically be applied on top of the local config.json. ## Programmatic configuration diff --git a/docs/docs/reference.md b/docs/docs/reference.md index 7bb6ddc79..53ceeb44d 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -71,7 +71,7 @@ Example ### `models` Your **chat** models are defined here, which are used for [Chat](../chat/how-to-use-it.md), [Edit](../edit/how-to-use-it.md), and [Actions](../actions/how-to-use-it.md). -Each model has specific configuration options tailored to its provider and functionality, which can be seen with Intellisense. +Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json. **Properties:**