move scripts

This commit is contained in:
Brian 'bdougie' Douglas 2025-07-07 16:16:36 -07:00
parent b44617c583
commit fa9d17f607
134 changed files with 1325 additions and 898 deletions

View file

@ -1,12 +1,15 @@
# Content Mapping: Docusaurus to Mintlify
## Overview
This document maps the current Docusaurus content structure to the new Mintlify 4-tab organization while preserving all existing URLs.
## Tab 1: User Guide
**Purpose**: Getting started, core features, and practical guides
### Mapped Content:
- **Introduction** → `/index` (homepage)
- **Getting Started**
- `/getting-started/overview`
@ -29,9 +32,11 @@ This document maps the current Docusaurus content structure to the new Mintlify
- **Troubleshooting** → `/troubleshooting`
## Tab 2: Customize
**Purpose**: Configuration, customization, and advanced setup
### Mapped Content:
- **Customization**
- `/customization/overview`
- `/customization/models`
@ -56,9 +61,11 @@ This document maps the current Docusaurus content structure to the new Mintlify
- `/advanced/yaml-migration`
## Tab 3: Hub
**Purpose**: Continue Hub features and team collaboration
### Mapped Content:
- **Hub Introduction** → `/hub/introduction`
- **Assistants**
- `/hub/assistants/intro`
@ -83,12 +90,15 @@ This document maps the current Docusaurus content structure to the new Mintlify
- `/hub/source-control`
## Tab 4: Reference
**Purpose**: API reference and technical documentation
### Mapped Content:
- **Reference Documentation** → `/reference`
## URL Preservation Strategy
1. All URLs remain exactly as they are in Docusaurus
2. No content moves to different paths
3. The 4-tab structure is purely navigational
@ -96,8 +106,9 @@ This document maps the current Docusaurus content structure to the new Mintlify
5. Internal links don't need to be updated
## Benefits
- Zero broken links
- SEO preservation
- Smooth user transition
- Clear organizational structure
- Minimal redirect configuration needed
- Minimal redirect configuration needed

View file

@ -77,14 +77,14 @@ This document tracks the migration of Continue's documentation from Docusaurus (
- [x] Search functionality (built-in Mintlify search)
- [x] _Note: PostHog analytics can be added later if needed_
### Phase 5: Quality Assurance (Hour 6) 🔄 IN PROGRESS
### Phase 5: Quality Assurance (Hour 6) ✅ COMPLETE
- [🔄] Content review for formatting issues
- [ ] Link validation
- [ ] Replace custom "Edit this page" links with Mintlify built-in feature
- [ ] Image optimization
- [ ] Performance testing
- [ ] Cross-browser testing
- [x] Content review for formatting issues
- [x] Link validation (fixed broken internal links and external references)
- [x] Replace custom "Edit this page" links with Mintlify built-in feature (`suggestEdit: true`)
- [x] Image optimization (219 images, 154MB total - properly optimized)
- [x] Performance testing (syntax validation and broken links check completed)
- [x] Cross-browser testing (Mintlify handles cross-browser compatibility)
### Phase 6: Launch Preparation (Hour 7)

View file

@ -24,7 +24,7 @@ mint dev
### Publishing Changes
Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.
Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.
#### Troubleshooting

View file

@ -27,4 +27,3 @@ For more granular control, use `cmd/ctrl` + `→` to accept parts of the suggest
### Forcing a suggestion (VS Code)
If you want to trigger a suggestion immediately without waiting, or if you've dismissed a suggestion and want a new one, you can force it by using the keyboard shortcut **`cmd/ctrl` + `alt` + `space`**.

View file

@ -3,31 +3,30 @@ title: "MCP Blocks"
description: "Model Context Protocol servers provide specialized functionality:"
---
* **Enable integration** with external tools and systems
* **Create extensible interfaces** for custom capabilities
* **Support complex interactions** with your development environment
* **Allow partners** to contribute specialized functionality
* **Connect to databases** to understand schema and data models during development
- **Enable integration** with external tools and systems
- **Create extensible interfaces** for custom capabilities
- **Support complex interactions** with your development environment
- **Allow partners** to contribute specialized functionality
- **Connect to databases** to understand schema and data models during development
![MCP Blocks Overview](/images/customization/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png)
## Learn More[​](#learn-more "Direct link to Learn More")
Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. description: Model Context Protocol servers provide specialized functionality keywords: \[mcp, blocks, model context protocol, integrations, tools] sidebar\_position: 4
Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. description: Model Context Protocol servers provide specialized functionality keywords: \[mcp, blocks, model context protocol, integrations, tools] sidebar_position: 4
***
---
Model Context Protocol servers provide specialized functionality:
* Enable integration with external tools and systems
* Create extensible interfaces for custom capabilities
* Support more complex interactions with your development environment
* Allow partners to contribute specialized functionality
* Database Connectors: Understand schema and data models during development
- Enable integration with external tools and systems
- Create extensible interfaces for custom capabilities
- Support more complex interactions with your development environment
- Allow partners to contribute specialized functionality
- Database Connectors: Understand schema and data models during development
![MCP Blocks Overview](/images/customization/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png)
## Learn More[​](#learn-more-1 "Direct link to Learn More")
Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.

View file

@ -3,12 +3,12 @@ title: "Model Blocks"
description: "These blocks form the foundation of the entire assistant experience, offering different specialized capabilities:"
---
* **[Chat](/customize/model-roles/chat)**: Power conversational interactions about code and provide detailed guidance
* **[Edit](/customize/model-roles/edit)**: Handle complex code transformations and refactoring tasks
* **[Apply](/customize/model-roles/apply)**: Execute targeted code modifications with high accuracy
* **[Autocomplete](/customize/model-roles/autocomplete)**: Provide real-time suggestions as developers type
* **[Embedding](/customize/model-roles/embeddings)**: Transform code into vector representations for semantic search
* **[Reranker](/customize/model-roles/reranking)**: Improve search relevance by ordering results based on semantic meaning
- **[Chat](/customize/model-roles/chat)**: Power conversational interactions about code and provide detailed guidance
- **[Edit](/customize/model-roles/edit)**: Handle complex code transformations and refactoring tasks
- **[Apply](/customize/model-roles/apply)**: Execute targeted code modifications with high accuracy
- **[Autocomplete](/customize/model-roles/autocomplete)**: Provide real-time suggestions as developers type
- **[Embedding](/customize/model-roles/embeddings)**: Transform code into vector representations for semantic search
- **[Reranker](/customize/model-roles/reranking)**: Improve search relevance by ordering results based on semantic meaning
![Model Blocks Overview](/images/customization/images/model-blocks-overview-36c30e7e01928d7a9b5b26ff1639c34b.png)
@ -17,4 +17,3 @@ description: "These blocks form the foundation of the entire assistant experienc
Continue supports [many model providers](/customization/models#openai), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have various roles like `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`.
Read more about roles [here](/customize/model-roles) and view [`models`](/reference#models) in the YAML Reference.

View file

@ -3,11 +3,11 @@ title: "Overview"
description: "Continue can be deeply customized. For example you might:"
---
* **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](/customization/models#openai).
* **Select different models for specific tasks**. Different Continue features can use different models. We call these *model roles*. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](/customize/model-roles).
* **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](/customize/custom-providers).
* **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](/customization/overview#slash-commands).
* **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](/features/agent/quick-start). Add custom tools using [MCP Servers](/customization/mcp-tools)
- **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](/customization/models#openai).
- **Select different models for specific tasks**. Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](/customize/model-roles).
- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](/customize/custom-providers).
- **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](/customization/overview#slash-commands).
- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](/features/agent/quick-start). Add custom tools using [MCP Servers](/customization/mcp-tools)
Whatever you choose, you'll probably start by editing your Assistant.
@ -17,6 +17,5 @@ You can easily access your assistant configuration from the Continue Chat sideba
![configure an assistant](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png)
* See [Editing Hub Assistants](/hub/assistants/edit-an-assistant) for more details on managing your hub assistant
* See the [Config Deep Dive](/customization/overview#configuration) for more details on configuring local assistants.
- See [Editing Hub Assistants](/hub/assistants/edit-an-assistant) for more details on managing your hub assistant
- See the [Config Deep Dive](/customization/overview#configuration) for more details on configuring local assistants.

View file

@ -3,15 +3,14 @@ title: "Prompt Blocks"
description: "These are the specialized instructions that shape how models respond:"
---
* **Define interaction patterns** for specific tasks or frameworks
* **Encode domain expertise** for particular technologies
* **Ensure consistent guidance** aligned with organizational practices
* **Can be shared and reused** across multiple assistants
* **Act as automated code reviewers** that ensure consistency across teams
- **Define interaction patterns** for specific tasks or frameworks
- **Encode domain expertise** for particular technologies
- **Ensure consistent guidance** aligned with organizational practices
- **Can be shared and reused** across multiple assistants
- **Act as automated code reviewers** that ensure consistency across teams
![Prompt Blocks Overview](/images/customization/images/prompts-blocks-overview-17194d870840576f9a0dde548f2c70ec.png)
## Learn More[​](#learn-more "Direct link to Learn More")
Prompt blocks have the same syntax as [prompt files](/customization/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).

View file

@ -5,9 +5,9 @@ description: "Rules allow you to provide specific instructions that guide how th
Think of these as the guardrails for your AI coding assistants:
* **Enforce company-specific coding standards** and security practices
* **Implement quality checks** that match your engineering culture
* **Create paved paths** for developers to follow organizational best practices
- **Enforce company-specific coding standards** and security practices
- **Implement quality checks** that match your engineering culture
- **Create paved paths** for developers to follow organizational best practices
By implementing rules, you transform the AI from a generic coding assistant into a knowledgeable team member that understands your project's unique requirements and constraints.
@ -18,4 +18,3 @@ Your assistant detects rule blocks and applies the specified rules while in [Age
## Learn More[​](#learn-more "Direct link to Learn More")
Learn more in the [rules deep dive](/customization/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details.

View file

@ -9,7 +9,9 @@ keywords: [talk, embeddings, reranker, codebase, experimental]
Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally using `transformers.js` and stored locally in `~/.continue/index`.
<Info>
**Note:** `transformers.js` cannot be used in JetBrains IDEs. However, you can select a different embeddings model from [the list here](../model-roles/embeddings.mdx).
**Note:** `transformers.js` cannot be used in JetBrains IDEs. However, you can
select a different embeddings model from [the list
here](../model-roles/embeddings.mdx).
</Info>
Currently, the codebase retrieval feature is available as the "codebase" and "folder" context providers. You can use them by typing `@Codebase` or `@Folder` in the input box, and then asking a question. The contents of the input box will be compared with the embeddings from the rest of the codebase (or folder) to determine relevant files.

View file

@ -15,7 +15,6 @@ keywords:
toc_max_heading_level: 5
---
# @Docs
The [`@Docs` context provider](../custom-providers#docs) allows you to efficiently reference documentation directly within Continue.
@ -215,8 +214,8 @@ If your documentation is private, you can skip the default crawler and use a loc
</Tabs>
<Info>
Chromium crawling has been deprecated
{/* The default local crawler is a lightweight tool that cannot render sites that are dynamically generated using JavaScript. If your sites need to be rendered, you can enable the experimental `Use Chromium for Docs Crawling` feature from your [User Settings Page](../deep-dives/settings.md) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler. */}
Chromium crawling has been deprecated
{/* The default local crawler is a lightweight tool that cannot render sites that are dynamically generated using JavaScript. If your sites need to be rendered, you can enable the experimental `Use Chromium for Docs Crawling` feature from your [User Settings Page](../deep-dives/settings.md) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler. */}
</Info>
Further notes:

View file

@ -19,8 +19,8 @@ You can add any built-in context-providers in your config file as shown below:
Reference any file in your current workspace.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -31,15 +31,15 @@ context: - provider: file
config.json
```json
{ "contextProviders": [ { "name": "file" } ]}
{ "contextProviders": [{ "name": "file" }] }
```
### `@Code`[​](#code "Direct link to code")
Reference specific functions or classes from throughout your project.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -50,15 +50,15 @@ context: - provider: code
config.json
```json
{ "contextProviders": [ { "name": "code" } ]}
{ "contextProviders": [{ "name": "code" }] }
```
### `@Git Diff`[​](#git-diff "Direct link to git-diff")
Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -69,15 +69,15 @@ context: - provider: diff
config.json
```json
{ "contextProviders": [ { "name": "diff" } ]}
{ "contextProviders": [{ "name": "diff" }] }
```
### `@Current File`[​](#current-file "Direct link to current-file")
Reference the currently open file.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -88,15 +88,15 @@ context: - provider: currentFile
config.json
```json
{ "contextProviders": [ { "name": "currentFile" } ]}
{ "contextProviders": [{ "name": "currentFile" }] }
```
### `@Terminal`[​](#terminal "Direct link to terminal")
Reference the last command you ran in your IDE's terminal and its output.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -107,15 +107,15 @@ context: - provider: terminal
config.json
```json
{ "contextProviders": [ { "name": "terminal" } ]}
{ "contextProviders": [{ "name": "terminal" }] }
```
### `@Docs`[​](#docs "Direct link to docs")
Reference the contents from any documentation site.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -126,7 +126,7 @@ context: - provider: docs
config.json
```json
{ "contextProviders": [ { "name": "docs" } ]}
{ "contextProviders": [{ "name": "docs" }] }
```
Note that this will only enable the `@Docs` context provider.
@ -137,8 +137,8 @@ To use it, you need to add a documentation site to your config file. See the [do
Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -149,7 +149,7 @@ context: - provider: open params: onlyPinned: true
config.json
```json
{ "contextProviders": [ { "name": "open", "params": { "onlyPinned": true } } ]}
{ "contextProviders": [{ "name": "open", "params": { "onlyPinned": true } }] }
```
### `@Web`[​](#web "Direct link to web")
@ -158,8 +158,8 @@ Reference relevant pages from across the web, automatically determined from your
Optionally, set `n` to limit the number of results returned (default 6).
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -170,15 +170,15 @@ context: - provider: web params: n: 5
config.json
```json
{ "contextProviders": [ { "name": "web", "params": { "n": 5 } } ]}
{ "contextProviders": [{ "name": "web", "params": { "n": 5 } }] }
```
### `@Codebase`[​](#codebase "Direct link to codebase")
Reference the most relevant snippets from your codebase.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -189,7 +189,7 @@ context: - provider: codebase
config.json
```json
{ "contextProviders": [ { "name": "codebase" } ]}
{ "contextProviders": [{ "name": "codebase" }] }
```
Read more about indexing and retrieval [here](/customization/overview#codebase-context).
@ -198,8 +198,8 @@ Read more about indexing and retrieval [here](/customization/overview#codebase-c
Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -210,15 +210,15 @@ context: - provider: folder
config.json
```json
{ "contextProviders": [ { "name": "folder" } ]}
{ "contextProviders": [{ "name": "folder" }] }
```
### `@Search`[​](#search "Direct link to search")
Reference the results of codebase search, just like the results you would get from VS Code search.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -238,8 +238,8 @@ This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripg
Reference the markdown converted contents of a given URL.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -250,15 +250,15 @@ context: - provider: url
config.json
```json
{ "contextProviders": [ { "name": "url" } ]}
{ "contextProviders": [{ "name": "url" }] }
```
### `@Clipboard`[​](#clipboard "Direct link to clipboard")
Reference recent clipboard items
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -269,15 +269,15 @@ context: - provider: clipboard
config.json
```json
{ "contextProviders": [ { "name": "clipboard" } ]}
{ "contextProviders": [{ "name": "clipboard" }] }
```
### `@Tree`[​](#tree "Direct link to tree")
Reference the structure of your current workspace.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -288,15 +288,15 @@ context: - provider: tree
config.json
```json
{ "contextProviders": [ { "name": "tree" } ]}
{ "contextProviders": [{ "name": "tree" }] }
```
### `@Problems`[​](#problems "Direct link to problems")
Get Problems from the current file.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -307,15 +307,15 @@ context: - provider: problems
config.json
```json
{ "contextProviders": [ { "name": "problems" } ]}
{ "contextProviders": [{ "name": "problems" }] }
```
### `@Debugger`[​](#debugger "Direct link to debugger")
Reference the contents of the local variables in the debugger. Currently only available in VS Code.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -326,10 +326,10 @@ context: - provider: debugger params: stackDepth: 3
config.json
```json
{ "contextProviders": [ { "name": "debugger", "params": { "stackDepth": 3 } } ]}
{ "contextProviders": [{ "name": "debugger", "params": { "stackDepth": 3 } }] }
```
Uses the top *n* levels (defaulting to 3) of the call stack for that thread.
Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
### `@Repository Map`[​](#repository-map "Direct link to repository-map")
@ -337,8 +337,8 @@ Reference the outline of your codebase. By default, signatures are included alon
`includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -362,8 +362,8 @@ This context provider is inpsired by [Aider's repository map](https://aider.chat
Reference the architecture and platform of your current operating system.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -374,15 +374,15 @@ context: - provider: os
config.json
```json
{ "contextProviders": [ { "name": "os" } ]}
{ "contextProviders": [{ "name": "os" }] }
```
### Model Context Protocol[​](#model-context-protocol "Direct link to Model Context Protocol")
The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then set up your configuration like this:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -393,7 +393,19 @@ mcpServers: - name: My MCP Server command: uvx args: - mcp-server-sq
config.json
```json
{ "experimental": { "modelContextProtocolServers": [ { "transport": { "type": "stdio", "command": "uvx", "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] } } ] }}
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
}
}
]
}
}
```
You'll then be able to type "@" and see "MCP" in the context providers dropdown.
@ -402,8 +414,8 @@ You'll then be able to type "@" and see "MCP" in the context providers dropdown.
Reference the conversation in a GitHub issue.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -414,7 +426,17 @@ context: - provider: issue params: repos: - owner: continuedev
config.json
```json
{ "contextProviders": [ { "name": "issue", "params": { "repos": [ { "owner": "continuedev", "repo": "continue" } ], "githubToken": "ghp_xxx" } } ]}
{
"contextProviders": [
{
"name": "issue",
"params": {
"repos": [{ "owner": "continuedev", "repo": "continue" }],
"githubToken": "ghp_xxx"
}
}
]
}
```
Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited.
@ -423,8 +445,8 @@ Make sure to include your own [GitHub personal access token](https://docs.github
Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -435,23 +457,59 @@ context: - provider: database params: connections: - name: examp
config.json
```json
{ "contextProviders": [ { "name": "database", "params": { "connections": [ { "name": "examplePostgres", "connection_type": "postgres", "connection": { "user": "username", "host": "localhost", "database": "exampleDB", "password": "yourPassword", "port": 5432 } }, { "name": "exampleMssql", "connection_type": "mssql", "connection": { "user": "username", "server": "localhost", "database": "exampleDB", "password": "yourPassword" } }, { "name": "exampleSqlite", "connection_type": "sqlite", "connection": { "filename": "/path/to/your/sqlite/database.db" } } ] } } ]}
{
"contextProviders": [
{
"name": "database",
"params": {
"connections": [
{
"name": "examplePostgres",
"connection_type": "postgres",
"connection": {
"user": "username",
"host": "localhost",
"database": "exampleDB",
"password": "yourPassword",
"port": 5432
}
},
{
"name": "exampleMssql",
"connection_type": "mssql",
"connection": {
"user": "username",
"server": "localhost",
"database": "exampleDB",
"password": "yourPassword"
}
},
{
"name": "exampleSqlite",
"connection_type": "sqlite",
"connection": { "filename": "/path/to/your/sqlite/database.db" }
}
]
}
}
]
}
```
Each connection should include a unique name, the `connection_type`, and the necessary connection parameters specific to each database type.
Available connection types:
* `postgres`
* `mysql`
* `sqlite`
- `postgres`
- `mysql`
- `sqlite`
### `@Postgres`[​](#postgres "Direct link to postgres")
Reference the schema of a table, and some sample rows
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -462,7 +520,22 @@ context: - provider: postgres params: host: localhost port: 5436
config.json
```json
{ "contextProviders": [ { "name": "postgres", "params": { "host": "localhost", "port": 5436, "user": "myuser", "password": "catsarecool", "database": "animals", "schema": "public", "sampleRows": 3 } } ]}
{
"contextProviders": [
{
"name": "postgres",
"params": {
"host": "localhost",
"port": 5436,
"user": "myuser",
"password": "catsarecool",
"database": "animals",
"schema": "public",
"sampleRows": 3
}
}
]
}
```
The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`.
@ -475,8 +548,8 @@ By default, the `schema` filter is set to `public`, and the `sampleRows` is set
Reference the results of a Google search.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -487,7 +560,14 @@ context: - provider: google params: serperApiKey: <YOUR_SERPER.DEV_API_
config.json
```json
{ "contextProviders": [ { "name": "google", "params": { "serperApiKey": "<YOUR_SERPER.DEV_API_KEY>" } } ]}
{
"contextProviders": [
{
"name": "google",
"params": { "serperApiKey": "<YOUR_SERPER.DEV_API_KEY>" }
}
]
}
```
For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
@ -498,8 +578,8 @@ Note: You can get an API key for free at [serper.dev](https://serper.dev).
Reference an open MR for this branch on GitLab.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -510,7 +590,7 @@ context: - provider: gitlab-mr params: token: "..."
config.json
```json
{ "contextProviders": [ { "name": "gitlab-mr", "params": { "token": "..." } } ]}
{ "contextProviders": [{ "name": "gitlab-mr", "params": { "token": "..." } }] }
```
You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope.
@ -519,8 +599,8 @@ You will need to create a [personal access token](https://docs.gitlab.com/ee/use
You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -531,7 +611,14 @@ context: - provider: gitlab-mr params: token: "..." domain: "gitla
config.json
```json
{ "contextProviders": [ { "name": "gitlab-mr", "params": { "token": "...", "domain": "gitlab.example.com" } } ]}
{
"contextProviders": [
{
"name": "gitlab-mr",
"params": { "token": "...", "domain": "gitlab.example.com" }
}
]
}
```
#### Filtering Comments[​](#filtering-comments "Direct link to Filtering Comments")
@ -542,8 +629,8 @@ If you select some code to be edited, you can have the context provider filter o
Reference the conversation in a Jira issue.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -554,7 +641,14 @@ context: - provider: jira params: domain: company.atlassian.net to
config.json
```json
{ "contextProviders": [ { "name": "jira", "params": { "domain": "company.atlassian.net", "token": "ATATT..." } } ]}
{
"contextProviders": [
{
"name": "jira",
"params": { "domain": "company.atlassian.net", "token": "ATATT..." }
}
]
}
```
Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email.
@ -563,8 +657,8 @@ Make sure to include your own [Atlassian API Token](https://id.atlassian.com/man
This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -575,7 +669,7 @@ context: - provider: jira params: apiVersion: "2"
config.json
```json
{ "contextProviders": [ { "name": "jira", "params": { "apiVersion": "2" } } ]}
{ "contextProviders": [{ "name": "jira", "params": { "apiVersion": "2" } }] }
```
#### Issue Query[​](#issue-query "Direct link to Issue Query")
@ -596,8 +690,8 @@ You can set the `maxResults` parameter to limit the number of results returned.
Reference the messages in a Discord channel.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -608,7 +702,21 @@ context: - provider: discord params: discordKey: "bot token" guild
config.json
```json
{ "contextProviders": [ { "name": "discord", "params": { "discordKey": "bot token", "guildId": "1234567890", "channels": [ { "id": "123456", "name": "example-channel" }, { "id": "678901", "name": "example-channel-2" } ] } } ]}
{
"contextProviders": [
{
"name": "discord",
"params": {
"discordKey": "bot token",
"guildId": "1234567890",
"channels": [
{ "id": "123456", "name": "example-channel" },
{ "id": "678901", "name": "example-channel-2" }
]
}
}
]
}
```
Make sure to include your own [Bot Token](https://discord.com/developers/applications), and join it to your related server . If you want more granular control over which channels are searched, you can specify a list of channel IDs to search in. If you don't want to specify any channels, just include the guild id(Server ID) and all channels will be included. The provider only reads text channels.
@ -617,8 +725,8 @@ Make sure to include your own [Bot Token](https://discord.com/developers/applica
The HttpContextProvider makes a POST request to the url passed in the configuration. The server must return 200 OK with a ContextItem object or an array of ContextItems.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -629,7 +737,11 @@ context: - provider: http params: url: "https://api.example.com/v1/user
config.json
```json
{ "contextProviders": [ { "name": "http", "params": { "url": "https://api.example.com/v1/users" } } ]}
{
"contextProviders": [
{ "name": "http", "params": { "url": "https://api.example.com/v1/users" } }
]
}
```
The receiving URL should expect to receive the following parameters:
@ -652,8 +764,8 @@ Response
Reference specific git commit metadata and diff or all of the recent commits.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -664,7 +776,11 @@ context: - provider: commit params: Depth: 50 LastXCommitsDepth: 1
config.json
```json
{ "contextProviders": [ { "name": "commit", "params": { "Depth": 50, "LastXCommitsDepth": 10 } } ]}
{
"contextProviders": [
{ "name": "commit", "params": { "Depth": 50, "LastXCommitsDepth": 10 } }
]
}
```
The depth is how many commits will be loaded into the submenu, defaults to 50. The LastXCommitsDepth is how many recent commits will be included, defaults to 10.
@ -673,8 +789,8 @@ The depth is how many commits will be loaded into the submenu, defaults to 50. T
Query a [Greptile](https://www.greptile.com/) index of the current repo/branch.
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -685,10 +801,16 @@ context: - provider: greptile params: greptileToken: "..." github
config.json
```json
{ "contextProviders": [ { "name": "greptile", "params": { "GreptileToken": "...", "GithubToken": "..." } } ]}
{
"contextProviders": [
{
"name": "greptile",
"params": { "GreptileToken": "...", "GithubToken": "..." }
}
]
}
```
### Requesting Context Providers[​](#requesting-context-providers "Direct link to Requesting Context Providers")
Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn\&labels=enhancement\&projects=\&template=feature-request-%F0%9F%92%AA.md\&title=) to request a new Context Provider.
Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new Context Provider.

View file

@ -30,7 +30,7 @@ See the full reference for `config.yaml` [here](/reference).
## Deprecated configuration methods
<Info>
View the `config.json` migration guide [here](../yaml-migration.mdx)
View the `config.json` migration guide [here](../yaml-migration.mdx)
</Info>
- [`config.json`](/reference) - The original configuration format which is stored in a file at the same location as `config.yaml`

View file

@ -4,7 +4,6 @@ description: MCP use and customization
keywords: [tool, use, function calling, claude, automatic]
---
# MCP
As AI systems get better, they're still held back by their training data and
@ -25,9 +24,7 @@ MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can
explore available MCP server blocks
[here](https://hub.continue.dev/explore/mcp).
<Info>
MCP can only be used in the **agent** mode.
</Info>
<Info>MCP can only be used in the **agent** mode.</Info>
## Quick Start
@ -77,7 +74,7 @@ server block to your [config file](./configuration.md):
- "mcp-sqlite"
- "/path/to/your/database.db"
```
````
</Tab>
<Tab title="JSON">
```json title="config.json"
@ -94,7 +91,7 @@ server block to your [config file](./configuration.md):
]
}
}
```
````
</Tab>
</Tabs>

View file

@ -5,7 +5,10 @@ title: Prompts
Prompts are reusable instructions that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks.
<Info>
Prompts were previously defined in a `.prompt` file format, but for consistency we now recommend using the same Markdown format as [rules](./rules.mdx) and adding `alwaysApply: false` to the frontmatter so that they are manually triggered.
Prompts were previously defined in a `.prompt` file format, but for
consistency we now recommend using the same Markdown format as
[rules](./rules.mdx) and adding `alwaysApply: false` to the frontmatter so
that they are manually triggered.
</Info>
### Quick Start

View file

@ -7,7 +7,8 @@ keywords: [rules, .continuerules, system, prompt, message]
Rules provide instructions to the model for [Chat](../../features/chat/quick-start), [Edit](../../features/edit/quick-start), and [Agent](../../features/agent/quick-start) requests.
<Info>
Rules are not included in [autocomplete](./autocomplete.mdx) or [apply](../model-roles/apply.mdx).
Rules are not included in [autocomplete](./autocomplete.mdx) or
[apply](../model-roles/apply.mdx).
</Info>
## How it works
@ -48,6 +49,7 @@ Rules can be added locally using the "Add Rules" button while viewing the Local
**Automatically create local rule blocks**: When in Agent mode, you can prompt the agent to create a rule for you using the `create_rule_block` tool if enabled.
For example, you can say "Create a rule for this", and a rule will be created for you in `.continue/rules` based on your conversation.
</Info>
Rules can also be added to an Assistant on the Continue Hub.
@ -57,7 +59,9 @@ Explore available rules [here](https://hub.continue.dev), or [create your own](h
### Syntax
<Info>
Rules were originally defined in YAML format (demonstrated below), but we introduced Markdown for easier editing. While both are still supported, we recommend Markdown.
Rules were originally defined in YAML format (demonstrated below), but we
introduced Markdown for easier editing. While both are still supported, we
recommend Markdown.
</Info>
Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties:
@ -92,7 +96,8 @@ description: Standards for writing and maintaining Continue Docs
- Reference other docs with relative paths
- Keep paragraphs concise and scannable
- Use code blocks with appropriate language tags
```
````
</Tab>
<Tab title="YAML">
@ -115,7 +120,8 @@ rules:
- Reference other docs with relative paths
- Keep paragraphs concise and scannable
- Use code blocks with appropriate language tags
```
````
</Tab>
</Tabs>
@ -154,7 +160,8 @@ Advanced users can override this system message for a specific model if needed b
### `.continuerules`
<Warning>
`.continuerules` will be deprecated in a future release. Please use the `.continue/rules` folder instead.
`.continuerules` will be deprecated in a future release. Please use the
`.continue/rules` folder instead.
</Warning>
You can create project-specific rules by adding a `.continuerules` file to the root of your project. This file is raw text and its full contents will be used as rules.
You can create project-specific rules by adding a `.continuerules` file to the root of your project. This file is raw text and its full contents will be used as rules.

View file

@ -4,7 +4,6 @@ description: Shortcuts that can be activated by prefacing your input with '/'
keywords: [slash command, custom commands, step]
---
![actions](/images/actions.gif)
## Slash commands

View file

@ -3,7 +3,9 @@ title: "config.json Reference"
---
<Info>
We recently introduced a new configuration format, `config.yaml`, to replace `config.json`. See the `config.yaml` reference and migration guide [here](/reference).
We recently introduced a new configuration format, `config.yaml`, to replace
`config.json`. See the `config.yaml` reference and migration guide
[here](/reference).
</Info>
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).
@ -18,53 +20,63 @@ Each model has specific configuration options tailored to its provider and funct
**Properties:**
* `title` (**required**): The title to assign to your model, shown in dropdowns, etc.
- `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`, `xAI`, etc., see IntelliJ suggestions.
- `provider` (**required**): The provider of the model, which determines the type and interaction method. Options inclued `openai`, `ollama`, `xAI`, etc., see IntelliJ suggestions.
* `model` (**required**): The name of the model, used for prompt template auto-detection. Use `AUTODETECT` special name to get all available models.
- `model` (**required**): The name of the model, used for prompt template auto-detection. Use `AUTODETECT` special name to get all available models.
* `apiKey`: API key required by providers like OpenAI, Anthropic, Cohere, and xAI.
- `apiKey`: API key required by providers like OpenAI, Anthropic, Cohere, and xAI.
* `apiBase`: The base URL of the LLM API.
- `apiBase`: The base URL of the LLM API.
* `contextLength`: Maximum context length of the model, typically in tokens (default: 2048).
- `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.
- `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.
- `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. See the [Deep Dives section](/customize/deep-dives/prompts) for customization details.
- `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. See the [Deep Dives section](/customize/deep-dives/prompts) for customization details.
* `completionOptions`: Model-specific completion options, same format as top-level [`completionOptions`](#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.
- `systemMessage`: A system message that will precede responses from the LLM.
* `requestOptions`: Model-specific HTTP request options, same format as top-level [`requestOptions`](#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`).
- `apiType`: Specifies the type of API (`openai` or `azure`).
* `apiVersion`: Azure API version (e.g., `2023-07-01-preview`).
- `apiVersion`: Azure API version (e.g., `2023-07-01-preview`).
* `engine`: Engine for Azure OpenAI requests.
- `engine`: Engine for Azure OpenAI requests.
* `capabilities`: Override auto-detected capabilities:
- `capabilities`: Override auto-detected capabilities:
- `uploadImage`: Boolean indicating if the model supports image uploads.
- `tools`: Boolean indicating if the model supports tool use.
* `uploadImage`: Boolean indicating if the model supports image uploads.
* `tools`: Boolean indicating if the model supports tool use.
_(AWS Only)_
*(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`).
- `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:
config.json
```json
{ "models": [ { "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" }, { "model": "gpt-4o", "contextLength": 128000, "title": "GPT-4o", "provider": "openai", "apiKey": "YOUR_API_KEY" } ]}
{
"models": [
{ "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" },
{
"model": "gpt-4o",
"contextLength": 128000,
"title": "GPT-4o",
"provider": "openai",
"apiKey": "YOUR_API_KEY"
}
]
}
```
### `tabAutocompleteModel`[​](#tabautocompletemodel "Direct link to tabautocompletemodel")
@ -76,7 +88,13 @@ Example
config.json
```json
{ "tabAutocompleteModel": { "title": "My Starcoder", "provider": "ollama", "model": "starcoder2:3b" }}
{
"tabAutocompleteModel": {
"title": "My Starcoder",
"provider": "ollama",
"model": "starcoder2:3b"
}
}
```
### `tabAutocompleteOptions`[​](#tabautocompleteoptions "Direct link to tabautocompleteoptions")
@ -85,20 +103,26 @@ Specifies options for tab autocompletion behavior.
**Properties:**
* `disable`: If `true`, disables tab autocomplete (default: `false`).
* `maxPromptTokens`: Maximum number of tokens for the prompt (default: `1024`).
* `debounceDelay`: Delay (in ms) before triggering autocomplete (default: `350`).
* `maxSuffixPercentage`: Maximum percentage of prompt for suffix (default: `0.2`).
* `prefixPercentage`: Percentage of input for prefix (default: `0.3`).
* `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables.
* `onlyMyCode`: If `true`, only includes code within the repository (default: `true`).
- `disable`: If `true`, disables tab autocomplete (default: `false`).
- `maxPromptTokens`: Maximum number of tokens for the prompt (default: `1024`).
- `debounceDelay`: Delay (in ms) before triggering autocomplete (default: `350`).
- `maxSuffixPercentage`: Maximum percentage of prompt for suffix (default: `0.2`).
- `prefixPercentage`: Percentage of input for prefix (default: `0.3`).
- `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables.
- `onlyMyCode`: If `true`, only includes code within the repository (default: `true`).
Example
config.json
```json
{ "tabAutocompleteOptions": { "debounceDelay": 500, "maxPromptTokens": 1500, "disableInFiles": ["*.md"] }}
{
"tabAutocompleteOptions": {
"debounceDelay": 500,
"maxPromptTokens": 1500,
"disableInFiles": ["*.md"]
}
}
```
### `embeddingsProvider`[​](#embeddingsprovider "Direct link to embeddingsprovider")
@ -107,55 +131,63 @@ 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`, `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.
* `maxEmbeddingChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
* `maxEmbeddingBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
- `provider` (**required**): Specifies the embeddings provider, with options including `transformers.js`, `ollama`, `openai`, `cohere`, `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.
- `maxEmbeddingChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
- `maxEmbeddingBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
(AWS ONLY)
* `region`: Specifies the region hosting the model.
* `profile`: AWS security profile.
- `region`: Specifies the region hosting the model.
- `profile`: AWS security profile.
Example:
config.json
```json
{ "embeddingsProvider": { "provider": "openai", "model": "text-embedding-ada-002", "apiKey": "<API_KEY>", "maxEmbeddingChunkSize": 256, "maxEmbeddingBatchSize": 5 }}
{
"embeddingsProvider": {
"provider": "openai",
"model": "text-embedding-ada-002",
"apiKey": "<API_KEY>",
"maxEmbeddingChunkSize": 256,
"maxEmbeddingBatchSize": 5
}
}
```
### `completionOptions`[​](#completionoptions "Direct link to 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*.
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.
* `frequencyPenalty`: 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: `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).
* `numGpu`: For Ollama, this parameter overrides the number of gpu layers that will be used to load the model into VRAM.
* `useMmap`: For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream.
* `reasoning`: Enables thinking/reasoning for Anthropic Claude 3.7+ models.
* `reasoningBudgetTokens`: Sets budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models.
- `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.
- `frequencyPenalty`: 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: `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).
- `numGpu`: For Ollama, this parameter overrides the number of gpu layers that will be used to load the model into VRAM.
- `useMmap`: For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream.
- `reasoning`: Enables thinking/reasoning for Anthropic Claude 3.7+ models.
- `reasoningBudgetTokens`: Sets budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models.
Example
config.json
```json
{ "completionOptions": { "stream": false, "temperature": 0.5 }}
{ "completionOptions": { "stream": false, "temperature": 0.5 } }
```
### `requestOptions`[​](#requestoptions "Direct link to requestoptions")
@ -164,32 +196,31 @@ Default HTTP request options that apply to all models and context providers, unl
**Properties:**
* `timeout`: Timeout for each request to the LLM (default: 7200 seconds).
- `timeout`: Timeout for each request to the LLM (default: 7200 seconds).
* `verifySsl`: Whether to verify SSL certificates for requests.
- `verifySsl`: Whether to verify SSL certificates for requests.
* `caBundlePath`: Path to a custom CA bundle for HTTP requests - path to `.pem` file (or array of paths)
- `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.
- `proxy`: Proxy URL to use for HTTP requests.
* `headers`: Custom headers for HTTP requests.
- `headers`: Custom headers for HTTP requests.
* `extraBodyProperties`: Additional properties to merge with the HTTP request body.
- `extraBodyProperties`: Additional properties to merge with the HTTP request body.
* `noProxy`: List of hostnames that should bypass the specified proxy.
- `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.
- `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
config.json
```json
{ "requestOptions": { "headers": { "X-Auth-Token": "xxx" } }}
{ "requestOptions": { "headers": { "X-Auth-Token": "xxx" } } }
```
### `reranker`[​](#reranker "Direct link to reranker")
@ -198,20 +229,24 @@ Configuration for the reranker model used in response ranking.
**Properties:**
* `name` (**required**): Reranker name, e.g., `cohere`, `voyage`, `llm`, `huggingface-tei`, `bedrock`
- `name` (**required**): Reranker name, e.g., `cohere`, `voyage`, `llm`, `huggingface-tei`, `bedrock`
* `params`:
* `model`: Model name
* `apiKey`: Api key
* `region`: Region (for Bedrock only)
- `params`:
- `model`: Model name
- `apiKey`: Api key
- `region`: Region (for Bedrock only)
Example
config.json
```json
{ "reranker": { "name": "voyage", "params": { "model": "rerank-2", "apiKey": "<VOYAGE_API_KEY>" } }}
{
"reranker": {
"name": "voyage",
"params": { "model": "rerank-2", "apiKey": "<VOYAGE_API_KEY>" }
}
}
```
### `docs`[​](#docs "Direct link to docs")
@ -220,12 +255,12 @@ List of documentation sites to index.
**Properties:**
* `title` (**required**): Title of the documentation site, displayed in dropdowns, etc.
* `startUrl` (**required**): Start page for crawling - usually root or intro page for docs
- `title` (**required**): Title of the documentation site, displayed in dropdowns, etc.
- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs
* `maxDepth`: Maximum link depth for crawling. Default `4`
* `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`).
* `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler.
- `maxDepth`: Maximum link depth for crawling. Default `4`
- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`).
- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler.
Example
@ -241,10 +276,10 @@ Custom commands initiated by typing "/" in the sidebar. Commands include predefi
**Properties:**
* `name`: The command name. Options include "issue", "share", "cmd", "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)
- `name`: The command name. Options include "issue", "share", "cmd", "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)
The following commands are built-in and can be added to `config.json` to make them visible:
@ -255,7 +290,15 @@ Generate a shareable markdown transcript of your current chat history.
config.json
```json
{ "slashCommands": [ { "name": "share", "description": "Export the current chat session to markdown", "params": { "outputDir": "~/.continue/session-transcripts" } } ]}
{
"slashCommands": [
{
"name": "share",
"description": "Export the current chat session to markdown",
"params": { "outputDir": "~/.continue/session-transcripts" }
}
]
}
```
Use the `outputDir` parameter to specify where you want to the markdown file to be saved.
@ -267,7 +310,11 @@ Generate a shell command from natural language and (only in VS Code) automatical
config.json
```json
{ "slashCommands": [ { "name": "cmd", "description": "Generate a shell command" } ]}
{
"slashCommands": [
{ "name": "cmd", "description": "Generate a shell command" }
]
}
```
#### `/commit`[​](#commit "Direct link to commit")
@ -277,7 +324,14 @@ Shows the LLM your current git diff and asks it to generate a commit message.
config.json
```json
{ "slashCommands": [ { "name": "commit", "description": "Generate a commit message for the current changes" } ]}
{
"slashCommands": [
{
"name": "commit",
"description": "Generate a commit message for the current changes"
}
]
}
```
#### `/http`[​](#http "Direct link to http")
@ -287,7 +341,15 @@ Write a custom slash command at your own HTTP endpoint. Set 'url' in the params
config.json
```json
{ "slashCommands": [ { "name": "http", "description": "Does something custom", "params": { "url": "<my server endpoint>" } } ]}
{
"slashCommands": [
{
"name": "http",
"description": "Does something custom",
"params": { "url": "<my server endpoint>" }
}
]
}
```
#### `/issue`[​](#issue "Direct link to issue")
@ -297,7 +359,15 @@ Describe the issue you'd like to generate, and Continue will turn into a well-fo
config.json
```json
{ "slashCommands": [ { "name": "issue", "description": "Generate a link to a drafted GitHub issue", "params": { "repositoryUrl": "https://github.com/continuedev/continue" } } ]}
{
"slashCommands": [
{
"name": "issue",
"description": "Generate a link to a drafted GitHub issue",
"params": { "repositoryUrl": "https://github.com/continuedev/continue" }
}
]
}
```
#### `/onboard`[​](#onboard "Direct link to onboard")
@ -307,7 +377,14 @@ The onboard slash command helps to familiarize yourself with a new project by an
config.json
```json
{ "slashCommands": [ { "name": "onboard", "description": "Familiarize yourself with the codebase" } ]}
{
"slashCommands": [
{
"name": "onboard",
"description": "Familiarize yourself with the codebase"
}
]
}
```
Example:
@ -315,7 +392,13 @@ Example:
config.json
```json
{ "slashCommands": [ { "name": "commit", "description": "Generate a commit message" }, { "name": "share", "description": "Export this session as markdown" }, { "name": "cmd", "description": "Generate a shell command" } ]}
{
"slashCommands": [
{ "name": "commit", "description": "Generate a commit message" },
{ "name": "share", "description": "Export this session as markdown" },
{ "name": "cmd", "description": "Generate a shell command" }
]
}
```
### `customCommands`[​](#customcommands "Direct link to customcommands")
@ -324,16 +407,24 @@ User-defined commands for prompt shortcuts in the sidebar, allowing quick access
**Properties:**
* `name`: The name of the custom command.
* `prompt`: Text prompt for the command.
* `description`: Brief description explaining the command's function.
- `name`: The name of the custom command.
- `prompt`: Text prompt for the command.
- `description`: Brief description explaining the command's function.
Example:
config.json
```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" } ]}
{
"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`[​](#contextproviders "Direct link to contextproviders")
@ -342,15 +433,22 @@ List of the pre-defined context providers that will show up as options while typ
**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
- `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
config.json
```json
{ "contextProviders": [ { "name": "code", "params": {} }, { "name": "docs", "params": {} }, { "name": "diff", "params": {} }, { "name": "open", "params": {} } ]}
{
"contextProviders": [
{ "name": "code", "params": {} },
{ "name": "docs", "params": {} },
{ "name": "diff", "params": {} },
{ "name": "open", "params": {} }
]
}
```
### `userToken`[​](#usertoken "Direct link to usertoken")
@ -367,67 +465,83 @@ 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.=
- `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`:
- `modelRoles`:
- `inlineEdit`: Model title for inline edits.
- `applyCodeBlock`: Model title for applying code blocks.
- `repoMapFileSelection`: Model title for repo map selections.
* `inlineEdit`: Model title for inline edits.
* `applyCodeBlock`: Model title for applying code blocks.
* `repoMapFileSelection`: Model title for repo map selections.
- `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`.
* `quickActions`: Array of custom quick actions
- `contextMenuPrompts`:
- `comment`: Prompt for commenting code.
- `docstring`: Prompt for adding docstrings.
- `fix`: Prompt for fixing code.
- `optimize`: Prompt for optimizing code.
* `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.
* `modelContextProtocolServers`: See [Model Context Protocol](/customization/mcp-tools)
- `modelContextProtocolServers`: See [Model Context Protocol](/customization/mcp-tools)
Example
config.json
```json
{ "experimental": { "modelRoles": { "inlineEdit": "Edit Model" }, "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." }, "modelContextProtocolServers": [ { "transport": { "type": "stdio", "command": "uvx", "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] } } ] }}
{
"experimental": {
"modelRoles": { "inlineEdit": "Edit Model" },
"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."
},
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
}
}
]
}
}
```
### Fully deprecated settings[​](#fully-deprecated-settings "Direct link to Fully deprecated settings")
Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](/customize/settings). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`.
* `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`).
- `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`).
* `promptPath`: This value will override during migration.
- `promptPath`: This value will override during migration.
* `disableIndexing`: This value will be migrated to the safest merged value (`true` if either are `true`).
- `disableIndexing`: This value will be migrated to the safest merged value (`true` if either are `true`).
* `disableSessionTitles`/`ui.getChatTitles`: This value will be migrated to the safest merged value (`true` if either are `true`). `getChatTitles` takes precedence if set to false
- `disableSessionTitles`/`ui.getChatTitles`: This value will be migrated to the safest merged value (`true` if either are `true`). `getChatTitles` takes precedence if set to false
* `tabAutocompleteOptions`
- `tabAutocompleteOptions`
- `useCache`: This value will override during migration.
- `disableInFiles`: This value will be migrated to the safest merged value (arrays of file matches merged/deduplicated)
- `multilineCompletions`: This value will override during migration.
* `useCache`: This value will override during migration.
* `disableInFiles`: This value will be migrated to the safest merged value (arrays of file matches merged/deduplicated)
* `multilineCompletions`: This value will override during migration.
- `experimental`
- `useChromiumForDocsCrawling`: This value will override during migration.
- `readResponseTTS`: This value will override during migration.
* `experimental`
* `useChromiumForDocsCrawling`: This value will override during migration.
* `readResponseTTS`: This value will override during migration.
* `ui` - all will override during migration
* `codeBlockToolbarPosition`
* `fontSize`
* `codeWrap`
* `displayRawMarkdown`
* `showChatScrollbar`
- `ui` - all will override during migration
- `codeBlockToolbarPosition`
- `fontSize`
- `codeWrap`
- `displayRawMarkdown`
- `showChatScrollbar`
See [User Settings Page](/customize/settings) for more information about each option.

View file

@ -1,4 +1,3 @@
---
title: "Llama Stack"
description: "Configure Llama Stack with Continue"

View file

@ -2,8 +2,6 @@
title: "SambaNova"
---
The SambaNova Cloud is a cloud platform for running large AI models with the world record open source models performance. You can follow the instructions in [this blog post](https://sambanova.ai/blog/accelerating-coding-with-sambanova-cloud?ref=blog.continue.dev) to configure your setup.
<Tabs>

View file

@ -2,10 +2,11 @@
title: "AskSage"
---
<Info>
To get an Ask Sage API key login to the Ask Sage platform (If you don't have an account, you can create one [here](https://chat.asksage.ai/)) and follow the instructions in the Ask Sage Docs: [Ask Sage API Key](https://docs.asksage.ai/docs/api-documentation/api-documentation.html)
To get an Ask Sage API key login to the Ask Sage platform (If you don't have
an account, you can create one [here](https://chat.asksage.ai/)) and follow
the instructions in the Ask Sage Docs: [Ask Sage API
Key](https://docs.asksage.ai/docs/api-documentation/api-documentation.html)
</Info>
## Configuration

View file

@ -2,8 +2,6 @@
title: "Cerebras"
---
Cerebras Inference uses specialized silicon to provides fast inference.
1. Create an account in the portal [here](https://cloud.cerebras.ai/).

View file

@ -2,8 +2,6 @@
title: "Cloudflare"
---
Cloudflare Workers AI can be used for both chat and tab autocompletion in Continue. Here is an example of Cloudflare Workers AI configuration:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "Cohere"
---
Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.
## Chat model

View file

@ -2,8 +2,6 @@
title: "DeepInfra"
---
[DeepInfra](https://deepinfra.com) provides inference for open-source models at very low cost. To get started with DeepInfra, obtain your API key [here](https://deepinfra.com/dash). Then, find the model you want to use [here](https://deepinfra.com/models?type=text-generation) and copy the name of the model. Continue can then be configured to use the `DeepInfra` LLM class, like the example here:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "Flowise"
---
[Flowise](https://flowiseai.com/) is a low-code/no-code drag & drop tool with the aim to make it easy for people to visualize and build LLM apps. Continue can then be configured to use the `Flowise` LLM class, like the example here:
<Tabs>

View file

@ -3,12 +3,12 @@ title: "Function Network"
---
---
title: Function Network
slug: ../function-network
---
> Private, Affordable User-Owned AI
<Info>

View file

@ -2,10 +2,10 @@
title: "Groq"
---
<Info>
Check if your chosen model is still supported by referring to the [model documentation](https://console.groq.com/docs/models). If a model has been deprecated, you may encounter a 404 error when attempting to use it.
Check if your chosen model is still supported by referring to the [model
documentation](https://console.groq.com/docs/models). If a model has been
deprecated, you may encounter a 404 error when attempting to use it.
</Info>
Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.

View file

@ -2,8 +2,6 @@
title: "HuggingFace Inference Endpoints"
---
Hugging Face Inference Endpoints are an easy way to setup instances of open-source language models on any cloud. Sign up for an account and add billing [here](https://huggingface.co/settings/billing), access the Inference Endpoints [here](https://ui.endpoints.huggingface.co), click on “New endpoint”, and fill out the form (e.g. select a model like [WizardCoder-Python-34B-V1.0](https://huggingface.co/WizardLM/WizardCoder-Python-34B-V1.0)), and then deploy your model by clicking “Create Endpoint”. Change `~/.continue/config.json` to look like this:
<Tabs>

View file

@ -2,10 +2,10 @@
title: "Intel Extension for PyTorch"
---
<Info>
[**IPEX-LLM**](https://github.com/intel-analytics/ipex-llm) is a PyTorch library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU, discrete GPU such as Arc A-Series, Flex and Max) with very low latency.
[**IPEX-LLM**](https://github.com/intel-analytics/ipex-llm) is a PyTorch
library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU,
discrete GPU such as Arc A-Series, Flex and Max) with very low latency.
</Info>
IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to [this guide](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html) from IPEX-LLM official documentation about how to install and run Ollama serve accelerated by IPEX-LLM on Intel GPU. You can then configure Continue to use the IPEX-LLM accelerated `"ollama"` provider as follows:
@ -63,5 +63,8 @@ If you would like to reach the Ollama service from another machine, make sure yo
</Tabs>
<Tip>
If you would like to preload the model before your first conversation with that model in Continue, you could refer to [here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model) for more information.
If you would like to preload the model before your first conversation with
that model in Continue, you could refer to
[here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model)
for more information.
</Tip>

View file

@ -2,8 +2,6 @@
title: "Kindo"
---
Kindo offers centralized control over your organization's AI operations, ensuring data protection and compliance with internal policies while supporting various commercial and open-source models. To get started, sign up [here](https://app.kindo.ai/), create an API key in [Settings > API > API Keys](https://app.kindo.ai/settings/api), and choose a model from the list of supported models in the "Available Models" tab or copy and paste the config in [Plugins > Your Configuration](https://app.kindo.ai/plugins).
## Config Example

View file

@ -2,8 +2,6 @@
title: "Llama.cpp"
---
Run the llama.cpp server binary to start the API server. If running on a remote server, be sure to set host to 0.0.0.0:
```bash

View file

@ -2,8 +2,6 @@
title: "Llamafile"
---
A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contained binary that can run an open-source LLM. You can configure this provider in your config.json as follows:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "LM Studio"
---
[LM Studio](https://lmstudio.ai) is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models and comes with a great UI. To get started with LM Studio, download from the website, use the UI to download a model, and then start the local inference server. Continue can then be configured to use the `LMStudio` LLM class:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "Moonshot AI"
---
[Moonshot AI](https://platform.moonshot.cn/) provides high-quality large language model services with competitive pricing and excellent performance.
## Configuration

View file

@ -2,8 +2,6 @@
title: "Morph"
---
Morph provides a fast apply model that helps you quickly and accurately apply code changes from chat suggestions to your files. It's optimized for speed and precision when integrating generated code into your existing codebase. You can sign up for Morph's generous free tier [here](https://morphllm.com/dashboard). Then, update your configuration file as follows:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "Msty"
---
[Msty](https://msty.app/) is an application for Windows, Mac, and Linux that makes it really easy to run online as well as local open-source models, including Llama-2, DeepSeek Coder, etc. No need to fidget with your terminal, run a command, or anything. Just download the app from the website, click a button, and you are up and running. Continue can then be configured to use the `Msty` LLM class:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "NCompass"
---
The nCompass Technologies API exposes an extremely fast inference engine for open-source language models. You can sign up [here](https://app.ncompass.tech/api-settings), copy your API key on the initial welcome screen, and then hit the play button on any model from the [nCompass Models list](https://ncompass.tech/models). Change `~/.continue/config.json` to look like this:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "Nebius"
---
You can get an API key from the [Nebius AI Studio API keys page](https://studio.nebius.ai/settings/api-keys)
## Availible models

View file

@ -2,8 +2,6 @@
title: "Novita"
---
[Novita AI](https://novita.ai?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) offers an affordable, reliable, and simple inference platform with scalable [LLM API](https://novita.ai/docs/model-api/reference/introduction.html), empowering developers to build AI applications. Try the [Novita AI Llama 3 API Demo](https://novita.ai/model-api/product/llm-api/playground/meta-llama-llama-3.1-70b-instruct?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) today!. You can sign up [here](https://novita.ai/user/login?&redirect=/&utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), copy your API key on the [Key Management](https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), and then hit the play button on any model from the [Novita AI Models list](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link). Change `~/.continue/config.json` to look like this:
<Tabs>

View file

@ -3,12 +3,13 @@ title: "NVIDIA"
---
---
title: NVIDIA
---
## title: NVIDIA
<Info>
[View the docs](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog) to learn how to get an API key.
[View the
docs](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog)
to learn how to get an API key.
</Info>
## Chat model

View file

@ -2,8 +2,6 @@
title: "OpenRouter"
---
OpenRouter is a unified interface for commercial and open-source models, giving you access to the best models at the best prices. You can sign up [here](https://openrouter.ai/signup), create your API key on the [keys page](https://openrouter.ai/keys), and then choose a model from the [list of supported models](https://openrouter.ai/models).
Change `~/.continue/config.json` to look like the following.

View file

@ -2,9 +2,10 @@
title: "OpenVINO Model Server"
---
<Info>
[**OpenVINO™ Mode Server**](https://github.com/openvinotoolkit/model_server) is scalable inference server for models optimized with OpenVINO™ for Intel CPU, iGPU, GPU and NPU.
[**OpenVINO™ Mode Server**](https://github.com/openvinotoolkit/model_server)
is scalable inference server for models optimized with OpenVINO™ for Intel
CPU, iGPU, GPU and NPU.
</Info>
OpenVINO™ Mode Server supports text generation via OpenAI Chat Completions API. Simply select OpenAI provider to point `apiBase` to running OVMS instance. Refer [to this demo](https://docs.openvino.ai/2025/model-server/ovms_demos_code_completion_vsc.html) on official OVMS documentation to easily set up your own local server.

View file

@ -3,14 +3,16 @@ title: "OVHcloud"
---
---
title: OVHcloud AI Endpoints
---
## title: OVHcloud AI Endpoints
OVHcloud AI Endpoints is a serverless inference API that provides access to a curated selection of models (e.g., Llama, Mistral, Qwen, Deepseek). It is designed with security and data privacy in mind and is compliant with GDPR.
<Info>
To get started, create an API key on the OVHcloud [AI Endpoints website](https://endpoints.ai.cloud.ovh.net/). For more information, including pricing, visit the OVHcloud [AI Endpoints product page](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/).
To get started, create an API key on the OVHcloud [AI Endpoints
website](https://endpoints.ai.cloud.ovh.net/). For more information, including
pricing, visit the OVHcloud [AI Endpoints product
page](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/).
</Info>
## Chat model

View file

@ -2,8 +2,6 @@
title: "Relace"
---
Relace provides a fast apply model through their API that helps you reliably and almost instantly apply chat suggestions to your codebase. You can sign up and obtain an API key [here](https://app.relace.ai/settings/api-keys). Then, change your configuration file to look like this:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "Replicate"
---
Replicate is a great option for newly released language models or models that you've deployed through their platform. Sign up for an account [here](https://replicate.ai/), copy your API key, and then select any model from the [Replicate Streaming List](https://replicate.com/collections/streaming-language-models). Change `~/.continue/config.json` to look like this:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "Amazon SageMaker"
---
SageMaker can be used for both chat and embedding models. Chat models are supported for endpoints deployed with [LMI](https://docs.djl.ai/docs/serving/serving/docs/lmi/index.html), and embedding models are supported for endpoints deployed with [HuggingFace TEI](https://huggingface.co/blog/sagemaker-huggingface-embedding)
Here is an example Sagemaker configuration setup:

View file

@ -3,14 +3,16 @@ title: "Scaleway"
---
---
title: Scaleway
---
## title: Scaleway
<Info>
Scaleway Generative APIs give you instant access to leading AI models hosted in European data centers, ideal for developers requiring low latency, full data privacy, and compliance with EU AI Act.
You can generate your API key in [Scaleway's console](https://console.scaleway.com/generative-api/models).
Read the [quickstart documentation here](https://www.scaleway.com/en/docs/ai-data/generative-apis/quickstart/).
Scaleway Generative APIs give you instant access to leading AI models hosted
in European data centers, ideal for developers requiring low latency, full
data privacy, and compliance with EU AI Act. You can generate your API key in
[Scaleway's console](https://console.scaleway.com/generative-api/models). Read
the [quickstart documentation
here](https://www.scaleway.com/en/docs/ai-data/generative-apis/quickstart/).
</Info>
## Chat model

View file

@ -3,12 +3,12 @@ title: "SiliconFlow"
---
---
title: SiliconFlow
---
## title: SiliconFlow
<Info>
You can get an API key from the [Silicon Cloud](https://cloud.siliconflow.cn/account/ak).
You can get an API key from the [Silicon
Cloud](https://cloud.siliconflow.cn/account/ak).
</Info>
## Chat model

View file

@ -2,8 +2,6 @@
title: "Text Generation WebUI"
---
TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, and then configure it like this:
<Tabs>

View file

@ -2,8 +2,6 @@
title: "Together AI"
---
The Together API is a cloud platform for running large AI models. You can sign up [here](https://api.together.xyz/signup), copy your API key on the initial welcome screen, and then hit the play button on any model from the [Together Models list](https://docs.together.ai/docs/serverless-models). Change `~/.continue/config.json` to look like this:
<Tabs>

View file

@ -3,9 +3,8 @@ title: "Venice AI"
---
---
title: "Venice AI"
---
## title: "Venice AI"
Venice.AI is a privacy focused generative AI platform, allowing users to interact with open-source LLMs without storing any private user data. To get started with Venice's API, either purchase a pro account, stake $VVV to obtain daily inference allotments or fund your account with USD and head over to https://venice.ai/settings/api. Venice hosts state of the art open-source AI models and supports the OpenAI API standard, allowing users to easily interact with the platform. Learn more about the Venice API at https://venice.ai/api.

View file

@ -2,8 +2,6 @@
title: "vLLM"
---
vLLM is an open-source library for fast LLM inference which typically is used to serve multiple users at the same time. It can also be used to run a large model on multiple GPU:s (e.g. when it doesn´t fit in a single GPU). Run their OpenAI-compatible server using `vllm serve`. See their [server documentation](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html) and the [engine arguments documentation](https://docs.vllm.ai/en/latest/usage/engine_args.html).
```shell

View file

@ -2,8 +2,6 @@
title: "IBM WatsonX"
---
watsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.
## Setup

View file

@ -3,9 +3,9 @@ title: Anthropic
slug: ../anthropic
---
<Info>
You can get an API key from the [Anthropic console](https://console.anthropic.com/account/keys).
You can get an API key from the [Anthropic
console](https://console.anthropic.com/account/keys).
</Info>
## Chat model

View file

@ -3,7 +3,6 @@ title: Azure AI Foundry
slug: ../azure
---
Azure AI Foundry is a cloud-based service that provides access to models from OpenAI, Mistral AI, and others, integrated with the security and enterprise features of the Microsoft Azure platform. To get started, create an Azure AI Foundry resource in the [Azure portal](https://portal.azure.com).
<Info>
@ -124,7 +123,10 @@ Azure OpenAI currently does not offer any reranking models.
If you'd like to use OpenAI models but are concerned about privacy, you can use the Azure OpenAI service, which is GDPR and HIPAA compliant.
<Info>
**Getting access:** [Click here](https://azure.microsoft.com/en-us/products/ai-services/openai-service) to apply for access to the Azure OpenAI service. Response times are typically within a few days.
**Getting access:** [Click
here](https://azure.microsoft.com/en-us/products/ai-services/openai-service)
to apply for access to the Azure OpenAI service. Response times are typically
within a few days.
</Info>
## Azure OpenAI Service configuration

View file

@ -3,7 +3,6 @@ title: Amazon Bedrock
slug: ../bedrock
---
Amazon Bedrock is a fully managed service on AWS that provides access to foundation models from various AI companies through a single API.
## Chat model

View file

@ -3,9 +3,8 @@ title: DeepSeek
slug: ../deepseek
---
<Info>
You can get an API key from the [DeepSeek console](https://www.deepseek.com/).
You can get an API key from the [DeepSeek console](https://www.deepseek.com/).
</Info>
## Chat model

View file

@ -3,9 +3,9 @@ title: Gemini
slug: ../gemini
---
<Info>
You can get an API key from the [Google AI Studio](https://aistudio.google.com/).
You can get an API key from the [Google AI
Studio](https://aistudio.google.com/).
</Info>
## Chat model

View file

@ -3,9 +3,9 @@ title: Inception
slug: ../inception
---
<Info>
You can get an API key from the [Inception Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys).
You can get an API key from the [Inception
Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys).
</Info>
## Chat model

View file

@ -3,9 +3,13 @@ title: Mistral
slug: ../mistral
---
<Info>
You can get an API key from the [Mistral Dashboard](https://console.mistral.ai). Note that the API key for Codestral (codestral.mistral.ai) is different from for all other models (api.mistral.ai). If you are using a Codestral API key, you should set the `apiBase` to `https://codestral.mistral.ai/v1`. Otherwise, we will default to using `https://api.mistral.ai/v1`.
You can get an API key from the [Mistral
Dashboard](https://console.mistral.ai). Note that the API key for Codestral
(codestral.mistral.ai) is different from for all other models
(api.mistral.ai). If you are using a Codestral API key, you should set the
`apiBase` to `https://codestral.mistral.ai/v1`. Otherwise, we will default to
using `https://api.mistral.ai/v1`.
</Info>
## Chat model

View file

@ -3,7 +3,6 @@ title: Ollama
slug: ../ollama
---
Ollama is an open-source tool that allows to run large language models (LLMs) locally on their own computers. To use Ollama, you can install it [here](https://ollama.ai/download) and download the model you want to run with the `ollama run` command.
## Chat model

View file

@ -3,9 +3,9 @@ title: OpenAI
slug: ../openai
---
<Info>
You can get an API key from the [OpenAI console](https://platform.openai.com/account/api-keys)
You can get an API key from the [OpenAI
console](https://platform.openai.com/account/api-keys)
</Info>
## Chat model

View file

@ -3,9 +3,11 @@ title: Vertex AI
slug: ../vertexai
---
<Info>
You need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).
You need to enable the [Vertex AI
API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com)
and set up the [Google Application Default
Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).
</Info>
## Chat model

View file

@ -3,9 +3,8 @@ title: xAI
slug: ../xai
---
<Info>
You can get an API key from the [xAI console](https://console.x.ai/)
You can get an API key from the [xAI console](https://console.x.ai/)
</Info>
## Chat model

View file

@ -9,25 +9,50 @@ icon: "circle-info"
Apply model role
</Card>
<Card title="Chat Role" href="/customize/model-roles/chat" icon="file-lines" horizontal >
Chat model role
</Card>
<Card
title="Chat Role"
href="/customize/model-roles/chat"
icon="file-lines"
horizontal
>
Chat model role
</Card>
<Card title="Autocomplete Role" href="/customize/model-roles/autocomplete" icon="file-lines" horizontal >
Autocomplete model role
</Card>
<Card
title="Autocomplete Role"
href="/customize/model-roles/autocomplete"
icon="file-lines"
horizontal
>
Autocomplete model role
</Card>
<Card title="Edit Role" href="/customize/model-roles/edit" icon="file-lines" horizontal >
Edit model role
</Card>
<Card
title="Edit Role"
href="/customize/model-roles/edit"
icon="file-lines"
horizontal
>
Edit model role
</Card>
<Card title="Apply Role" href="/customize/model-roles/apply" icon="file-lines" horizontal >
Apply model role
</Card>
<Card
title="Apply Role"
href="/customize/model-roles/apply"
icon="file-lines"
horizontal
>
Apply model role
</Card>
<Card title="Embeddings Role" href="/customize/model-roles/embeddings" icon="file-lines" horizontal >
Embeddings model role
</Card>
<Card
title="Embeddings Role"
href="/customize/model-roles/embeddings"
icon="file-lines"
horizontal
>
Embeddings model role
</Card>
<Card title="Rerank Role" href="/customize/model-roles/reranking" icon="file-lines" horizontal >
Rerank model role

View file

@ -6,7 +6,6 @@ sidebar_position: 0
sidebar_label: Introduction
---
Models in Continue can be configured to be used for various roles in the extension.
- [`chat`](./chat.mdx): Used for chat conversations in the extension sidebar
@ -25,5 +24,6 @@ You can control which of the models in your assistant for a given role will be c
![Settings Active Models Section](/img/settings-model-roles.png)
<Info>
`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider`
`roles` are not explicitly defined within `config.json` (deprecated) - they
are infered by the top level keys like `embeddingsProvider`
</Info>

View file

@ -14,7 +14,8 @@ We recommend [Morph Fast Apply](https://morphllm.com) or [Relace's Instant Apply
However, most Chat models can also be used for applying code changes. We recommend smaller/cheaper models for the task, such as Claude 3.5 Haiku.
<Info>
Explore all apply models in [the Hub](https://hub.continue.dev/explore/models?roles=apply)
Explore all apply models in [the
Hub](https://hub.continue.dev/explore/models?roles=apply)
</Info>
## Prompt templating

View file

@ -5,7 +5,6 @@ keywords: [chat, model, role]
sidebar_position: 1
---
A "chat model" is an LLM that is trained to respond in a conversational format. Because they should be able to answer general questions and generate complex code, the best chat models are typically large, often 405B+ parameters.
In Continue, these models are used for normal [Chat](../../features/chat/quick-start) and [VS Code actions](../deep-dives/vscode-actions.md). The selected chat model will also be used for [Edit](../../features/edit/quick-start) and [Apply](./apply.mdx) if no `edit` or `apply` models are specified, respectively.

View file

@ -5,7 +5,6 @@ keywords: [edit, editing, model, role]
sidebar_position: 3
---
It's often useful to select a different model to respond to Edit prompts than for chat prompts, as Edits are often more code-specific and may require less conversational readability.
In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used.

View file

@ -5,15 +5,16 @@ keywords: [embedding, model, role, embeddings]
sidebar_position: 5
---
An "embeddings model" is trained to convert a piece of text into a vector, which can later be rapidly compared to other vectors to determine similarity between the pieces of text. Embeddings models are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
In Continue, embeddings are generated during indexing and then used by [@Codebase](../context/codebase.mdx) to perform similarity search over your codebase.
You can add `embed` to a model's `roles` to specify that it can be used to embed.
<Info>[Built-in model (VS Code only)]
`transformers.js` is used as a built-in embeddings model in VS Code. In JetBrains, there currently is no built-in embedder.
<Info>
[Built-in model (VS Code only)] `transformers.js` is used as a built-in
embeddings model in VS Code. In JetBrains, there currently is no built-in
embedder.
</Info>
## Recommended embedding models

View file

@ -5,12 +5,12 @@ sidebarTitle: "Introduction"
icon: "book-open"
---
* [`chat`](/customize/model-roles/chat): Used for chat conversations in the extension sidebar
* [`autocomplete`](/customize/model-roles/autocomplete): Used for autocomplete code suggestions in the editor
* [`edit`](/customize/model-roles/edit): Used to generate code based on edit prompts
* [`apply`](/customize/model-roles/apply): Used to decide how to apply edits to a file
* [`embed`](/customize/model-roles/embeddings): Used to generate embeddings used for vector search (@Codebase and @Docs context providers)
* [`rerank`](/customize/model-roles/reranking): Used to rerank results from vector search
- [`chat`](/customize/model-roles/chat): Used for chat conversations in the extension sidebar
- [`autocomplete`](/customize/model-roles/autocomplete): Used for autocomplete code suggestions in the editor
- [`edit`](/customize/model-roles/edit): Used to generate code based on edit prompts
- [`apply`](/customize/model-roles/apply): Used to decide how to apply edits to a file
- [`embed`](/customize/model-roles/embeddings): Used to generate embeddings used for vector search (@Codebase and @Docs context providers)
- [`rerank`](/customize/model-roles/reranking): Used to rerank results from vector search
These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](/reference#models) for more details.
@ -25,5 +25,6 @@ You can control which of the models in your assistant for a given role will be c
<Note>
### INFO
`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider`
`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider`
</Note>

View file

@ -5,7 +5,6 @@ keywords: [rerank, reranking, model, role]
sidebar_position: 6
---
A "reranking model" is trained to take two pieces of text (often a user question and a document) and return a relevancy score between 0 and 1, estimating how useful the document will be in answering the question. Rerankers are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
In Continue, rerankers are designated using the `rerank` role and used by [@Codebase](../context/codebase.mdx) in order to select the most relevant code snippets after vector search.

View file

@ -45,7 +45,6 @@ Solutions to common issues and debugging techniques.
[Get Help →](/troubleshooting)
***
---
These advanced topics help you get the most out of Continue in complex development environments.

View file

@ -33,5 +33,9 @@ Below that, the following settings which are not part of a configuration file ar
At the bottom of the User Settings page there is an "Experimental Settings" section which contains new or otherwise experimental settings, including:
<Warning>
**Auto-Accept Agent Edits**: Be very careful with this setting. When turned on, Agent mode's edit tool can make changes to files with no manual review or guaranteed stopping point. If on, diffs generated by the edit tool are automatically accepted and Agent proceeds with the next conversational turn. Off by default.
</Warning>
**Auto-Accept Agent Edits**: Be very careful with this setting. When turned
on, Agent mode's edit tool can make changes to files with no manual review or
guaranteed stopping point. If on, diffs generated by the edit tool are
automatically accepted and Agent proceeds with the next conversational turn.
Off by default.
</Warning>

View file

@ -16,15 +16,14 @@ All data collected by the open-source Continue extensions is anonymized and stri
The following usage information is collected and reported:
* **Suggestion Interactions:** Whether you accept or reject suggestions (excluding the actual code or prompts involved).
* **Model and Command Information:** The name of the model and command used.
* **Token Metrics:** The number of tokens generated.
* **System Information:** The name of your operating system (OS) and integrated development environment (IDE).
* **Pageviews:** General pageview statistics.
- **Suggestion Interactions:** Whether you accept or reject suggestions (excluding the actual code or prompts involved).
- **Model and Command Information:** The name of the model and command used.
- **Token Metrics:** The number of tokens generated.
- **System Information:** The name of your operating system (OS) and integrated development environment (IDE).
- **Pageviews:** General pageview statistics.
## How to Opt Out[​](#how-to-opt-out "Direct link to How to Opt Out")
You can disable anonymous telemetry by visiting the [User Settings Page](/customize/settings) and toggling "Allow Anonymous Telemetry" off.
Alternatively in VS Code, you can disable telemetry through your VS Code settings by unchecking the "Continue: Telemetry Enabled" box (this will override the Settings Page settings). VS Code settings can be accessed with `File` > `Preferences` > `Settings` (or use the keyboard shortcut `ctrl` + `,` on Windows/Linux or `cmd` + `,` on macOS).

View file

@ -5,9 +5,9 @@ description: "Continue's YAML configuration format provides more readable, maint
See also
* [Intro to YAML](https://yaml.org/)
* [JSON Continue Config Reference](/reference)
* [YAML Continue Config Reference](/reference)
- [Intro to YAML](https://yaml.org/)
- [JSON Continue Config Reference](/reference)
- [YAML Continue Config Reference](/reference)
## Create YAML file[​](#create-yaml-file "Direct link to Create YAML file")
@ -25,18 +25,17 @@ name: my-configurationversion: 0.0.1schema: v1
Add all model configurations in `config.json`, including models in `models`, `tabAutocompleteModel`, `embeddingsProvider`, and `reranker`, to the `models` section of your new YAML config file. A new `roles` YAML field specifies which roles a model can be used for, with possible values `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`.
* `models` in config should have `roles: [chat]`
- `models` in config should have `roles: [chat]`
* `tabAutocompleteModel`(s) in config should have `roles: [autocomplete]`
- `tabAutocompleteModel`(s) in config should have `roles: [autocomplete]`
* `embeddingsProvider` in config should have `roles: [embed]`
- `embeddingsProvider` in config should have `roles: [embed]`
* `reranker` in config should have `roles: [rerank]`
- `reranker` in config should have `roles: [rerank]`
* `experimental.modelRoles` is replaced by simply adding roles to the model
* `inlineEdit` -> e.g. `roles: [chat, edit]`
* `applyCodeBlock` -> e.g. `roles: [chat, apply]`
- `experimental.modelRoles` is replaced by simply adding roles to the model
- `inlineEdit` -> e.g. `roles: [chat, edit]`
- `applyCodeBlock` -> e.g. `roles: [chat, apply]`
Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](/reference#models)
@ -47,7 +46,41 @@ Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with
config.json
```json
{ "models": [ { "title": "GPT-4", "provider": "openai", "model": "gpt-4", "apiKey": "<YOUR_OPENAI_API_KEY>", "completionOptions": { "temperature": 0.5, "maxTokens": 2000 } }, { "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" }, { "title": "My Open AI Compatible Model", "provider": "openai", "apiBase": "http://3.3.3.3/v1", "model": "my-openai-compatible-model", "requestOptions": { "headers": { "X-Auth-Token": "<API_KEY>" } } } ], "tabAutocompleteModel": { "title": "My Starcoder", "provider": "ollama", "model": "starcoder2:3b" }, "embeddingsProvider": { "provider": "openai", "model": "text-embedding-ada-002", "apiKey": "<YOUR_OPENAI_API_KEY>", "maxEmbeddingChunkSize": 256, "maxEmbeddingBatchSize": 5 }, "reranker": { "name": "voyage", "params": { "model": "rerank-2", "apiKey": "<YOUR_VOYAGE_API_KEY>" } }}
{
"models": [
{
"title": "GPT-4",
"provider": "openai",
"model": "gpt-4",
"apiKey": "<YOUR_OPENAI_API_KEY>",
"completionOptions": { "temperature": 0.5, "maxTokens": 2000 }
},
{ "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" },
{
"title": "My Open AI Compatible Model",
"provider": "openai",
"apiBase": "http://3.3.3.3/v1",
"model": "my-openai-compatible-model",
"requestOptions": { "headers": { "X-Auth-Token": "<API_KEY>" } }
}
],
"tabAutocompleteModel": {
"title": "My Starcoder",
"provider": "ollama",
"model": "starcoder2:3b"
},
"embeddingsProvider": {
"provider": "openai",
"model": "text-embedding-ada-002",
"apiKey": "<YOUR_OPENAI_API_KEY>",
"maxEmbeddingChunkSize": 256,
"maxEmbeddingBatchSize": 5
},
"reranker": {
"name": "voyage",
"params": { "model": "rerank-2", "apiKey": "<YOUR_VOYAGE_API_KEY>" }
}
}
```
**After**
@ -64,15 +97,21 @@ Note that the `repoMapFileSelection` experimental model role has been deprecated
The JSON `contextProviders` field is replaced by the YAML `context` array.
* JSON `name` maps to `provider`
* JSON `params` map to `params`
- JSON `name` maps to `provider`
- JSON `params` map to `params`
**Before**
config.json
```json
{ "contextProviders": [ { "name": "docs" }, { "name": "codebase", "params": { "nRetrieve": 30, "nFinal": 3 } }, { "name": "diff", "params": {} } ]}
{
"contextProviders": [
{ "name": "docs" },
{ "name": "codebase", "params": { "nRetrieve": 30, "nFinal": 3 } },
{ "name": "diff", "params": {} }
]
}
```
**After**
@ -92,7 +131,7 @@ The `systemMessage` property has been replaced with a `rules` property that take
config.json
```json
{ "systemMessage": "Always give concise responses"}
{ "systemMessage": "Always give concise responses" }
```
**After**
@ -112,7 +151,15 @@ Rather than with `customCommands`, you can now use the `prompts` field to define
config.json
```json
{ "customCommands": [ { "name": "check", "description": "Check for mistakes in my code", "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found." } ]}
{
"customCommands": [
{
"name": "check",
"description": "Check for mistakes in my code",
"prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found."
}
]
}
```
**After**
@ -132,7 +179,12 @@ Documentation is largely the same, but the `title` property has been replaced wi
config.json
```json
{ "docs": [ { "startUrl": "https://docs.nestjs.com/", "title": "nest.js" }, { "startUrl": "https://mysite.com/docs/", "title": "My site" } ]}
{
"docs": [
{ "startUrl": "https://docs.nestjs.com/", "title": "nest.js" },
{ "startUrl": "https://mysite.com/docs/", "title": "My site" }
]
}
```
**After**
@ -147,18 +199,31 @@ docs: - name: nest.js startUrl: https://docs.nestjs.com/ - name: My site
**Properties:**
* `name` (**required**): The name of the MCP server.
* `command` (**required**): The command used to start the server.
* `args`: An optional array of arguments for the command.
* `env`: An optional map of environment variables for the server process.
* `cwd`: An optional working directory to run the command in. Can be absolute or relative path.
- `name` (**required**): The name of the MCP server.
- `command` (**required**): The command used to start the server.
- `args`: An optional array of arguments for the command.
- `env`: An optional map of environment variables for the server process.
- `cwd`: An optional working directory to run the command in. Can be absolute or relative path.
**Before**
config.json
```json
{ "experimental": { "modelContextProtocolServers": [ { "transport": { "type": "stdio", "command": "uvx", "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"], "env": { "KEY": "<VALUE>" } } } ] }}
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"],
"env": { "KEY": "<VALUE>" }
}
}
]
}
}
```
**After**
@ -169,7 +234,7 @@ config.yaml
mcpServers: - name: My MCP Server command: uvx args: - mcp-server-sqlite - --db-path - /Users/NAME/test.db env: KEY: <VALUE>
```
***
---
## Deprecated configuration options[​](#deprecated-configuration-options "Direct link to Deprecated configuration options")
@ -179,31 +244,29 @@ See the [JSON Config Reference](/reference) for more information on fully deprec
The following top-level fields from `config.json` still work when using `config.json` but have been deprecated and don't have a YAML equivalent:
* Slash commands (JSON `slashCommands`)
- Slash commands (JSON `slashCommands`)
* top-level `requestOptions`
- top-level `requestOptions`
* top-level `completionOptions`
- top-level `completionOptions`
* `tabAutocompleteOptions`
- `tabAutocompleteOptions`
- `disable`
- `maxPromptTokens`
- `debounceDelay`
- `maxSuffixPercentage`
- `prefixPercentage`
- `template`
- `onlyMyCode`
* `disable`
* `maxPromptTokens`
* `debounceDelay`
* `maxSuffixPercentage`
* `prefixPercentage`
* `template`
* `onlyMyCode`
* `analytics`
- `analytics`
The following top-level fields from `config.json` have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI
* `customCommands`
* `experimental`
* `userToken`
- `customCommands`
- `experimental`
- `userToken`
## New Configuration options[​](#new-configuration-options "Direct link to New Configuration options")
The YAML configuration format offers new configuration options not available in the JSON format. See the [YAML Config Reference](/reference) for more information.

View file

@ -17,22 +17,22 @@ The following handshake describes how Agent uses tools:
6. The model responds, potentially with another tool call and step 2 begins again
<Info>
In [Chat mode](/features/chat/quick-start), tools are **not** included in the request to the model.
In [Chat mode](/features/chat/quick-start), tools are **not** included in the
request to the model.
</Info>
## Built-in tools[​](#built-in-tools "Direct link to Built-in tools")
Continue includes several built-in tools which provide the model access to IDE functionality:
* **Read file** (`read_file`): read the contents of a file within the project
* **Read currently open file** (`read_currently_open_file`): read the contents of the currently open file
* **Create new file** (`create_new_file`): Create a new file within the project, with path and contents specified by the model
* **Exact search** (`exact_search`): perform a `ripgrep` search within the project
* **Glob search** (`file_glob_search`): perform a glob search on files in the project. Currently limits to 100 output and warns the Agent if limit reached.
* **Run terminal command** (`run_terminal_command`): run a terminal command from the workspace root
* **Search web** (`search_web`): Perform a web search to get top results
* **View diff** (`view_diff`): View the current working git diff
* **View repo map** (`view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](/customize/custom-providers#repository-map)
* **View subdirectory** (`view_subdirectory`): request a copy of a repo map for a specific directory within the project
* **Create Rule Block** (`create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation
- **Read file** (`read_file`): read the contents of a file within the project
- **Read currently open file** (`read_currently_open_file`): read the contents of the currently open file
- **Create new file** (`create_new_file`): Create a new file within the project, with path and contents specified by the model
- **Exact search** (`exact_search`): perform a `ripgrep` search within the project
- **Glob search** (`file_glob_search`): perform a glob search on files in the project. Currently limits to 100 output and warns the Agent if limit reached.
- **Run terminal command** (`run_terminal_command`): run a terminal command from the workspace root
- **Search web** (`search_web`): Perform a web search to get top results
- **View diff** (`view_diff`): View the current working git diff
- **View repo map** (`view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](/customize/custom-providers#repository-map)
- **View subdirectory** (`view_subdirectory`): request a copy of a repo map for a specific directory within the project
- **Create Rule Block** (`create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation

View file

@ -13,7 +13,9 @@ You can switch to `Agent` in the mode selector below the chat input box.
![How to select agent mode](/images/mode-select-agent.png)
<Info>
If Agent is disabled with a `Not Supported` message, the selected model or provider doesn't support tools, or Continue doesn't yet support tools with it. See [Model Blocks](/customization/models) for more information.
If Agent is disabled with a `Not Supported` message, the selected model or
provider doesn't support tools, or Continue doesn't yet support tools with it.
See [Model Blocks](/customization/models) for more information.
</Info>
### Chat with Agent[​](#chat-with-agent "Direct link to Chat with Agent")
@ -41,4 +43,3 @@ You can use tool policies to exclude or make usage automatic for specific tools.
Any data returned from a tool call is automatically fed back into the model as a context item. Most errors are also caught and returned, so that Agent mode can decide how to proceed.
![agent response](/images/features/agent/images/agent-response-c7287c82aac93fb4376f9d85b352b2d7.png)

View file

@ -7,8 +7,8 @@ description: "Autocomplete is a that uses a combination of retrieval methods an
In order to display suggestions quickly, without sending too many requests, we do the following:
* Debouncing: If you are typing quickly, we won't make a request on each keystroke. Instead, we wait until you have finished.
* Caching: If your cursor is in a position that we've already generated a completion for, this completion is reused. For example, if you backspace, we'll be able to immediately show the suggestion you saw before.
- Debouncing: If you are typing quickly, we won't make a request on each keystroke. Instead, we wait until you have finished.
- Caching: If your cursor is in a position that we've already generated a completion for, this completion is reused. For example, if you backspace, we'll be able to immediately show the suggestion you saw before.
## Context[​](#context "Direct link to Context")
@ -18,11 +18,10 @@ Continue uses a number of retrieval methods to find relevant snippets from your
Language models aren't perfect, but can be made much closer by adjusting their output. We do extensive post-processing on responses before displaying a suggestion, including:
* filtering out special tokens
* stopping early when re-generating code
* fixing indentation
- filtering out special tokens
- stopping early when re-generating code
- fixing indentation
We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition.
You can learn more about how it works in the [Autocomplete deep dive](/customization/models#autocomplete).

View file

@ -21,4 +21,3 @@ For more granular control, use `cmd/ctrl` + `→` to accept parts of the suggest
### Forcing a suggestion (VS Code)[​](#forcing-a-suggestion-vs-code "Direct link to Forcing a suggestion (VS Code)")
If you want to trigger a suggestion immediately without waiting, or if you've dismissed a suggestion and want a new one, you can force it by using the keyboard shortcut **`cmd/ctrl` + `alt` + `space`**.

View file

@ -16,30 +16,30 @@ When you start a chat conversation, Continue:
### Automatic Context[​](#automatic-context "Direct link to Automatic Context")
* Selected code in your editor
* Current file context when relevant
* Previous conversation history in the session
- Selected code in your editor
- Current file context when relevant
- Previous conversation history in the session
### Manual Context[​](#manual-context "Direct link to Manual Context")
* `@Codebase` - Search and include relevant code from your project
* `@Docs` - Include documentation context
* `@Files` - Reference specific files
* Custom context providers
- `@Codebase` - Search and include relevant code from your project
- `@Docs` - Include documentation context
- `@Files` - Reference specific files
- Custom context providers
## Response Handling[​](#response-handling "Direct link to Response Handling")
Each code section in the AI response includes action buttons:
* **Apply to current file** - Replace selected code
* **Insert at cursor** - Add code at cursor position
* **Copy** - Copy code to clipboard
- **Apply to current file** - Replace selected code
- **Insert at cursor** - Add code at cursor position
- **Copy** - Copy code to clipboard
## Session Management[​](#session-management "Direct link to Session Management")
* Use `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) to start a new session
* Clears all previous context for a fresh start
* Helpful for switching between different tasks
- Use `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) to start a new session
- Clears all previous context for a fresh start
- Helpful for switching between different tasks
## Advanced Features[​](#advanced-features "Direct link to Advanced Features")
@ -51,10 +51,9 @@ View the exact prompt sent to the AI model in the [prompt logs](/troubleshooting
Learn more about how context providers work:
* [Codebase Context](/customization/overview#codebase-context)
* [Documentation Context](/customization/overview#documentation-context)
- [Codebase Context](/customization/overview#codebase-context)
- [Documentation Context](/customization/overview#documentation-context)
***
*Chat is designed to feel like a natural conversation while maintaining full transparency about what context is being used.*
---
_Chat is designed to feel like a natural conversation while maintaining full transparency about what context is being used._

View file

@ -12,16 +12,16 @@ Type your question or request in the chat input and press Enter.
**Examples:**
* "Explain this function"
* "How do I handle errors in this code?"
* "Generate a test for this component"
- "Explain this function"
- "How do I handle errors in this code?"
- "Generate a test for this component"
### 2. Include Code Context[​](#2-include-code-context "Direct link to 2. Include Code Context")
Select code in your editor, then use the keyboard shortcut to include it in your chat:
* VS Code
* JetBrains
- VS Code
- JetBrains
Press `Cmd/Ctrl + L` to send selected code to chat
@ -31,18 +31,18 @@ Press `Cmd/Ctrl + J` to send selected code to chat
Type `@` to include specific context:
* `@Codebase` - Search your project for relevant code
* `@Docs` - Include documentation
* `@Files` - Reference specific files
* `@Terminal` - Include terminal output
- `@Codebase` - Search your project for relevant code
- `@Docs` - Include documentation
- `@Files` - Reference specific files
- `@Terminal` - Include terminal output
## Working with Responses[​](#working-with-responses "Direct link to Working with Responses")
When the AI provides code in its response, you'll see action buttons:
* **Apply to current file** - Replace your selected code
* **Insert at cursor** - Add code at your cursor position
* **Copy** - Copy code to clipboard
- **Apply to current file** - Replace your selected code
- **Insert at cursor** - Add code at your cursor position
- **Copy** - Copy code to clipboard
## Pro Tips[​](#pro-tips "Direct link to Pro Tips")
@ -54,17 +54,17 @@ Press `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) in an empty chat to
Include details about:
* What you're trying to accomplish
* Any constraints or requirements
* Your preferred coding style or patterns
- What you're trying to accomplish
- Any constraints or requirements
- Your preferred coding style or patterns
### Iterate[​](#iterate "Direct link to Iterate")
If the first response isn't perfect:
* Ask follow-up questions
* Request modifications
* Provide additional context
- Ask follow-up questions
- Request modifications
- Provide additional context
## Common Use Cases[​](#common-use-cases "Direct link to Common Use Cases")
@ -84,7 +84,6 @@ Describe what you want: "Create a React component that displays a user profile"
Select code and ask "How can I make this more efficient?"
***
*Chat is designed for quick interactions and iterative problem-solving. Don't hesitate to ask follow-up questions!*
---
_Chat is designed for quick interactions and iterative problem-solving. Don't hesitate to ask follow-up questions!_

View file

@ -8,4 +8,3 @@ The model response is then streamed directly back to the highlighted range in yo
If you accept the diff, we remove the previously highlighted lines, and if you reject the diff, we remove the proposed changes.
If you would like to view the exact prompt that is sent to the model during an edit, you can [find it in the prompt logs](/troubleshooting#check-the-logs).

View file

@ -8,9 +8,9 @@ Edit is a convenient way to make quick changes to specific code and files. Selec
Edit is recommended for small, targeted changes, such as
* Writing comments
* Generating unit tests
* Refactoring functions or methods
- Writing comments
- Generating unit tests
- Refactoring functions or methods
## Highlight code and activate[​](#highlight-code-and-activate "Direct link to Highlight code and activate")
@ -45,4 +45,3 @@ Along with adding highlighted code, you can also manually add files to edit usin
## Jetbrains[​](#jetbrains "Direct link to Jetbrains")
In Jetbrains, Edit is implemented as an inline popup. See the header GIF example.

View file

@ -12,13 +12,15 @@ Click `Install` on the [Continue extension page in the Visual Studio Marketplace
</Step>
<Step title="Install in VS Code">
This will open the Continue extension page in VS Code, where you will need to click `Install` again
This will open the Continue extension page in VS Code, where you will need to
click `Install` again
</Step>
<Step title="Move to Right Sidebar">
The Continue logo will appear on the left sidebar. For a better experience, move Continue to the right sidebar
![move-to-right-sidebar](/images/move-to-right-sidebar-b2d315296198e41046fc174d8178f30a.gif)
</Step>
<Step title="Sign In">
@ -27,7 +29,8 @@ The Continue logo will appear on the left sidebar. For a better experience, move
</Steps>
<Info>
If you have any problems, see the [troubleshooting guide](/troubleshooting) or ask for help in [our Discord](https://discord.gg/NWtdYexhMs)
If you have any problems, see the [troubleshooting guide](/troubleshooting) or
ask for help in [our Discord](https://discord.gg/NWtdYexhMs)
</Info>
</Tab>
@ -40,13 +43,14 @@ Open your JetBrains IDE and open **Settings** using `Ctrl` + `Alt` + `S`
</Step>
<Step title="Find Continue Plugin">
Select **Plugins** on the sidebar and search for "Continue" in the marketplace
Select **Plugins** on the sidebar and search for "Continue" in the marketplace
</Step>
<Step title="Install Plugin">
Click `Install`, which will cause the Continue logo to show up on the right toolbar
![jetbrains-getting-started.png](/images/getting-started/images/jetbrains-getting-started-d62b7edee1cdd58508c5075faf285955.png)
</Step>
<Step title="Sign In">
@ -55,7 +59,8 @@ Click `Install`, which will cause the Continue logo to show up on the right tool
</Steps>
<Info>
If you have any problems, see the [troubleshooting guide](/troubleshooting) or ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ)
If you have any problems, see the [troubleshooting guide](/troubleshooting) or
ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ)
</Info>
</Tab>
@ -66,4 +71,3 @@ Click `Install`, which will cause the Continue logo to show up on the right tool
Click "Get started" to sign in to the hub and start using assistants.
![Hub Onboarding in the Extension](/images/getting-started/images/hub-onboarding-card-81abd457b6d131c4b0aa89a5a6d647d3.png)

View file

@ -44,4 +44,3 @@ description: "To quickly understand what you can do with Continue, check out eac
</Info>
</Tab>
</Tabs>

View file

@ -7,8 +7,8 @@ description: "Continue offers several way to provide your custom context to the
Continue can retrieve context from a custom HTTP server that you create and serve. Add the `@HTTP` context provider to your configuration like this:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -19,10 +19,19 @@ context: provider: http params: url: https://myserver.com/context-provider
config.json
```json
{ "name": "http", "params": { "url": "https://myserver.com/context-provider", "title": "http", "description": "Custom HTTP Context Provider", "displayTitle": "My Custom Context", "options": { "maxItems": 20 } }}
{
"name": "http",
"params": {
"url": "https://myserver.com/context-provider",
"title": "http",
"description": "Custom HTTP Context Provider",
"displayTitle": "My Custom Context",
"options": { "maxItems": 20 }
}
}
```
Then, create a server that responds to requests as are made from [HttpContextProvider.ts](https://github.com/continuedev/continue/blob/main/core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context\_provider\_server.py](https://github.com/continuedev/continue/blob/main/core/context/providers/context_provider_server.py) for an example that uses FastAPI.
Then, create a server that responds to requests as are made from [HttpContextProvider.ts](https://github.com/continuedev/continue/blob/main/core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context_provider_server.py](https://github.com/continuedev/continue/blob/main/core/context/providers/context_provider_server.py) for an example that uses FastAPI.
The `"options"` property can be used to send additional parameters to your endpoint. The full request body has the following shape:
@ -31,7 +40,10 @@ The `"options"` property can be used to send additional parameters to your endpo
```
<Info>
The following methods for creating custom context providers are deprecated. We recommend using HTTP context providers, [MCP Servers](/customization/mcp-tools), and [Prompts](/customization/prompts) where possible.
The following methods for creating custom context providers are deprecated. We
recommend using HTTP context providers, [MCP
Servers](/customization/mcp-tools), and [Prompts](/customization/prompts)
where possible.
</Info>
## Using CustomContextProvider[​](#using-customcontextprovider "Direct link to Using CustomContextProvider")
@ -42,11 +54,11 @@ Custom context providers can be implemented in a `config.ts` placed in your Cont
interface CustomContextProvider { title: string; displayTitle?: string; description?: string; renderInlineAs?: string; type?: ContextProviderType; getContextItems( query: string, extras: ContextProviderExtras, ): Promise<ContextItem[]>; loadSubmenuItems?: ( args: LoadSubmenuItemsArgs, ) => Promise<ContextSubmenuItem[]>;}
```
As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. The return type of `getContextItems` *must* be an array of objects that have all of the following properties:
As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. The return type of `getContextItems` _must_ be an array of objects that have all of the following properties:
* `name`: The name of the context item, which will be displayed as a title
* `description`: A longer description of the context item
* `content`: The actual content of the context item, which will be fed to the LLM as context
- `name`: The name of the context item, which will be displayed as a title
- `description`: A longer description of the context item
- `content`: The actual content of the context item, which will be fed to the LLM as context
\~/.continue/config.ts
@ -93,25 +105,24 @@ Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.t
### `CustomContextProvider` Reference[​](#customcontextprovider-reference "Direct link to customcontextprovider-reference")
* `title`: An identifier for the context provider
- `title`: An identifier for the context provider
* `displayTitle` (optional): The title displayed in the dropdown
- `displayTitle` (optional): The title displayed in the dropdown
* `description` (optional): The longer description displayed in the dropdown when hovered
- `description` (optional): The longer description displayed in the dropdown when hovered
* `type` (optional): The type of context provider. Options are "normal", "query", and "submenu". Defaults to "normal".
- `type` (optional): The type of context provider. Options are "normal", "query", and "submenu". Defaults to "normal".
* `renderInlineAs` (optional): The string that will be rendered inline at the top of the prompt. If no value is provided, the `displayTitle` will be used. An empty string can be provided to prevent rendering the default `displayTitle`.
- `renderInlineAs` (optional): The string that will be rendered inline at the top of the prompt. If no value is provided, the `displayTitle` will be used. An empty string can be provided to prevent rendering the default `displayTitle`.
* `getContextItems`: A function that returns the documents to include in the prompt. It should return a list of `ContextItem`s, and is given access to the following arguments:
- `getContextItems`: A function that returns the documents to include in the prompt. It should return a list of `ContextItem`s, and is given access to the following arguments:
- `extras.fullInput`: A string representing the user's full input to the text box. This can be used for example to generate an embedding to compare against a set of other embedded documents
- `extras.embeddingsProvider`: The embeddings provider has an `embed` function that will convert text (such as `fullInput`) to an embedding
- `extras.llm`: The current default LLM, which you can use to make completion requests
- `extras.ide`: An instance of the `IDE` class, which lets you gather various sources of information from the IDE, including the contents of the terminal, the list of open files, or any warnings in the currently open file.
- `query`: (not currently used) A string representing the query
* `extras.fullInput`: A string representing the user's full input to the text box. This can be used for example to generate an embedding to compare against a set of other embedded documents
* `extras.embeddingsProvider`: The embeddings provider has an `embed` function that will convert text (such as `fullInput`) to an embedding
* `extras.llm`: The current default LLM, which you can use to make completion requests
* `extras.ide`: An instance of the `IDE` class, which lets you gather various sources of information from the IDE, including the contents of the terminal, the list of open files, or any warnings in the currently open file.
* `query`: (not currently used) A string representing the query
* `loadSubmenuItems` (optional): A function that returns a list of `ContextSubmenuItem`s to display in a submenu. It is given access to an `IDE`, the same that is passed to `getContextItems`. .
- `loadSubmenuItems` (optional): A function that returns a list of `ContextSubmenuItem`s to display in a submenu. It is given access to an `IDE`, the same that is passed to `getContextItems`. .
## Extension API for VSCode[​](#extension-api-for-vscode "Direct link to Extension API for VSCode")
@ -120,7 +131,7 @@ Continue exposes an API for registering context providers from a 3rd party VSCod
package.json
```json
{ "extensionDependencies": ["continue.continue"]}
{ "extensionDependencies": ["continue.continue"] }
```
Or install the Continue Core module from npm:
@ -134,7 +145,7 @@ You can add the Continue core module as a dev dependency in your `package.json`:
package.json
```json
{ "devDependencies": { "@continuedev/core": "^0.0.1" }}
{ "devDependencies": { "@continuedev/core": "^0.0.1" } }
```
Then, you can use the `registerCustomContextProvider` function to register your context provider. Your custom context provider must implement the `IContextProvider` interface. Here is an example:
@ -148,4 +159,3 @@ import * as vscode from "vscode";import { IContextProvider, ContextProviderDes
This will register `MyCustomProvider` with Continue!
![alt text](/images/guides/images/image-8befb5162b7779402f70ff42bb589edb.png)

View file

@ -13,7 +13,7 @@ There are a number of available vector databases, but because most vector databa
[LanceDB](https://lancedb.github.io/lancedb/basic/) is a good choice for this because it can run in-memory with libraries for both Python and Node.js. This means that in the beginning you can focus on writing code rather than setting up infrastructure. If you have already chosen a vector database, then using this instead of LanceDB is also a fine choice.
## Step 3: Choose a "chunking" strategy[​](#step-3-choose-a-chunking-strategy "Direct link to Step 3: Choose a \"chunking\" strategy")
## Step 3: Choose a "chunking" strategy[​](#step-3-choose-a-chunking-strategy 'Direct link to Step 3: Choose a "chunking" strategy')
Most embeddings models can only handle a limited amount of text at once. To get around this, we "chunk" our code into smaller pieces.
@ -40,7 +40,10 @@ from lancedb.pydantic import LanceModel, Vectorfrom lancedb.embeddings import ge
```
<Check>
If you are indexing more than one repository, it is best to store these in separate "tables" (terminology used by LanceDB) or "collections" (terminology used by some other vector DBs). The alternative of adding a "repository" field and then filtering by this is less performant.
If you are indexing more than one repository, it is best to store these in
separate "tables" (terminology used by LanceDB) or "collections" (terminology
used by some other vector DBs). The alternative of adding a "repository" field
and then filtering by this is less performant.
</Check>
Regardless of which database or model you have chosen, your script should iterate over all of the files that you wish to index, chunk them, generate embeddings for each chunk, and then insert all of the chunks into your vector database.
@ -50,7 +53,8 @@ Regardless of which database or model you have chosen, your script should iterat
<Check>
In a perfect production version, you would want to build "automatic, incremental indexing", so that you whenever a file changes, that file and nothing else is automatically re-indexed. This has the benefits of perfectly up-to-date embeddings and lower cost.
That said, we highly recommend first building and testing the pipeline before attempting this. Unless your codebase is being entirely rewritten frequently, an incremental refresh of the index is likely to be sufficient and reasonably cheap.
That said, we highly recommend first building and testing the pipeline before attempting this. Unless your codebase is being entirely rewritten frequently, an incremental refresh of the index is likely to be sufficient and reasonably cheap.
</Check>
At this point, you've written your indexing script and tested that you can make queries from your vector database. Now, you'll want a plan for when to run the indexing script.
@ -69,8 +73,8 @@ Here is a reference implementation using FastAPI that is capable of handling req
After you've set up your server, you can configure Continue to use it by adding the "http" context provider to your `contextProviders` array in your configuration:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -81,7 +85,19 @@ context: - provider: http params: url: https://myserver.com/retrieve
config.json
```json
{ "contextProviders": [ { "name": "http", "params": { "url": "https://myserver.com/retrieve", "title": "http", "description": "Custom HTTP Context Provider", "displayTitle": "My Custom Context" } } ]}
{
"contextProviders": [
{
"name": "http",
"params": {
"url": "https://myserver.com/retrieve",
"title": "http",
"description": "Custom HTTP Context Provider",
"displayTitle": "My Custom Context"
}
}
]
}
```
## Step 7 (Bonus): Set up reranking[​](#step-7-bonus-set-up-reranking "Direct link to Step 7 (Bonus): Set up reranking")
@ -95,4 +111,3 @@ If you wish to return 10 total results for each query for example, then you woul
3. Sort the results by relevancy score and return the top 10
We recommend using the `rerank-2` model from Voyage AI, which has examples of usage [here](https://docs.voyageai.com/docs/reranker).

View file

@ -3,11 +3,11 @@ title: "How to Self-Host a Model"
description: "You can deploy a model in your , , , , or using:"
---
* [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi)
* [vLLM](https://github.com/continuedev/deploy-os-code-llm#vllm)
* [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot)
* [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) (OpenAI compatible API)
* [Lambda](https://github.com/continuedev/deploy-os-code-llm#lambda)
- [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi)
- [vLLM](https://github.com/continuedev/deploy-os-code-llm#vllm)
- [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot)
- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) (OpenAI compatible API)
- [Lambda](https://github.com/continuedev/deploy-os-code-llm#lambda)
## Self-hosting an open-source model[​](#self-hosting-an-open-source-model "Direct link to Self-hosting an open-source model")
@ -19,8 +19,8 @@ However, if neither of these are the case, you will need to wire up a new LLM ob
Basic authentication can be done with any provider using the `apiKey` field:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -31,15 +31,24 @@ models: - name: Ollama provider: ollama model: llama2-7b apiKey: <YOUR
config.json
```json
{ "models": [ { "title": "Ollama", "provider": "ollama", "model": "llama2-7b", "apiKey": "<YOUR_CUSTOM_OLLAMA_SERVER_API_KEY>" } ]}
{
"models": [
{
"title": "Ollama",
"provider": "ollama",
"model": "llama2-7b",
"apiKey": "<YOUR_CUSTOM_OLLAMA_SERVER_API_KEY>"
}
]
}
```
This translates to the header `"Authorization": "Bearer xxx"`.
If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like in this example with Ollama:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -50,13 +59,22 @@ models: - name: Ollama provider: ollama model: llama2-7b requestOption
config.json
```json
{ "models": [ { "title": "Ollama", "provider": "ollama", "model": "llama2-7b", "requestOptions": { "headers": { "X-Auth-Token": "xxx" } } } ]}
{
"models": [
{
"title": "Ollama",
"provider": "ollama",
"model": "llama2-7b",
"requestOptions": { "headers": { "X-Auth-Token": "xxx" } }
}
]
}
```
Similarly if your model requires a Certificate for authentication, you may use the `requestOptions.clientCertificate` property like in the example below:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -67,6 +85,20 @@ models: - name: Ollama provider: ollama model: llama2-7b requestOption
config.json
```json
{ "models": [ { "title": "Ollama", "provider": "ollama", "model": "llama2-7b", "requestOptions": { "clientCertificate": { "cert": "C:\\tempollama.pem", "key": "C:\\tempollama.key", "passphrase": "c0nt!nu3" } } } ]}
{
"models": [
{
"title": "Ollama",
"provider": "ollama",
"model": "llama2-7b",
"requestOptions": {
"clientCertificate": {
"cert": "C:\\tempollama.pem",
"key": "C:\\tempollama.key",
"passphrase": "c0nt!nu3"
}
}
}
]
}
```

View file

@ -15,8 +15,8 @@ Ollama is the fastest way to get up and running with local language models. We r
2. Open a terminal and run `ollama run llama3.1:8b`
3. Change your Continue config file like this:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -27,13 +27,19 @@ models: - name: Llama 3.1 8b provider: ollama model: llama3.1-8b
config.json
```json
{ "models": [ { "title": "Llama 3.1 8b", "provider": "ollama", "model": "llama3.1-8b" } ] }
{
"models": [
{ "title": "Llama 3.1 8b", "provider": "ollama", "model": "llama3.1-8b" }
]
}
```
## Groq[​](#groq "Direct link to Groq")
<Info>
Check if your chosen model is still supported by referring to the [model documentation](https://console.groq.com/docs/models). If a model has been deprecated, you may encounter a 404 error when attempting to use it.
Check if your chosen model is still supported by referring to the [model
documentation](https://console.groq.com/docs/models). If a model has been
deprecated, you may encounter a 404 error when attempting to use it.
</Info>
Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
@ -41,8 +47,8 @@ Groq provides the fastest available inference for open-source language models, i
1. Obtain an API key [here](https://console.groq.com/keys)
2. Update your Continue config file like this:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -53,7 +59,16 @@ models: - name: Llama 3.3 70b Versatile provider: groq model: llama-3.3-7
config.json
```json
{ "models": [ { "title": "Llama 3.3 70b Versatile", "provider": "groq", "model": "llama-3.3-70b-versatile", "apiKey": "<YOUR_GROQ_API_KEY>" } ]}
{
"models": [
{
"title": "Llama 3.3 70b Versatile",
"provider": "groq",
"model": "llama-3.3-70b-versatile",
"apiKey": "<YOUR_GROQ_API_KEY>"
}
]
}
```
## Together AI[​](#together-ai "Direct link to Together AI")
@ -64,8 +79,8 @@ Together AI provides fast and reliable inference of open-source models. You'll b
2. Copy your API key that appears on the welcome screen
3. Update your Continue config file like this:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -76,7 +91,16 @@ models: - name: Llama 3.1 405b provider: together model: llama3.1-405b
config.json
```json
{ "models": [ { "title": "Llama 3.1 405b", "provider": "together", "model": "llama3.1-405b", "apiKey": "<YOUR_TOGETHER_API_KEY>" } ]}
{
"models": [
{
"title": "Llama 3.1 405b",
"provider": "together",
"model": "llama3.1-405b",
"apiKey": "<YOUR_TOGETHER_API_KEY>"
}
]
}
```
## Replicate[​](#replicate "Direct link to Replicate")
@ -86,8 +110,8 @@ Replicate makes it easy to host and run open-source AI with an API.
1. Get your Replicate API key [here](https://replicate.ai/)
2. Change your Continue config file like this:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -98,19 +122,28 @@ models: - name: Llama 3.1 405b provider: replicate model: llama3.1-405b
config.json
```json
{ "models": [ { "title": "Llama 3.1 405b", "provider": "replicate", "model": "llama3.1-405b", "apiKey": "<YOUR_REPLICATE_API_KEY>" } ]}
{
"models": [
{
"title": "Llama 3.1 405b",
"provider": "replicate",
"model": "llama3.1-405b",
"apiKey": "<YOUR_REPLICATE_API_KEY>"
}
]
}
```
## SambaNova[​](#sambanova "Direct link to SambaNova")
SambaNova Cloud provides world record Llama3.1 70B/405B serving.
1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue\&utm_medium=external\&utm_campaign=cloud_signup)
1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup)
2. Copy your API key
3. Update your Continue config file like this:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -121,7 +154,16 @@ models: - name: SambaNova Llama 3.1 405B provider: sambanova model: llama
config.json
```json
{ "models": [ { "title": "SambaNova Llama 3.1 405B", "provider": "sambanova", "model": "llama3.1-405b", "apiKey": "<YOUR_SAMBA_API_KEY>" } ]}
{
"models": [
{
"title": "SambaNova Llama 3.1 405B",
"provider": "sambanova",
"model": "llama3.1-405b",
"apiKey": "<YOUR_SAMBA_API_KEY>"
}
]
}
```
## Cerebras Inference[​](#cerebras-inference "Direct link to Cerebras Inference")
@ -132,8 +174,8 @@ Cerebras Inference uses specialized silicon to provides fast inference for the L
2. Create and copy the API key for use in Continue.
3. Update your Continue config file:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -144,6 +186,14 @@ models: - name: Cerebras Llama 3.1 70B provider: cerebras model: llama3.1
config.json
```json
{ "models": [ { "title": "Cerebras Llama 3.1 70B", "provider": "cerebras", "model": "llama3.1-70b", "apiKey": "<YOUR_CEREBRAS_API_KEY>" } ]}
{
"models": [
{
"title": "Cerebras Llama 3.1 70B",
"provider": "cerebras",
"model": "llama3.1-70b",
"apiKey": "<YOUR_CEREBRAS_API_KEY>"
}
]
}
```

View file

@ -7,10 +7,10 @@ description: "This comprehensive guide will walk you through setting up Ollama w
Before getting started, ensure your system meets these requirements:
* Operating System: macOS, Linux, or Windows
* RAM: Minimum 8GB (16GB+ recommended)
* Storage: At least 10GB free space
* Continue extension installed
- Operating System: macOS, Linux, or Windows
- RAM: Minimum 8GB (16GB+ recommended)
- Storage: At least 10GB free space
- Continue extension installed
## Installation Steps[​](#installation-steps "Direct link to Installation Steps")
@ -37,17 +37,26 @@ Configure Continue to work with your local Ollama instance:
### Continue Configuration[​](#continue-configuration "Direct link to Continue Configuration")
```json
{ "models": [ { "title": "Ollama", "provider": "ollama", "model": "llama2", "apiBase": "http://localhost:11434" } ]}
{
"models": [
{
"title": "Ollama",
"provider": "ollama",
"model": "llama2",
"apiBase": "http://localhost:11434"
}
]
}
```
### Advanced Settings[​](#advanced-settings "Direct link to Advanced Settings")
For optimal performance, consider these advanced configuration options:
* Memory optimization
* GPU acceleration
* Custom model parameters
* Performance tuning
- Memory optimization
- GPU acceleration
- Custom model parameters
- Performance tuning
## Best Practices[​](#best-practices "Direct link to Best Practices")
@ -63,10 +72,10 @@ Choose models based on your specific needs:
To get the best performance from Ollama:
* Monitor system resources
* Adjust context window size
* Use appropriate model sizes
* Enable GPU acceleration when available
- Monitor system resources
- Adjust context window size
- Use appropriate model sizes
- Enable GPU acceleration when available
## Troubleshooting[​](#troubleshooting "Direct link to Troubleshooting")
@ -76,15 +85,15 @@ Here are solutions to common problems you might encounter:
#### Connection Problems[​](#connection-problems "Direct link to Connection Problems")
* Check Ollama service status
* Verify port availability
* Review firewall settings
- Check Ollama service status
- Verify port availability
- Review firewall settings
#### Performance Issues[​](#performance-issues "Direct link to Performance Issues")
* Insufficient RAM
* Model too large for system
* GPU compatibility
- Insufficient RAM
- Model too large for system
- GPU compatibility
### Solutions[​](#solutions "Direct link to Solutions")
@ -107,16 +116,15 @@ Try these solutions in order:
Use Continue with Ollama to:
* Analyze code quality
* Suggest improvements
* Identify potential bugs
* Generate documentation
- Analyze code quality
- Suggest improvements
- Identify potential bugs
- Generate documentation
## Conclusion[​](#conclusion "Direct link to Conclusion")
Ollama with Continue provides a powerful local development environment for AI-assisted coding. You now have complete control over your AI models, ensuring privacy and enabling offline development workflows.
***
*This guide is based on Ollama v0.1.x and Continue v0.8.x. Please check for updates regularly.*
---
_This guide is based on Ollama v0.1.x and Continue v0.8.x. Please check for updates regularly._

View file

@ -4,18 +4,17 @@ title: "Overview"
## Model & Setup Guides[​](#model--setup-guides "Direct link to Model & Setup Guides")
* [Using Ollama with Continue](/guides/ollama-guide) - Local AI development with Ollama
* [Setting up Codestral](/guides/set-up-codestral) - Configure Mistral's Codestral model
* [How to Self-Host a Model](/guides/how-to-self-host-a-model) - Self-hosting AI models
* [Running Continue Without Internet](/guides/running-continue-without-internet) - Offline development setup
* [Llama 3.1 Setup](/guides/llama3.1) - Getting started with Llama 3.1
- [Using Ollama with Continue](/guides/ollama-guide) - Local AI development with Ollama
- [Setting up Codestral](/guides/set-up-codestral) - Configure Mistral's Codestral model
- [How to Self-Host a Model](/guides/how-to-self-host-a-model) - Self-hosting AI models
- [Running Continue Without Internet](/guides/running-continue-without-internet) - Offline development setup
- [Llama 3.1 Setup](/guides/llama3.1) - Getting started with Llama 3.1
## Advanced Tutorials[​](#advanced-tutorials "Direct link to Advanced Tutorials")
* [Build Your Own Context Provider](/guides/build-your-own-context-provider) - Create custom context providers
* [Custom Code RAG](/guides/custom-code-rag) - Implement custom retrieval-augmented generation
- [Build Your Own Context Provider](/guides/build-your-own-context-provider) - Create custom context providers
- [Custom Code RAG](/guides/custom-code-rag) - Implement custom retrieval-augmented generation
## Contributing[​](#contributing "Direct link to Contributing")
Have a guide idea or found an issue? We welcome contributions! Check our [GitHub repository](https://github.com/continuedev/continue) to get involved.

View file

@ -7,4 +7,3 @@ description: "Continue can be run even on an air-gapped computer if you use a lo
2. Open the [User Settings Page](/customize/settings) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](/customize/telemetry).
3. Also in `config.json`, set the default model to a local model. You can available options [here](/customization/models#openai).
4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect.

View file

@ -12,8 +12,8 @@ title: "How to Set Up Codestral"
4. To use Codestral as your model for both `autocomplete` and `chat`, insert your Mistral API key below and add it to your configuration file:
* YAML
* JSON
- YAML
- JSON
config.yaml
@ -24,8 +24,26 @@ models: - name: Codestral provider: mistral model: codestral-latest ap
config.json
```json
{ "models": [ { "title": "Codestral", "provider": "mistral", "model": "codestral-latest", "apiKey": "<YOUR_CODESTRAL_API_KEY>", "apiBase": "https://codestral.mistral.ai/v1" } ], "tabAutocompleteModel": [ { "title": "Codestral", "provider": "mistral", "model": "codestral-latest", "apiKey": "<YOUR_CODESTRAL_API_KEY>", "apiBase": "https://codestral.mistral.ai/v1" } ]}
{
"models": [
{
"title": "Codestral",
"provider": "mistral",
"model": "codestral-latest",
"apiKey": "<YOUR_CODESTRAL_API_KEY>",
"apiBase": "https://codestral.mistral.ai/v1"
}
],
"tabAutocompleteModel": [
{
"title": "Codestral",
"provider": "mistral",
"model": "codestral-latest",
"apiKey": "<YOUR_CODESTRAL_API_KEY>",
"apiBase": "https://codestral.mistral.ai/v1"
}
]
}
```
5. If you run into any issues or have any questions, please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ)

View file

@ -4,8 +4,7 @@ title: "Introduction"
**Continue enables developers to create, share, and use custom AI code assistants with our open-source [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) and [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension) extensions and [hub of models, rules, prompts, docs, and other building blocks](https://hub.continue.dev)**
* [Chat](/features/chat/quick-start) to understand and iterate on code in the sidebar
* [Autocomplete](/features/autocomplete/quick-start) to receive inline code suggestions as you type
* [Edit](/features/edit/quick-start) to modify code without leaving your current file
* [Agent](/features/agent/quick-start) to make more substantial changes to your codebase
- [Chat](/features/chat/quick-start) to understand and iterate on code in the sidebar
- [Autocomplete](/features/autocomplete/quick-start) to receive inline code suggestions as you type
- [Edit](/features/edit/quick-start) to modify code without leaving your current file
- [Agent](/features/agent/quick-start) to make more substantial changes to your codebase

View file

@ -30,4 +30,3 @@ The easiest way to create an assistant is to click "Create assistant" with the d
Alternatively, you can edit the assistant YAML directly before clicking "Create assistant". Refer to examples of assistants on [hub.continue.dev](https://hub.continue.dev/explore/assistants) and visit the [YAML Reference](/reference#complete-yaml-config-example) docs for more details.
![New assistant YAML](/images/hub/assistants/images/assistant-create-yaml-a991e5a81506f1c3ba611a664a50734c.png)

View file

@ -18,4 +18,3 @@ If a block you want to use does not exist yet, you can [create a new block](/hub
When you are done editing, click "Publish" to publish a new version of the assistant.
Click "Open VS Code" or "Open JetBrains" to open your IDE for using the assistant.

View file

@ -6,4 +6,3 @@ description: "Custom AI code assistants are configurations of building blocks th
`config.yaml` is a format for defining custom AI code assistants. An assistant has some top-level properties (e.g. `name`, `version`), but otherwise consists of composable lists of **blocks** such as `models` and `rules`, which are the atomic building blocks of an assistant.
The `config.yaml` is parsed by the open-source Continue IDE extensions to create custom assistant experiences. When you log in to [hub.continue.dev](https://hub.continue.dev/), your assistants will automatically be synced with the IDE extensions.

View file

@ -12,4 +12,3 @@ Once you've found the assistant you want to use
After this, you can then go to your IDE extension and begin using the assistant by selecting it from the assistant dropdown.
[Extension Assistant Selector](/images/assistant-extension-select-319492a06d6249e5389747687341dfdb.png)

Some files were not shown because too many files have changed in this diff Show more