docs: updates to reflect product simplifications (#7357)
* remove outdated pages and references to them * change telemetry to a page instead of a directory with one page * fix duplicate redirects * remove vs code actions docs and references * update hub introduction * deprecate some context providers * initial codebase and documentation guide * replace context provider with MCP in custom code RAG * deprecate @docs and @codebase * remove context, docs, data blocks * move context providers to deep dives * move custom providers * remove "blocks" * remove rules "block" * update popular providers * cleanup before review * updating more providers * improve model reccs * fix broken links * add models links * cleaning up models details * move agent to first in list * remove outdated descriptions * reorder referene section * update block types * adjust model config example * fix tabs for yaml / json --------- Co-authored-by: Brian 'bdougie' Douglas <brian@dinnerpeople.app>
This commit is contained in:
parent
4f97b37c83
commit
9f68638e32
68 changed files with 2152 additions and 2401 deletions
|
|
@ -1,11 +1,11 @@
|
|||
---
|
||||
title: "MCP Blocks"
|
||||
title: "MCP servers"
|
||||
description: "Learn how to use Model Context Protocol (MCP) blocks in Continue to integrate external tools, connect databases, and extend your development environment."
|
||||
---
|
||||
|
||||
Model Context Protocol (MCP) blocks let Continue connect to external tools, systems, and databases by running MCP servers.
|
||||
Model Context Protocol (MCP) servers let Continue connect to external tools, systems, and databases by running MCP servers.
|
||||
|
||||
These blocks make it possible to:
|
||||
These servers make it possible to:
|
||||
|
||||
- **Enable integration** with external tools and systems
|
||||
- **Create extensible interfaces** for custom capabilities
|
||||
|
|
@ -13,8 +13,8 @@ These blocks make it possible to:
|
|||
- **Allow partners** to contribute specialized functionality
|
||||
- **Connect to databases** to understand schema and data models during development
|
||||
|
||||

|
||||

|
||||
|
||||
## Learn More About MCP Blocks
|
||||
## Learn More About MCP servers
|
||||
|
||||
Learn more in the [MCP deep dive](/customize/deep-dives/mcp), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Model Blocks"
|
||||
description: "These blocks form the foundation of the entire assistant experience, offering different specialized capabilities:"
|
||||
title: "Models"
|
||||
description: "Models form the foundation of the entire agent experience, offering different specialized capabilities:"
|
||||
---
|
||||
|
||||
- **[Chat](/customize/model-roles/chat)**: Power conversational interactions about code and provide detailed guidance
|
||||
|
|
@ -10,7 +10,7 @@ description: "These blocks form the foundation of the entire assistant experienc
|
|||
- **[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
|
||||
|
||||

|
||||

|
||||
|
||||
## Recommended Models
|
||||
|
||||
|
|
@ -18,16 +18,118 @@ description: "These blocks form the foundation of the entire assistant experienc
|
|||
|
||||
| Model role | Best open models | Best closed models | Notes |
|
||||
| :----------- | :----------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------- |
|
||||
| Agent / Plan | Qwen3 Coder (480B), Qwen3 Coder (30B), Devstral (27B), Devstral, GLM 4.5 (355B), GLM 4.5 Air (106B), Kimi K2 (1T), gpt-oss (120B), gpt-oss (20B) | [Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus), [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet), [GPT-5](https://hub.continue.dev/openai/gpt-5), [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) | Closed models are slightly better than open models |
|
||||
| Chat / Edit | Qwen3 Coder (480B), Qwen3 Coder (30B), gpt-oss (120B), gpt-oss (20B) | [Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus), [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet), [GPT-5](https://hub.continue.dev/openai/gpt-5), [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) | Closed and open models have pretty similar performance |
|
||||
| Autocomplete | [QwenCoder2.5 (1.5B)](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b), QwenCoder2.5 (7B) | [Codestral](https://hub.continue.dev/mistral/codestral), Mercury Coder | Closed models are slightly better than open models |
|
||||
| Apply | N/A | [Relace Instant Apply](https://hub.continue.dev/relace/instant-apply), [Morph Fast Apply](https://hub.continue.dev/morphllm/morph-v2) | Open models are basically non-existent / not good enough for this model role |
|
||||
| Embed | [Nomic Embed Text](https://hub.continue.dev/ollama/nomic-embed-text-latest), Qwen3 Embedding | [Voyage Code 3](https://hub.continue.dev/voyageai/voyage-code-3), [Morph Embeddings](https://hub.continue.dev/morphllm/morph-embedding-v2), Codestral Embed | Closed models are slightly better than open models |
|
||||
| Rerank | zerank-1, zerank-1-small, Qwen3 Reranker | [Voyage Rerank 2.5](https://hub.continue.dev/voyageai/rerank-2-5), Relace Code Rerank, [Morph Rerank](https://hub.continue.dev/morphllm/morph-rerank-v2) | Open models are beginning to emerge for this model role |
|
||||
| Next Edit | Zeta | Mercury Coder | Closed models are significantly better than open models |
|
||||
| Agent / Plan | [Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder), [Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b), [Devstral (27B)](https://hub.continue.dev/ollama/devstral), [Kimi K2 (1T)](https://hub.continue.dev/openrouter/kimi-k2), [gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b), [gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b), GLM 4.5 (355B), GLM 4.5 Air (106B) | [Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus), [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet), [GPT-5](https://hub.continue.dev/openai/gpt-5), [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) | Closed models are slightly better than open models |
|
||||
| Chat / Edit | [Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder), [Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b), [gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b), [gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b) | [Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus), [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet), [GPT-5](https://hub.continue.dev/openai/gpt-5), [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) | Closed and open models have pretty similar performance |
|
||||
| Autocomplete | [QwenCoder2.5 (1.5B)](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b), [QwenCoder2.5 (7B)](https://hub.continue.dev/ollama/qwen2.5-coder-7b) | [Codestral](https://hub.continue.dev/mistral/codestral), [Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder) | Closed models are slightly better than open models |
|
||||
| Apply | N/A | [Relace Instant Apply](https://hub.continue.dev/relace/instant-apply), [Morph Fast Apply](https://hub.continue.dev/morphllm/morph-v2) | Open models are not good enough for this model role |
|
||||
| Embed | [Nomic Embed Text](https://hub.continue.dev/ollama/nomic-embed-text-latest), Qwen3 Embedding | [Voyage Code 3](https://hub.continue.dev/voyageai/voyage-code-3), [Morph Embeddings](https://hub.continue.dev/morphllm/morph-embedding-v2), Codestral Embed | Closed models are slightly better than open models |
|
||||
| Rerank | zerank-1, zerank-1-small, Qwen3 Reranker | [Voyage Rerank 2.5](https://hub.continue.dev/voyageai/rerank-2-5), Relace Code Rerank, [Morph Rerank](https://hub.continue.dev/morphllm/morph-rerank-v2) | Open models are beginning to emerge for this model role |
|
||||
| Next Edit | N/A | [Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder) | Closed models are significantly better than open models |
|
||||
|
||||
## Learn More About Model Blocks
|
||||
## Learn More About Models
|
||||
|
||||
Continue supports [many model providers](/customize/model-providers/top-level/openai), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, 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.
|
||||
Read more about [model roles](/customize/model-roles), [model capabilities](/customize/deep-dives/model-capabilities) and view [`models`](/reference#models) in the YAML Reference.
|
||||
|
||||
### Example Model Setup Instructions
|
||||
|
||||
# Frontier Models
|
||||
|
||||
[Claude 4 Sonnet](https://hub.continue.dev/anthropic/claude-4-sonnet) from Anthropic
|
||||
|
||||
1. Get your API key from [Anthropic](https://console.anthropic.com/)
|
||||
2. Add [Claude 4 Sonnet](https://hub.continue.dev/anthropic/claude-4-sonnet) to an agent on Continue Hub
|
||||
3. Add `ANTHROPIC_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[Qwen Coder 3 480B](https://hub.continue.dev/openrouter/qwen3-coder) from Qwen
|
||||
|
||||
1. Get your API key from [OpenRouter](https://openrouter.ai/settings/keys)
|
||||
2. Add [Qwen Coder 3 480B](https://hub.continue.dev/openrouter/qwen3-coder) to an agent on Continue Hub
|
||||
3. Add `OPENROUTER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[GPT-5](https://hub.continue.dev/openai/gpt-5) from OpenAI
|
||||
|
||||
1. Get your API key from [OpenAI](https://platform.openai.com)
|
||||
2. Add [GPT-5](https://hub.continue.dev/openai/gpt-5) to an agent on Continue Hub
|
||||
3. Add `OPENAI_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[Kimi K2](https://hub.continue.dev/openrouter/kimi-k2) from Moonshot AI
|
||||
|
||||
1. Get your API key from [OpenRouter](https://openrouter.ai/settings/keys)
|
||||
2. Add [Kimi K2](https://hub.continue.dev/openrouter/kimi-k2) to an agent on Continue Hub
|
||||
3. Add `OPENROUTER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) from Google
|
||||
|
||||
1. Get your API key from [Google AI Studio](https://aistudio.google.com)
|
||||
2. Add [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) to an agent on Continue Hub
|
||||
3. Add `GEMINI_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[Grok 4](https://hub.continue.dev/xai/grok-4) from xAI
|
||||
|
||||
1. Get your API key from [xAI](https://console.x.ai/)
|
||||
2. Add [Grok 4](https://hub.continue.dev/xai/grok-4) to an agent on Continue Hub
|
||||
3. Add `XAI_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[Devstral Medium](https://hub.continue.dev/mistral/devstral-medium) from Mistral AI
|
||||
|
||||
1. Get your API key from [Mistral AI](https://console.mistral.ai/)
|
||||
2. Add [Devstral Medium](https://hub.continue.dev/mistral/devstral-medium) to an agent on Continue Hub
|
||||
3. Add `MISTRAL_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[gpt-oss-120b](https://hub.continue.dev/openrouter/gpt-oss-120b) from OpenAI
|
||||
|
||||
1. Get your API key from [OpenRouter](https://openrouter.ai/settings/keys)
|
||||
2. Add [gpt-oss-120b](https://hub.continue.dev/openrouter/gpt-oss-120b) to an agent on Continue Hub
|
||||
3. Add `OPENROUTER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
### Local Models
|
||||
|
||||
These models can be run on your computer if you have enough VRAM.
|
||||
|
||||
Their limited tool calling and reasoning capabilities will make it challenging to use Agent mode.
|
||||
|
||||
[Qwen3 Coder 30B](https://hub.continue.dev/ollama/qwen3-coder-30b)
|
||||
|
||||
1. Add [Qwen3 Coder 30B](https://hub.continue.dev/ollama/qwen3-coder-30b) to an agent on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[gpt-oss-20b](https://hub.continue.dev/ollama/gpt-oss-20b)
|
||||
|
||||
1. Add [gpt-oss-20b](ttps://hub.continue.dev/ollama/gpt-oss-20b) to an agent on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[Devstral Small 27B](https://hub.continue.dev/ollama/devstral)
|
||||
|
||||
1. Add [Devstral Small](https://hub.continue.dev/ollama/devstral) to an agent on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[Qwen2.5-Coder 7B](https://hub.continue.dev/ollama/qwen2.5-coder-7b) from Qwen
|
||||
|
||||
1. Add [Qwen2.5-Coder 7B](https://hub.continue.dev/ollama/qwen2.5-coder-7b) to an agent on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[Gemma 3 4B](https://hub.continue.dev/ollama/gemma3-4b) from Google
|
||||
|
||||
1. Add [Gemma 3 4B](https://hub.continue.dev/ollama/gemma3-4b) to an agent on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
||||
[Qwen2.5-Coder 1.5B](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b) from Qwen
|
||||
|
||||
1. Add [Qwen2.5-Coder 1.5B](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b) to an agent on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the agent selector in the Continue IDE extension
|
||||
|
|
@ -13,10 +13,6 @@ Continue allows you to choose your favorite or even add multiple model providers
|
|||
|
||||
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](/customize/deep-dives/slash-commands).
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: "Prompt Blocks"
|
||||
title: "Prompts"
|
||||
description: "These are the specialized instructions that shape how models respond:"
|
||||
---
|
||||
|
||||
|
|
@ -9,8 +9,8 @@ description: "These are the specialized instructions that shape how models respo
|
|||
- **Can be shared and reused** across multiple assistants
|
||||
- **Act as automated code reviewers** that ensure consistency across teams
|
||||
|
||||

|
||||

|
||||
|
||||
## 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).
|
||||
Prompts have the same syntax as [prompt files](/customization/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: "Rules Blocks"
|
||||
title: "Rules"
|
||||
description: "Rules allow you to provide specific instructions that guide how the AI assistant behaves when working with your code. Instead of the AI making assumptions about your coding standards, architecture patterns, or project-specific requirements, you can explicitly define guidelines that ensure consistent, contextually appropriate responses."
|
||||
---
|
||||
|
||||
|
|
@ -13,6 +13,6 @@ By implementing rules, you transform the AI from a generic coding assistant into
|
|||
|
||||
## How Rules Work
|
||||
|
||||
Your assistant detects rule blocks and applies the specified rules while in [Agent](/features/agent/quick-start), [Chat](/features/chat/quick-start), and [Edit](/features/edit/quick-start) modes.
|
||||
Your assistant detects rules and applies the specified rules while in [Agent](/features/agent/quick-start), [Chat](/features/chat/quick-start), and [Edit](/features/edit/quick-start) modes.
|
||||
|
||||
Learn more in the [rules deep dive](/customize/deep-dives/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details.
|
||||
Learn more in the [rules deep dive](/customize/deep-dives/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details.
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"label": "Context",
|
||||
"position": 2
|
||||
}
|
||||
|
|
@ -127,7 +127,7 @@ Explore autocomplete model configurations on [the hub](https://hub.continue.dev/
|
|||
### Customize Autocomplete User Settings in the Continue Extension
|
||||
|
||||
{/* - `Use autocomplete cache`: If on, caches completions */}
|
||||
The following settings can be configured for autocompletion in the IDE extension [User Settings Page](../settings.md):
|
||||
The following settings can be configured for autocompletion in the IDE extension User Settings Page:
|
||||
|
||||
- `Multiline Autocompletions`: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
|
||||
- `Disable autocomplete in files`: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., "\_/.md, \*/.txt"
|
||||
|
|
|
|||
430
docs/customize/deep-dives/custom-providers.mdx
Normal file
430
docs/customize/deep-dives/custom-providers.mdx
Normal file
|
|
@ -0,0 +1,430 @@
|
|||
---
|
||||
title: "Context Providers"
|
||||
description: "Context Providers allow you to type '@' and see a dropdown of content that can all be provided to the model as context."
|
||||
---
|
||||
|
||||
Context Providers allow you to type '@' and see a dropdown of content that can all be provided to the model as context.
|
||||
|
||||

|
||||
|
||||
## Built-in Context Providers
|
||||
|
||||
You can add any built-in context-providers in your config file as shown below:
|
||||
|
||||
### `@File`
|
||||
|
||||
Reference any file in your current workspace.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: file
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "file"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Code`
|
||||
|
||||
Reference specific functions or classes from throughout your project.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: code
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "code"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Git Diff`
|
||||
|
||||
Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: diff
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "diff"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Current File`
|
||||
|
||||
Reference the currently open file.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: currentFile
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "currentFile"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Terminal`
|
||||
|
||||
Reference the last command you ran in your IDE's terminal and its output.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: terminal
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "terminal"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Open`
|
||||
|
||||
Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: open
|
||||
params:
|
||||
onlyPinned: true
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "open",
|
||||
"params": {
|
||||
"onlyPinned": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Clipboard`
|
||||
|
||||
Reference recent clipboard items
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: clipboard
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "clipboard"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Tree`
|
||||
|
||||
Reference the structure of your current workspace.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: tree
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "tree"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Problems`
|
||||
|
||||
Get Problems from the current file.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: problems
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "problems"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Debugger`
|
||||
|
||||
Reference the contents of the local variables in the debugger. Currently only available in VS Code.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: debugger
|
||||
params:
|
||||
stackDepth: 3
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "debugger",
|
||||
"params": {
|
||||
"stackDepth": 3
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
|
||||
|
||||
### `@Repository Map`
|
||||
|
||||
Reference the outline of your codebase. By default, signatures are included along with file in the repo map.
|
||||
|
||||
`includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: repo-map
|
||||
params:
|
||||
includeSignatures: false # default true
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "repo-map",
|
||||
"params": {
|
||||
"includeSignatures": false // default true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase.
|
||||
|
||||
In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repostiory map from.
|
||||
|
||||
This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html).
|
||||
|
||||
### `@Operating System`
|
||||
|
||||
Reference the architecture and platform of your current operating system.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: os
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "os"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@HTTP`
|
||||
|
||||
The HttpContextProvider makes a POST request to the url passed in the configuration. The server must return 200 OK with a ContextItem object or an array of ContextItems.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: http
|
||||
params:
|
||||
url: "https://api.example.com/v1/users"
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "http",
|
||||
"params": {
|
||||
"url": "https://api.example.com/v1/users"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
The receiving URL should expect to receive the following parameters:
|
||||
|
||||
POST parameters
|
||||
|
||||
```json
|
||||
{ query: string, fullInput: string}
|
||||
```
|
||||
|
||||
The response 200 OK should be a JSON object with the following structure:
|
||||
|
||||
Response
|
||||
|
||||
```
|
||||
[ { "name": "", "description": "", "content": "" }]// OR{ "name": "", "description": "", "content": ""}
|
||||
```
|
||||
|
||||
### 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:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
mcpServers:
|
||||
- name: My MCP Server
|
||||
command: uvx
|
||||
args:
|
||||
- mcp-server-sqlite
|
||||
- --db-path
|
||||
- /Users/NAME/test.db
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json config.json
|
||||
{
|
||||
"experimental": {
|
||||
"modelContextProtocolServers": [
|
||||
{
|
||||
"transport": {
|
||||
"type": "stdio",
|
||||
"command": "uvx",
|
||||
"args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
You'll then be able to type "@" and see "MCP" in the context providers dropdown.
|
||||
|
||||
## Deprecated Context Providers
|
||||
|
||||
<Note>
|
||||
To provide conext beyond the built-in context providers, we now recommend using [MCP Servers](/customization/mcp-tools)
|
||||
</Note>
|
||||
|
||||
View the [deprecated context providers](/reference/deprecated-context-providers) for documentation on:
|
||||
|
||||
- [`@Codebase`](/reference/deprecated-codebase) - Use the [codebase awareness guide](/guides/codebase-documentation-awareness) instead
|
||||
- [`@Folder`](/reference/deprecated-codebase) - Use the [codebase awareness guide](/guides/codebase-documentation-awareness) instead
|
||||
- [`@Docs`](/reference/deprecated-docs) - Use the [documentation awareness guide](/guides/codebase-documentation-awareness) instead
|
||||
- `@Greptile` - Query Greptile index
|
||||
- `@Commits` - Reference git commits
|
||||
- `@Discord` - Reference Discord messages
|
||||
- `@Jira` - Reference Jira issues
|
||||
- `@Gitlab Merge Request` - Reference GitLab MRs
|
||||
- `@Google` - Google search results
|
||||
- `@Database` - Database schemas
|
||||
- `@Issue` - GitHub issues
|
||||
- `@Url` - URL content
|
||||
- `@Search` - Codebase search
|
||||
- `@Web` - Web search results
|
||||
|
|
@ -13,8 +13,6 @@ You can read more about how development data is generated as a byproduct of LLM-
|
|||
|
||||
You can also configure custom destinations for your data, including remote HTTP endpoints and local file directories.
|
||||
|
||||
For hub assistants, data destinations are configured in `data` blocks. Visit the hub to [explore example data blocks](https://hub.continue.dev/explore/data) or [create your own](https://hub.continue.dev/new?type=block&blockType=data).
|
||||
|
||||
See more details about adding `data` blocks to your configuration files in the [YAML specification](/reference#data)
|
||||
Data destinations should be configured directly in the `data` section of your `config.yaml` file. See more details about adding `data` configuration in the [YAML specification](/reference#data).
|
||||
|
||||
When sending development data to your own HTTP endpoint, it will receive an event JSON blob at the given `schema` version. You can view event names, schema versions, and fields [here in the source code](https://github.com/continuedev/continue/tree/main/packages/config-yaml/src/schemas/data).
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ sidebarTitle: "Slash Commands"
|
|||
Slash commands are shortcuts that can be activated by typing '/' in a chat session (press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)), and selecting from the dropdown.
|
||||

|
||||
|
||||
Slash commands can be combined with additional instructions, including [context providers](../custom-providers) or highlighted code.
|
||||
Slash commands can be combined with additional instructions, including highlighted code.
|
||||
|
||||
<Note>
|
||||
**Recommended approach**: Use prompt files to create slash commands instead of
|
||||
|
|
|
|||
|
|
@ -1,44 +0,0 @@
|
|||
---
|
||||
title: "How to Use Continue's VS Code Actions and Quick Features"
|
||||
keywords: [vscode, quick actions, quick, actions]
|
||||
description: "Learn about Continue's VS Code-specific actions including quick actions buttons, right-click context menu options, debug shortcuts, and quick fixes for errors in your code"
|
||||
sidebarTitle: "VS Code Actions"
|
||||
---
|
||||
|
||||
<Info>Currently all of these are only available in VS Code</Info>
|
||||
|
||||
To make common use cases even more accessible, we provide a handful of other ways to invoke actions in VS Code.
|
||||
|
||||
## How to Use Quick Actions
|
||||
|
||||
Quick Actions are displayed as buttons above top-level classes and functions in your source code, letting you invoke actions with one click. They will edit that class or function, but nothing outside of it. They can also be customized with [.prompt files](./prompts.md) to perform custom actions.
|
||||
|
||||

|
||||
|
||||
By default, quick actions are disabled, but can be enabled with the “Continue: Enable Quick Actions” in VS Code settings.
|
||||
|
||||
## How to Use Right Click Actions
|
||||
|
||||
Right click actions let you highlight a desired region of code, right click, and then select an action from the dropdown menu.
|
||||
|
||||
The highlighted code you’ve selected will be included in your prompt alongside a pre-written set of instructions depending on the selected action. This is the only section of code that the model will attempt to edit.
|
||||
|
||||
Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../features/edit/how-it-works).
|
||||
|
||||

|
||||
|
||||
## How to Use the Debug Action Shortcut
|
||||
|
||||
The debug action is a special built-in keyboard shortcut in the VS Code extension. Use <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>R</kbd> to instantly copy the contents of the most recent terminal output into the chat sidebar and get debugging advice. There is no additional, non-visible information sent to the language model.
|
||||
|
||||
```
|
||||
I got the following error, can you please help explain how to fix it?
|
||||
|
||||
[ERROR_MESSAGE]
|
||||
```
|
||||
|
||||
## How to Use Quick Fixes for Code Errors
|
||||
|
||||
Whenever you see red/yellow underlines in your code indicating errors, you can place your cursor nearby and VS Code will display a lightbulb icon. Either clicking the lightbulb or using the keyboard shortcut <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> again and Continue will attempt to help solve the problem.
|
||||
|
||||
Similarly to the debug action, quick actions transparently inject a prompt into the chat window. When you select “Ask Continue”, the 3 lines above and below the error are sent to the chat followed by the question “How do I fix the following problem in the above code?: [ERROR_MESSAGE]”.
|
||||
|
|
@ -3,27 +3,35 @@ title: "DeepInfra"
|
|||
description: "Configure DeepInfra with Continue to access low-cost inference for open-source models like Mixtral-8x7B-Instruct, including API setup instructions"
|
||||
---
|
||||
|
||||
[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:
|
||||
<Tip>
|
||||
**Discover Deep Infra models [here](https://hub.continue.dev/deepinfra)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
Get an API key from the [Deep Infra](https://deepinfra.com/)
|
||||
</Info>
|
||||
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepInfra
|
||||
- name: <MODEL_NAME>
|
||||
provider: deepinfra
|
||||
model: mistralai/Mixtral-8x7B-Instruct-v0.1
|
||||
apiKey: <YOUR_DEEP_INFRA_API_KEY>
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_DEEPINFRA_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "deepinfra",
|
||||
"title": "DeepInfra",
|
||||
"model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
||||
"apiKey": "<YOUR_DEEP_INFRA_API_KEY>"
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_DEEPINFRA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -31,4 +39,6 @@ description: "Configure DeepInfra with Continue to access low-cost inference for
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts)
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/deepinfra/qwen-qwen2.5-coder-32b-instruct?view=config)**
|
||||
</Info>
|
||||
40
docs/customize/model-providers/more/deepseek.mdx
Normal file
40
docs/customize/model-providers/more/deepseek.mdx
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
title: DeepSeek
|
||||
slug: ../deepseek
|
||||
---
|
||||
|
||||
<Tip>
|
||||
**Discover DeepSeek models [here](https://hub.continue.dev/?q=DeepSeek)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
You can get an API key from the [DeepSeek Console](https://www.deepseek.com/).
|
||||
</Info>
|
||||
|
||||
## Confiugration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: deepseek
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_DEEPSEEK_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "deepseek",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_DEEPSEEK_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
|
@ -1,44 +1,36 @@
|
|||
---
|
||||
title: "How to Configure Groq with Continue"
|
||||
description: "Configure Groq with Continue to access their ultra-fast inference platform for open-source language models, including the entire Llama 3.1 and 3.3 family with industry-leading speeds"
|
||||
sidebarTitle: "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.
|
||||
Get your API key from the [Groq Console](https://console.groq.com/docs/models)
|
||||
</Info>
|
||||
|
||||
Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
|
||||
|
||||
1. Obtain an API key [here](https://console.groq.com/keys)
|
||||
2. Update your Continue config file like this:
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama 3.3 70b Versatile
|
||||
- name: <MODEL_NAME>
|
||||
provider: groq
|
||||
model: llama-3.3-70b-versatile
|
||||
apiKey: <YOUR_GROQ_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_GROQ_API_KEY>"
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.3 70b Versatile",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "groq",
|
||||
"model": "llama-3.3-70b-versatile",
|
||||
"apiKey": "<YOUR_GROQ_API_KEY>"
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_GROQ_API_KEY>"",
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
</Tabs>
|
||||
|
|
@ -1,36 +1,37 @@
|
|||
---
|
||||
title: "HuggingFace Inference Endpoints"
|
||||
description: "Configure HuggingFace Inference Endpoints with Continue to deploy and access open-source language models on any cloud, including setup instructions for models like WizardCoder"
|
||||
title: "Hugging Face"
|
||||
---
|
||||
|
||||
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:
|
||||
<Info>
|
||||
Get started with [Hugging Face Inference Endpoints](https://endpoints.huggingface.co/)
|
||||
</Info>
|
||||
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Hugging Face Inference API
|
||||
provider: huggingface-inference-api
|
||||
model: MODEL_NAME
|
||||
apiKey: <YOUR_HF_TOKEN>
|
||||
apiBase: <YOUR_HF_INFERENCE_API_ENDPOINT_URL>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Hugging Face Inference API",
|
||||
"provider": "huggingface-inference-api",
|
||||
"model": "MODEL_NAME",
|
||||
"apiKey": "<YOUR_HF_TOKEN>",
|
||||
"apiBase": "<YOUR_HF_INFERENCE_API_ENDPOINT_URL>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/HuggingFaceInferenceAPI.ts)
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: huggingface-inference-api
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_HF_TOKEN>
|
||||
apiBase: <YOUR_HF_INFERENCE_API_ENDPOINT_URL>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "huggingface-inference-api",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_HF_TOKEN>",
|
||||
"apiBase": "<YOUR_HF_INFERENCE_API_ENDPOINT_URL>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
|
@ -1,40 +1,35 @@
|
|||
---
|
||||
title: "Llama.cpp"
|
||||
description: "Configure Llama.cpp with Continue to run local language models using high-performance C++ inference, including setup instructions for the server and client configuration"
|
||||
---
|
||||
|
||||
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:
|
||||
<Info>
|
||||
Get started with [Llama.cpp](https://github.com/ggml-org/llama.cpp?tab=readme-ov-file#quick-start)
|
||||
</Info>
|
||||
|
||||
```bash
|
||||
.\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models\meta\llama\codellama-7b-instruct.Q8_0.gguf
|
||||
```
|
||||
|
||||
After it's up and running, change `~/.continue/config.json` to look like this:
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama CPP
|
||||
provider: llama.cpp
|
||||
model: MODEL_NAME
|
||||
apiBase: http://localhost:8080
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama CPP",
|
||||
"provider": "llama.cpp",
|
||||
"model": "MODEL_NAME",
|
||||
"apiBase": "http://localhost:8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LlamaCpp.ts)
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: llama.cpp
|
||||
model: <MODEL_ID>
|
||||
apiBase: http://localhost:8080
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "llama.cpp",
|
||||
"model": "<MODEL_ID>"
|
||||
"apiBase": "http://localhost:8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
|
@ -1,114 +1,34 @@
|
|||
---
|
||||
title: "Llama Stack"
|
||||
description: "Configure Llama Stack with Continue"
|
||||
keywords: [llama, stack, local, api, inference]
|
||||
---
|
||||
|
||||
[Llama Stack](https://llama-stack.readthedocs.io/en/latest/index.html) is an open-source library that standardizes the core building blocks that simplify AI application development. It codifies best practices across the Llama ecosystem. More specifically, it provides
|
||||
|
||||
- **Unified API layer** for Inference, RAG, Agents, Tools, Safety, Evals, and Telemetry.
|
||||
- **Plugin architecture** to support the rich ecosystem of different API implementations in various environments, including local development, on-premises, cloud, and mobile.
|
||||
- **Prepackaged verified distributions** which offer a one-stop solution for developers to get started quickly and reliably in any environment.
|
||||
- **Multiple developer interfaces** like CLI and SDKs for Python, Typescript, iOS, and Android.
|
||||
- **Standalone applications** as examples for how to build production-grade AI applications with Llama Stack.
|
||||
|
||||
To try Llama Stack locally, run:
|
||||
|
||||
```shell
|
||||
curl -LsSf https://github.com/meta-llama/llama-stack/raw/main/install.sh | bash
|
||||
```
|
||||
|
||||
Learn more about how to get started with llama stack in this [guide](https://llama-stack.readthedocs.io/en/latest/getting_started/index.html)
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Llama 4 Maverick** as your chat model.
|
||||
<Info>
|
||||
Get started with [Lllama Stack](https://llama-stack.readthedocs.io/en/latest/getting_started/index.html)
|
||||
</Info>
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama4 Maverick
|
||||
provider: llamastack
|
||||
model: meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8
|
||||
apiBase: http://<llama stack endpoint>/v1/openai/v1/
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama4 Maverick",
|
||||
"provider": "llamastack",
|
||||
"model": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
|
||||
"apiBase": "http://<llama stack endpoint>/v1/openai/v1/"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **CodeLlama 7B** as your autocomplete model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: CodeLlama 7B
|
||||
provider: llamastack
|
||||
model: codellama:7b
|
||||
apiBase: http://<llama stack endpoint>/v1/openai/v1/
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "CodeLlama 7B",
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: llamastack
|
||||
model: <MODEL_ID>
|
||||
apiBase: http://<LLAMA_STACK_ENDPOINT>/v1/openai/v1/
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "llamastack",
|
||||
"model": "codellama:7b",
|
||||
"apiBase": "http://<llama stack endpoint>/v1/openai/v1/"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
By default, Llama Stack uses **all-MiniLM-L6-v2** as the embeddings model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: all-MiniLM-L6-v2
|
||||
provider: llamastack
|
||||
model: all-MiniLM-L6-v2
|
||||
apiBase: http://<llama stack endpoint>/v1/openai/v1/
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "llamastack",
|
||||
"model": "all-MiniLM-L6-v2",
|
||||
"apiBase": "http://<llama stack endpoint>/v1/openai/v1/"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Llama Stack currently did not support Reranking API yet.
|
||||
"model": "<MODEL_ID>",
|
||||
"apiBase": "http://<LLAMA_STACK_ENDPOINT>/v1/openai/v1/"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
---
|
||||
title: "LM Studio"
|
||||
description: "Configure LM Studio with Continue to run open-source models locally, including setup for Llama3.1 8B for chat, embedding models, and instructions for connecting to remote instances"
|
||||
---
|
||||
|
||||
[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:
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Llama3.1 8B** as your chat model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama3.1 8B Instruct
|
||||
provider: lmstudio
|
||||
model: meta-llama-3.1-8b-instruct
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama3.1 8B Instruct",
|
||||
"provider": "lmstudio",
|
||||
"model": "meta-llama-3.1-8b-instruct"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
LMStudio supports embeddings endpoints, and comes with the `nomic-ai/nomic-embed-text-v1.5-GGUF` model (as of Nov 2024, check your models)
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nomic Embed Text
|
||||
provider: lmstudio
|
||||
model: nomic-ai/nomic-embed-text-v1.5-GGUF
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Setting up a remote instance
|
||||
|
||||
To configure a remote instance of LM Studio, add the `"apiBase"` property to your model in config.json:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama3.1 8B Instruct
|
||||
provider: lmstudio
|
||||
model: meta-llama-3.1-8b-instruct
|
||||
apiBase: http://<MY ENDPOINT>/v1
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama3.1 8B Instruct",
|
||||
"provider": "lmstudio",
|
||||
"model": "meta-llama-3.1-8b-instruct",
|
||||
"apiBase": "http://<MY ENDPOINT>/v1"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
This `apiBase` will now be used instead of the default `http://localhost:1234/v1`.
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LMStudio.ts)
|
||||
50
docs/customize/model-providers/more/mistral.mdx
Normal file
50
docs/customize/model-providers/more/mistral.mdx
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
title: Mistral
|
||||
slug: ../mistral
|
||||
---
|
||||
|
||||
<Tip>
|
||||
**Discover Mistral models [here](https://hub.continue.dev/mistral)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
Get an API key from the [Mistral Dashboard](https://console.mistral.ai)
|
||||
</Info>
|
||||
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: mistral
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_MISTRAL_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "mistral",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_MISTRAL_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/mistral/codestral?view=config)**
|
||||
</Info>
|
||||
|
||||
<Note>
|
||||
The API key for `codestral.mistral.ai` is different from `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`.
|
||||
</Note>
|
||||
|
|
@ -1,36 +1,31 @@
|
|||
---
|
||||
title: "NVIDIA"
|
||||
description: "Configure NVIDIA AI models with Continue, including setup for Nemotron-4-340B-Instruct for chat and NVIDIA Retrieval QA Mistral 7B for embeddings"
|
||||
---
|
||||
|
||||
<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.
|
||||
Get an API key from the [NVIDIA](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog)
|
||||
</Info>
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nemotron-4-340B-Instruct
|
||||
- name: <MODEL_NAME>
|
||||
provider: nvidia
|
||||
model: nvidia-nemotron-4-340b-instruct
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_NVIDIA_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Nemotron-4-340B-Instruct",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "nvidia",
|
||||
"model": "nvidia-nemotron-4-340b-instruct",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_NVIDIA_API_KEY>"
|
||||
}
|
||||
]
|
||||
|
|
@ -38,44 +33,3 @@ We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
|
|||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
NVIDIA currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nvidia Embedder
|
||||
provider: nvidia
|
||||
model: nvidia/nv-embedqa-mistral-7b-v2
|
||||
apiKey: <YOUR_NVIDIA_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "nvidia",
|
||||
"model": "nvidia/nv-embedqa-mistral-7b-v2",
|
||||
"apiKey": "<YOUR_NVIDIA_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
NVIDIA currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
|
|||
|
|
@ -1,157 +0,0 @@
|
|||
---
|
||||
title: "How to Configure OpenRouter with Continue"
|
||||
sidebarTitle: "OpenRouter"
|
||||
description: "Configure OpenRouter with Continue to access various commercial and open-source models through a unified interface, including model capability configuration and advanced request options"
|
||||
---
|
||||
|
||||
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.yaml` to look like the following.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: OpenRouter LLaMA 70 8B
|
||||
provider: openrouter
|
||||
model: meta-llama/llama-3-70b-instruct
|
||||
apiBase: https://openrouter.ai/api/v1
|
||||
apiKey: <YOUR_OPEN_ROUTER_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "OpenRouter LLaMA 70 8B",
|
||||
"provider": "openrouter",
|
||||
"model": "meta-llama/llama-3-70b-instruct",
|
||||
"apiBase": "https://openrouter.ai/api/v1",
|
||||
"apiKey": "<YOUR_OPEN_ROUTER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Using Custom Models
|
||||
|
||||
To use a model that is not in the dropdown list, you can simply enter the model name in the `model` field. For example, to use Qwen3Coder, you would update your configuration to look like this:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen3Coder
|
||||
provider: openrouter
|
||||
model: qwen/qwen-coder
|
||||
apiBase: https://openrouter.ai/api/v1
|
||||
apiKey: <YOUR_OPEN_ROUTER_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen3Coder",
|
||||
"provider": "openrouter",
|
||||
"model": "qwen/qwen-coder",
|
||||
"apiBase": "https://openrouter.ai/api/v1",
|
||||
"apiKey": "<YOUR_OPEN_ROUTER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
To utilize features such as provider preferences or model routing configuration, include these parameters inside the `models[].requestsOptions.extraBodyProperties` field of your plugin config.
|
||||
|
||||
For example, to prevent extra long prompts from being compressed, you can explicitly turn off the feature like so:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Example Model
|
||||
provider: exampleProvider
|
||||
model: example-model
|
||||
requestOptions:
|
||||
extraBodyProperties:
|
||||
transforms: []
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Example Model",
|
||||
"provider": "exampleProvider",
|
||||
"model": "example-model",
|
||||
"requestOptions": {
|
||||
"extraBodyProperties": {
|
||||
"transforms": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
Learn more about available settings [here](https://openrouter.ai/docs).
|
||||
|
||||
## Model Capabilities
|
||||
|
||||
OpenRouter models may require explicit capability configuration because the proxy doesn't always preserve the original model's function calling support.
|
||||
|
||||
<Info>
|
||||
Continue automatically uses system message tools for models that don't support
|
||||
native function calling, so Agent mode should work even without explicit
|
||||
capability configuration. However, you can still override capabilities if
|
||||
needed.
|
||||
</Info>
|
||||
|
||||
If you're experiencing issues with Agent mode or tools not working, you can add the capabilities field:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude via OpenRouter
|
||||
provider: openrouter
|
||||
model: anthropic/claude-3.5-sonnet
|
||||
apiBase: https://openrouter.ai/api/v1
|
||||
apiKey: <YOUR_OPEN_ROUTER_API_KEY>
|
||||
capabilities:
|
||||
- tool_use # Enable function calling for Agent mode
|
||||
- image_input # Enable image upload support
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude via OpenRouter",
|
||||
"provider": "openrouter",
|
||||
"model": "anthropic/claude-3.5-sonnet",
|
||||
"apiBase": "https://openrouter.ai/api/v1",
|
||||
"apiKey": "<YOUR_OPEN_ROUTER_API_KEY>",
|
||||
"capabilities": {
|
||||
"tools": true,
|
||||
"uploadImage": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
Note: Not all models support function calling. Check the [OpenRouter models page](https://openrouter.ai/models) for specific model capabilities.
|
||||
|
|
@ -1,35 +1,44 @@
|
|||
---
|
||||
title: "How to Configure Together AI with Continue"
|
||||
description: "Configure the Together AI cloud platform for running large language models with Continue, including setup instructions and sample configuration for Qwen2.5 Coder"
|
||||
title: "Together AI"
|
||||
sidebarTitle: "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:
|
||||
<Tip>
|
||||
**Discover Together AI models [here](https://hub.continue.dev/togetherai)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
Get an API key from the [Together AI](https://api.together.ai)
|
||||
</Info>
|
||||
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Together Qwen2.5 Coder
|
||||
provider: together
|
||||
model: Qwen/Qwen2.5-Coder-32B-Instruct
|
||||
apiKey: <YOUR_TOGETHER_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Together Qwen2.5 Coder",
|
||||
"provider": "together",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "<YOUR_TOGETHER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: together
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_TOGETHER_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "together",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_TOGETHER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Together.ts)
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/togetherai/qwen3-coder-480b-a35b-instruct-fp8?view=config)**
|
||||
</Info>
|
||||
44
docs/customize/model-providers/more/xAI.mdx
Normal file
44
docs/customize/model-providers/more/xAI.mdx
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
title: xAI
|
||||
slug: ../xai
|
||||
---
|
||||
|
||||
<Tip>
|
||||
**Discover xAI models [here](https://hub.continue.dev/xai)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
Get an API key from the [xAI Console](https://console.x.ai/)
|
||||
</Info>
|
||||
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: xai
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_XAI_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "anthropic",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_XAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/xai/grok-4?view=config)**
|
||||
</Info>
|
||||
|
|
@ -15,9 +15,9 @@ These are the most commonly used model providers that offer a wide range of capa
|
|||
| [Amazon Bedrock](/customize/model-providers/top-level/bedrock) | AWS service offering access to various foundation models | Chat, Edit, Apply, Embeddings |
|
||||
| [Ollama](/customize/model-providers/top-level/ollama) | Run open-source models locally with a simple interface | Chat, Edit, Apply, Embeddings, Autocomplete |
|
||||
| [Google Gemini](/customize/model-providers/top-level/gemini) | Google's multimodal AI models | Chat, Edit, Apply, Embeddings |
|
||||
| [DeepSeek](/customize/model-providers/top-level/deepseek) | Specialized code models with strong performance | Chat, Edit, Apply |
|
||||
| [Mistral](/customize/model-providers/top-level/mistral) | High-performance open models with commercial offerings | Chat, Edit, Apply, Embeddings |
|
||||
| [xAI](/customize/model-providers/top-level/xAI) | Grok models from xAI | Chat, Edit, Apply |
|
||||
| [DeepSeek](/customize/model-providers/more/deepseek) | Specialized code models with strong performance | Chat, Edit, Apply |
|
||||
| [Mistral](/customize/model-providers/more/mistral) | High-performance open models with commercial offerings | Chat, Edit, Apply, Embeddings |
|
||||
| [xAI](/customize/model-providers/more/xAI) | Grok models from xAI | Chat, Edit, Apply |
|
||||
| [Vertex AI](/customize/model-providers/top-level/vertexai) | Google Cloud's machine learning platform | Chat, Edit, Apply, Embeddings |
|
||||
| [Inception](/customize/model-providers/top-level/inception) | On-premises open-source model runners | Chat, Edit, Apply |
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ Beyond the top-level providers, Continue supports many other options:
|
|||
| [Groq](/customize/model-providers/more/groq) | Ultra-fast inference for various open models |
|
||||
| [Together AI](/customize/model-providers/more/together) | Platform for running a variety of open models |
|
||||
| [DeepInfra](/customize/model-providers/more/deepinfra) | Hosting for various open source models |
|
||||
| [OpenRouter](/customize/model-providers/more/openrouter) | Gateway to multiple model providers |
|
||||
| [OpenRouter](/customize/model-providers/top-level/openrouter) | Gateway to multiple model providers |
|
||||
| [Cohere](/customize/model-providers/more/cohere) | Models specialized for semantic search and text generation |
|
||||
| [NVIDIA](/customize/model-providers/more/nvidia) | GPU-accelerated model hosting |
|
||||
| [Cloudflare](/customize/model-providers/more/cloudflare) | Edge-based AI inference services |
|
||||
|
|
@ -42,7 +42,7 @@ Beyond the top-level providers, Continue supports many other options:
|
|||
|
||||
| Provider | Description |
|
||||
| :------------------------------------------------------- | :-------------------------------------------- |
|
||||
| [LM Studio](/customize/model-providers/more/lmstudio) | Desktop app for running models locally |
|
||||
| [LM Studio](/customize/model-providers/top-level/lmstudio) | Desktop app for running models locally |
|
||||
| [llama.cpp](/customize/model-providers/more/llamacpp) | Optimized C++ implementation for running LLMs |
|
||||
| [LlamaStack](/customize/model-providers/more/llamastack) | Stack for running Llama models locally |
|
||||
| [llamafile](/customize/model-providers/more/llamafile) | Self-contained executable model files |
|
||||
|
|
@ -72,9 +72,9 @@ You can add models to your `config.yaml` file like this:
|
|||
|
||||
```yaml
|
||||
models:
|
||||
- name: My Model
|
||||
provider: openai # Choose provider from the lists above
|
||||
model: gpt-4o # Specific model name
|
||||
- name: Claude 4 Sonnet
|
||||
provider: anthropic # Choose provider from the lists above
|
||||
model: claude-sonnet-4-20250514 # Specific model name
|
||||
apiKey: ${{ secrets.OPENAI_API_KEY }}
|
||||
roles:
|
||||
- chat
|
||||
|
|
|
|||
|
|
@ -1,37 +1,37 @@
|
|||
---
|
||||
title: "How to Configure Anthropic Claude Models with Continue"
|
||||
slug: ../anthropic
|
||||
description: "Configure Anthropic's Claude models with Continue, including Claude 4 Sonnet with prompt caching capabilities to improve performance and reduce costs for chat applications"
|
||||
sidebarTitle: "Anthropic"
|
||||
---
|
||||
|
||||
<Tip>
|
||||
**Discover Anthropic models [here](https://hub.continue.dev/anthropic)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
You can get an API key from the [Anthropic
|
||||
console](https://console.anthropic.com/account/keys).
|
||||
Get an API key from the [Anthropic Console](https://console.anthropic.com/account/keys)
|
||||
</Info>
|
||||
|
||||
## How to Set Up Anthropic Chat Models
|
||||
|
||||
We recommend configuring **Claude 4 Sonnet** as your chat model.
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 4 Sonnet
|
||||
- name: <MODEL_NAME>
|
||||
provider: anthropic
|
||||
model: claude-sonnet-4-20250514
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 4 Sonnet",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-sonnet-4-latest",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
}
|
||||
]
|
||||
|
|
@ -40,44 +40,23 @@ We recommend configuring **Claude 4 Sonnet** as your chat model.
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Anthropic Autocomplete Model Availability
|
||||
|
||||
Anthropic currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers.
|
||||
|
||||
## Anthropic Embeddings Model Availability
|
||||
|
||||
Anthropic currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## Anthropic Reranking Model Availability
|
||||
|
||||
Anthropic currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/anthropic/claude-4-sonnet?view=config)**
|
||||
</Info>
|
||||
|
||||
## How to Enable Prompt Caching with Claude
|
||||
|
||||
Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching), which allows Claude models to cache system messages and conversation history between requests to improve performance and reduce costs.
|
||||
|
||||
Prompt caching is generally available for:
|
||||
|
||||
- Claude 4 Sonnet
|
||||
- Claude 3.7 Sonnet
|
||||
- Claude 3.5 Sonnet
|
||||
- Claude 3.5 Haiku
|
||||
|
||||
To enable caching of the system message and the turn-by-turn conversation, update your model configuration as follows:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Anthropic
|
||||
- name: <MODEL_NAME>
|
||||
provider: anthropic
|
||||
model: claude-sonnet-4-20250514
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
|
|
@ -85,7 +64,7 @@ To enable caching of the system message and the turn-by-turn conversation, updat
|
|||
promptCaching: true
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
|
|
@ -94,9 +73,9 @@ To enable caching of the system message and the turn-by-turn conversation, updat
|
|||
"cacheSystemMessage": true,
|
||||
"cacheConversation": true
|
||||
},
|
||||
"title": "Anthropic",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-sonnet-4-latest",
|
||||
"model": "<MODEL_ID>",
|
||||
"defaultCompletionOptions": {
|
||||
"promptCaching": true
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,29 +1,20 @@
|
|||
---
|
||||
title: "How to Configure Azure AI Foundry with Continue"
|
||||
slug: ../azure
|
||||
description: "Configure Azure AI Foundry with Continue to access models from OpenAI and Mistral with Microsoft's enterprise security features, including setup for GPT-4o, Codestral, and embedding models"
|
||||
sidebarTitle: "Azure AI Foundry"
|
||||
---
|
||||
|
||||
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>
|
||||
|
||||
For details on OpenAI model setup, see [Azure OpenAI Service configuration](#how-to-configure-azure-openai-service).
|
||||
|
||||
Create an Azure AI Foundry resource in the [Azure Portal](https://portal.azure.com)
|
||||
</Info>
|
||||
|
||||
## How to Set Up Azure AI Foundry Chat Models
|
||||
|
||||
We recommend configuring **GPT-4o** as your chat model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: GPT-4o
|
||||
- name: <Model_NAME>
|
||||
provider: azure
|
||||
model: gpt-4o
|
||||
model: <MODEL_ID>
|
||||
apiBase: <YOUR_DEPLOYMENT_BASE>
|
||||
apiKey: <YOUR_AZURE_API_KEY> # If you use subscription key, try using Azure gateway to rename it apiKey
|
||||
env:
|
||||
|
|
@ -32,13 +23,13 @@ We recommend configuring **GPT-4o** as your chat model.
|
|||
apiVersion: 2023-07-01-preview # Azure API version
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [{
|
||||
"title": "GPT-4o",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "azure",
|
||||
"model": "gpt-4o",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
|
||||
"deployment": "<YOUR_DEPLOYMENT_NAME>",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>", // If you use subscription key, try using Azure gateway to rename it apiKey
|
||||
|
|
@ -49,101 +40,12 @@ We recommend configuring **GPT-4o** as your chat model.
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Set Up Azure AI Foundry Autocomplete Models
|
||||
|
||||
We recommend configuring **Codestral** as your autocomplete model.
|
||||
## Azure OpenAI Service (Alternative)
|
||||
|
||||
<Info>
|
||||
**Note:** Azure AI Foundry does not provide the FIM (Fill-in-Middle) endpoint
|
||||
required for autocomplete functionality. To use Codestral for autocomplete,
|
||||
deploy it through **Azure Machine Learning Studio** instead, which provides
|
||||
the necessary `/v1/fim/completions` endpoint.
|
||||
Get access to the Azure OpenAI service [here](https://azure.microsoft.com/en-us/products/ai-services/openai-service)
|
||||
</Info>
|
||||
|
||||
If you use Azure Machine Learning Studio to deploy Codestral:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Codestral
|
||||
provider: mistral
|
||||
model: codestral-latest
|
||||
apiBase: https://<YOUR_MODEL_NAME>.<YOUR_REGION>.models.ai.azure.com/v1
|
||||
apiKey: <YOUR_AZURE_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest",
|
||||
"apiBase": "https://<YOUR_MODEL_NAME>.<YOUR_REGION>.models.ai.azure.com/v1",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure Azure AI Foundry Embeddings Models
|
||||
|
||||
For recommended embeddings models, please refer to our [Model Recommendations page](/customization/models).
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Text Embedding-3 Large
|
||||
provider: azure
|
||||
model: text-embedding-3-large
|
||||
apiBase: <YOUR_DEPLOYMENT_BASE>
|
||||
apiKey: <YOUR_AZURE_API_KEY>
|
||||
env:
|
||||
deployment: <YOUR_DEPLOYMENT_NAME>
|
||||
apiType: azure
|
||||
apiVersion: 2023-07-01-preview
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "azure",
|
||||
"model": "text-embedding-3-large",
|
||||
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
|
||||
"deployment": "<YOUR_DEPLOYMENT_NAME>",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>",
|
||||
"apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Azure OpenAI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking models.
|
||||
|
||||
## Privacy
|
||||
|
||||
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.
|
||||
</Info>
|
||||
|
||||
## Azure OpenAI Service configuration
|
||||
|
||||
Azure OpenAI Service requires a handful of additional parameters to be configured, such as a deployment name and API base URL.
|
||||
|
||||
To find this information in _Azure AI Foundry_, first select the model that you would like to connect. Then visit _Endpoint_ > _Target URI_.
|
||||
|
|
@ -154,29 +56,29 @@ For example, a Target URI of `https://just-an-example.openai.azure.com/openai/de
|
|||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: GPT-4o Azure
|
||||
model: gpt-4o
|
||||
- name: <MODEL_NAME>
|
||||
model: <MODEL_ID>
|
||||
provider: azure
|
||||
apiBase: https://just-an-example.openai.azure.com
|
||||
apiKey: <YOUR_AZURE_API_KEY>
|
||||
env:
|
||||
apiVersion: 2023-03-15-preview
|
||||
deployment: gpt-4o-july
|
||||
apiVersion: <API_VERSION>
|
||||
deployment: <MODEL_DEPLOYMENT>
|
||||
apiType: azure-openai
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"title": "GPT-4o Azure",
|
||||
"model": "gpt-4o",
|
||||
"title": "<MODEL_NAME>",
|
||||
"model": "<MODEL_ID>",
|
||||
"provider": "azure",
|
||||
"apiBase": "https://just-an-example.openai.azure.com",
|
||||
"deployment": "gpt-4o-july",
|
||||
"apiVersion": "2023-03-15-preview",
|
||||
"deployment": "<MODEL_DEPLOYMENT>",
|
||||
"apiVersion": "<API_VERSION>",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>",
|
||||
"apiType": "azure-openai"
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
</Tabs>
|
||||
|
|
@ -1,23 +1,26 @@
|
|||
---
|
||||
title: "How to Configure Amazon Bedrock with Continue"
|
||||
slug: ../bedrock
|
||||
description: "Configure Amazon Bedrock with Continue to access foundation models like Claude 3.7 Sonnet for chat, Titan for embeddings, and Cohere for reranking, with AWS credential authentication"
|
||||
sidebarTitle: "Amazon Bedrock"
|
||||
---
|
||||
|
||||
Amazon Bedrock is a fully managed service on AWS that provides access to foundation models from various AI companies through a single API.
|
||||
<Tip>
|
||||
**Discover Amazon Bedrock models [here](https://hub.continue.dev/amazon)**
|
||||
</Tip>
|
||||
|
||||
## How to Set Up Amazon Bedrock Chat Models
|
||||
<Info>
|
||||
Get started with [Amazon Bedrock](https://aws.amazon.com/bedrock/)
|
||||
</Info>
|
||||
|
||||
We recommend configuring **Claude 3.7 Sonnet** as your chat model.
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.7 Sonnet
|
||||
- name: <MODEL_NAME>
|
||||
provider: bedrock
|
||||
model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
|
||||
model: <MODEL_ID>
|
||||
env:
|
||||
region: us-east-1
|
||||
profile: bedrock
|
||||
|
|
@ -25,14 +28,14 @@ We recommend configuring **Claude 3.7 Sonnet** as your chat model.
|
|||
- chat
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.7 Sonnet",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "bedrock",
|
||||
"model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
|
||||
"model": "<MODEL_ID>",
|
||||
"region": "us-east-1",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
|
|
@ -42,109 +45,9 @@ We recommend configuring **Claude 3.7 Sonnet** as your chat model.
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
> If you run into the following error when connecting to the new Claude 3.5 Sonnet 2 models from AWS - `400 Invocation of model ID anthropic.claude-3-5-sonnet-20241022-v2:0 with on-demand throughput isn't supported. Retry your request with the ID or ARN of an inference profile that contains this model.`
|
||||
|
||||
> You can fix this using the following config:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: bedrock
|
||||
model: us.anthropic.claude-3-5-sonnet-20241022-v2:0
|
||||
env:
|
||||
region: us-east-1
|
||||
profile: bedrock
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "bedrock",
|
||||
"model": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
|
||||
"region": "us-east-1",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Set Up Amazon Bedrock Autocomplete Models
|
||||
|
||||
Bedrock currently does not offer any autocomplete models. However, [Codestral from Mistral](https://mistral.ai/news/codestral-2501/) and [Point from Poolside](https://aws.amazon.com/bedrock/poolside/) will be supported in the near future.
|
||||
|
||||
In the meantime, you can view a list of autocomplete model providers [here](../../model-roles/autocomplete).
|
||||
|
||||
## How to Configure Amazon Bedrock Embeddings Models
|
||||
|
||||
We recommend configuring [`amazon.titan-embed-text-v2:0`](https://docs.aws.amazon.com/bedrock/latest/devguide/models.html#amazon.titan-embed-text-v2-0) as your embeddings model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Embeddings Model
|
||||
provider: bedrock
|
||||
model: amazon.titan-embed-text-v2:0
|
||||
env:
|
||||
region: us-west-2
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"title": "Embeddings Model",
|
||||
"provider": "bedrock",
|
||||
"model": "amazon.titan-embed-text-v2:0",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure Amazon Bedrock Reranking Models
|
||||
|
||||
We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may also use `amazon.rerank-v1:0`.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Bedrock Reranker
|
||||
provider: bedrock
|
||||
model: cohere.rerank-v3-5:0
|
||||
env:
|
||||
region: us-west-2
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "bedrock",
|
||||
"params": {
|
||||
"model": "cohere.rerank-v3-5:0",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/amazon/us-anthropic-claude-sonnet-4-20250514-v1?view=config)**
|
||||
</Info>
|
||||
|
||||
## How to Enable Prompt Caching with Amazon Bedrock
|
||||
|
||||
|
|
@ -153,23 +56,11 @@ messages between requests. Enable this behavior by adding
|
|||
`promptCaching: true` under `defaultCompletionOptions` in your model
|
||||
configuration.
|
||||
|
||||
Prompt caching is generally available for:
|
||||
|
||||
- Claude 3.7 Sonnet
|
||||
- Claude 3.5 Haiku
|
||||
- Amazon Nova Micro
|
||||
- Amazon Nova Lite
|
||||
- Amazon Nova Pro
|
||||
|
||||
Customers who were granted access to Claude 3.5 Sonnet v2 during the prompt
|
||||
caching preview will retain that access, but it cannot be enabled for new users
|
||||
on that model.
|
||||
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.7 Sonnet
|
||||
- name: <MODEL_NAME>
|
||||
provider: bedrock
|
||||
model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
|
||||
model: <MODEL_ID>
|
||||
defaultCompletionOptions:
|
||||
promptCaching: true
|
||||
```
|
||||
|
|
@ -194,9 +85,9 @@ You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication i
|
|||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.7 Sonnet
|
||||
- name: <MODEL_NAME>
|
||||
provider: bedrock
|
||||
model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
|
||||
model: <MODEL_ID>
|
||||
env:
|
||||
region: us-east-1
|
||||
accessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }} # can also enter key inline here for local assistants
|
||||
|
|
@ -205,17 +96,17 @@ You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication i
|
|||
- chat
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.7 Sonnet",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "bedrock",
|
||||
"model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
|
||||
"model": "<MODEL_ID>",
|
||||
"region": "us-east-1",
|
||||
"accessKeyId": "[YOUR_ACCESS_KEY_ID]",
|
||||
"secretAccessKey": "[YOUR_SECRET_ACCESS_KEY]"
|
||||
"accessKeyId": "<YOUR_ACCESS_KEY_ID>",
|
||||
"secretAccessKey": "<YOUR_SECRET_ACCESS_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -231,23 +122,23 @@ To setup Bedrock using custom imported models, add the following to your config
|
|||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: AWS Bedrock deepseek-coder-6.7b-instruct
|
||||
- name: <MODEL_NAME>
|
||||
provider: bedrockimport
|
||||
model: deepseek-coder-6.7b-instruct
|
||||
model: <MODEL_ID>
|
||||
env:
|
||||
region: us-west-2
|
||||
profile: bedrock
|
||||
modelArn: arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "AWS Bedrock deepseek-coder-6.7b-instruct",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "bedrockimport",
|
||||
"model": "deepseek-coder-6.7b-instruct",
|
||||
"model": "<MODEL_ID>",
|
||||
"modelArn": "arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX",
|
||||
"region": "us-west-2",
|
||||
"profile": "bedrock"
|
||||
|
|
|
|||
|
|
@ -1,82 +0,0 @@
|
|||
---
|
||||
title: "How to Configure DeepSeek with Continue"
|
||||
slug: ../deepseek
|
||||
description: "Configure DeepSeek models with Continue, including DeepSeek Chat for general conversations and DeepSeek Coder specifically optimized for code autocomplete and programming tasks"
|
||||
sidebarTitle: "DeepSeek"
|
||||
---
|
||||
|
||||
<Info>
|
||||
You can get an API key from the [DeepSeek console](https://www.deepseek.com/).
|
||||
</Info>
|
||||
|
||||
## How to Set Up DeepSeek Chat Models
|
||||
|
||||
We recommend configuring **DeepSeek Chat** as your chat model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Chat
|
||||
provider: deepseek
|
||||
model: deepseek-chat
|
||||
apiKey: <YOUR_DEEPSEEK_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Chat",
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-chat",
|
||||
"apiKey": "<YOUR_DEEPSEEK_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Set Up DeepSeek Autocomplete Models
|
||||
|
||||
For recommended autocomplete models, please refer to our [Model Recommendations page](/customization/models).
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Coder
|
||||
provider: deepseek
|
||||
model: deepseek-coder
|
||||
apiKey: <YOUR_DEEPSEEK_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "DeepSeek Coder",
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-coder",
|
||||
"apiKey": "<YOUR_DEEPSEEK_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure DeepSeek Embeddings Models
|
||||
|
||||
DeepSeek currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## How to Configure DeepSeek Reranking Models
|
||||
|
||||
DeepSeek currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,37 +1,37 @@
|
|||
---
|
||||
title: "How to Configure Gemini with Continue"
|
||||
slug: ../gemini
|
||||
description: "Configure Google's Gemini models with Continue to access Gemini 2.0 Flash for chat and text-embedding-004 for embeddings with simple API key authentication"
|
||||
sidebarTitle: "Gemini"
|
||||
---
|
||||
|
||||
<Tip>
|
||||
**Discover Google models [here](https://hub.continue.dev/?q=Gemini)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
You can get an API key from the [Google AI
|
||||
Studio](https://aistudio.google.com/).
|
||||
Get an API key from [Google AI Studio](https://aistudio.google.com/)
|
||||
</Info>
|
||||
|
||||
## How to Set Up Gemini Chat Models
|
||||
|
||||
We recommend configuring **Gemini 2.0 Flash** as your chat model.
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Gemini 2.0 Flash
|
||||
- name: <MODEL_NAME>
|
||||
provider: gemini
|
||||
model: gemini-2.0-flash
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_GEMINI_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemini 2.0 Flash",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "gemini",
|
||||
"model": "gemini-2.0-flash",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_GEMINI_API_KEY>"
|
||||
}
|
||||
]
|
||||
|
|
@ -40,43 +40,6 @@ We recommend configuring **Gemini 2.0 Flash** as your chat model.
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Set Up Gemini Autocomplete Models
|
||||
|
||||
Gemini currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers.
|
||||
|
||||
## How to Configure Gemini Embeddings Models
|
||||
|
||||
For recommended embeddings models, please refer to our [Model Recommendations page](/customization/models).
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Gemini Embeddings
|
||||
provider: gemini
|
||||
model: models/text-embedding-004
|
||||
apiKey: <YOUR_GEMINI_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "gemini",
|
||||
"model": "models/text-embedding-004",
|
||||
"apiKey": "<YOUR_GEMINI_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure Gemini Reranking Models
|
||||
|
||||
Gemini currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/google/gemini-2.5-pro?view=config)**
|
||||
</Info>
|
||||
|
|
@ -1,36 +1,37 @@
|
|||
---
|
||||
title: "How to Configure Inception with Continue"
|
||||
slug: ../inception
|
||||
description: "Configure Inception models with Continue, featuring Mercury Coder Small for both chat and autocomplete functions, optimized for programming and code generation tasks"
|
||||
sidebarTitle: "Inception"
|
||||
---
|
||||
|
||||
<Tip>
|
||||
**Discover Inception models [here](https://hub.continue.dev/inceptionlabs)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
You can get an API key from the [Inception
|
||||
Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys).
|
||||
Get an API key from [Inception Platform](https://platform.inceptionlabs.ai/dashboard/api-keys)
|
||||
</Info>
|
||||
|
||||
## How to Set Up Inception Chat Models
|
||||
|
||||
We recommend configuring **Mercury Coder Small** as your chat model.
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- uses: inceptionlabs/mercury-coder-small
|
||||
with:
|
||||
INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }}
|
||||
- name: <MODEL_NAME>
|
||||
provider: inception
|
||||
model: <MODEL_ID>
|
||||
apiKey: <INCEPTION_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Mercury Coder Small",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "inception",
|
||||
"model": "mercury-coder-small",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<INCEPTION_API_KEY>"
|
||||
}
|
||||
]
|
||||
|
|
@ -39,43 +40,6 @@ We recommend configuring **Mercury Coder Small** as your chat model.
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Set Up Inception Autocomplete Models
|
||||
|
||||
We also recommend configuring **Mercury Coder Small** as your autocomplete model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- uses: inceptionlabs/mercury-coder-small
|
||||
with:
|
||||
INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }}
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": [
|
||||
{
|
||||
"title": "Mercury Coder Small",
|
||||
"provider": "inception",
|
||||
"model": "mercury-coder-small",
|
||||
"apiKey": "<INCEPTION_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure Inception Embeddings Models
|
||||
|
||||
Inception currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## How to Configure Inception Reranking Models
|
||||
|
||||
Inception currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/inceptionlabs/mercury-coder?view=config)**
|
||||
</Info>
|
||||
|
|
|
|||
47
docs/customize/model-providers/top-level/lmstudio.mdx
Normal file
47
docs/customize/model-providers/top-level/lmstudio.mdx
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
---
|
||||
title: "LM Studio"
|
||||
---
|
||||
|
||||
<Tip>
|
||||
**Discover LM Studio models [here](https://hub.continue.dev/lmstudio)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
Get started with [LM Studio](https://lmstudio.ai/download)
|
||||
</Info>
|
||||
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: lmstudio
|
||||
model: <MODEL_ID>
|
||||
apiBase: http://<MY_ENDPOINT>/v1 # if running a remote instance of LM Studio
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "lmstudio",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiBase": "http://<MY_ENDPOINT>/v1" // if running a remote instance of LM Studio
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
<Note>
|
||||
The default `apiBase` is `http://localhost:1234/v1`
|
||||
</Note>
|
||||
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/lmstudio/qwen-qwen3-coder-30b?view=config)**
|
||||
</Info>
|
||||
|
|
@ -1,114 +0,0 @@
|
|||
---
|
||||
title: "How to Configure Mistral with Continue"
|
||||
slug: ../mistral
|
||||
description: "Configure Mistral AI models with Continue, including Mistral Large for chat, Codestral for code autocomplete, and Mistral Embed for embeddings with separate API key options"
|
||||
sidebarTitle: "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`.
|
||||
</Info>
|
||||
|
||||
## How to Set Up Mistral Chat Models
|
||||
|
||||
We recommend configuring **Mistral Large** as your chat model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Mistral Large
|
||||
provider: mistral
|
||||
model: mistral-large-latest
|
||||
apiKey: <YOUR_MISTRAL_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Mistral Large",
|
||||
"provider": "mistral",
|
||||
"model": "mistral-large-latest",
|
||||
"apiKey": "<YOUR_MISTRAL_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Set Up Mistral Autocomplete Models
|
||||
|
||||
We recommend configuring **Codestral** as your autocomplete model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Codestral
|
||||
provider: mistral
|
||||
model: codestral-latest
|
||||
# apiBase: https://codestral.mistral.ai/v1 # Do this if you are using a Codestral API key
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest"
|
||||
// "apiBase": "https://codestral.mistral.ai/v1" // Do this if you are using a Codestral API key
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure Mistral Embeddings Models
|
||||
|
||||
We recommend configuring **Mistral Embed** as your embeddings model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Mistral Embed
|
||||
provider: mistral
|
||||
model: mistral-embed
|
||||
apiKey: <YOUR_MISTRAL_API_KEY>
|
||||
apiBase: https://api.mistral.ai/v1
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "mistral",
|
||||
"model": "mistral-embed",
|
||||
"apiKey": "<YOUR_MISTRAL_API_KEY>",
|
||||
"apiBase": "https://api.mistral.ai/v1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure Mistral Reranking Models
|
||||
|
||||
Mistral currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,33 +1,38 @@
|
|||
---
|
||||
title: "How to Configure Ollama with Continue"
|
||||
slug: ../ollama
|
||||
description: "Configure Ollama with Continue to run powerful open source models locally including Llama3.1 for chat, Qwen2.5-Coder for autocomplete, and Nomic Embed Text for embeddings"
|
||||
sidebarTitle: "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.
|
||||
<Tip>
|
||||
**Discover Ollama models [here](https://hub.continue.dev/lmstudio)**
|
||||
</Tip>
|
||||
|
||||
## How to Set Up Ollama Chat Models
|
||||
<Info>
|
||||
Get started with [Ollama](https://ollama.com/download)
|
||||
</Info>
|
||||
|
||||
We recommend configuring **Llama3.1 8B** as your chat model.
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama3.1 8B
|
||||
- name: <MODEL_NAME>
|
||||
provider: ollama
|
||||
model: llama3.1:8b
|
||||
model: <MODEL_ID>
|
||||
apiBase: http://<my endpoint>:11434 # if running a remote instance of Ollama
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama3.1 8B",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "ollama",
|
||||
"model": "llama3.1:8b"
|
||||
"model": "<MODEL_ID>"
|
||||
"apiBase": "http://<my endpoint>:11434" // if running a remote instance of Ollama
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -35,96 +40,9 @@ We recommend configuring **Llama3.1 8B** as your chat model.
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure Ollama Autocomplete Models
|
||||
|
||||
We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen2.5-Coder 1.5B
|
||||
provider: ollama
|
||||
model: qwen2.5-coder:1.5b-base
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen2.5-Coder 1.5B",
|
||||
"provider": "ollama",
|
||||
"model": "qwen2.5-coder:1.5b-base"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Set Up Ollama Embeddings Models
|
||||
|
||||
For recommended embeddings models, please refer to our [Model Recommendations page](/customization/models).
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nomic Embed Text
|
||||
provider: ollama
|
||||
model: nomic-embed-text
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "ollama",
|
||||
"model": "nomic-embed-text"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Ollama Reranking Model Availability
|
||||
|
||||
Ollama currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking) to see a list of reranking model providers.
|
||||
|
||||
## How to Configure Remote Ollama Instance
|
||||
|
||||
To configure a remote instance of Ollama, add the `"apiBase"` property to your model in config.json:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama3.1 8B
|
||||
provider: ollama
|
||||
model: llama3.1:8b
|
||||
apiBase: http://<my endpoint>:11434
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama3.1 8B",
|
||||
"provider": "ollama",
|
||||
"model": "llama3.1:8b",
|
||||
"apiBase": "http://<my endpoint>:11434"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/ollama/qwen3-coder-30b?view=config)**
|
||||
</Info>
|
||||
|
||||
## How to Configure Model Capabilities in Ollama
|
||||
|
||||
|
|
@ -134,25 +52,25 @@ Ollama models usually have their capabilities auto-detected correctly. However,
|
|||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Custom Vision Model
|
||||
- name: <CUSTOM_MODEL_NAME>
|
||||
provider: ollama
|
||||
model: my-custom-llava
|
||||
model: <CUSTOM_MODEL_ID>
|
||||
capabilities:
|
||||
- tool_use # Enable if your model supports function calling
|
||||
- image_input # Enable for vision models like llava
|
||||
- image_input # Enable for vision models
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Custom Vision Model",
|
||||
"title": "<CUSTOM_MODEL_NAME>",
|
||||
"provider": "ollama",
|
||||
"model": "my-custom-llava",
|
||||
"model": "<CUSTOM_MODEL_ID>",
|
||||
"capabilities": {
|
||||
"tools": true,
|
||||
"uploadImage": true
|
||||
"tools": true, // Enable if your model supports function calling
|
||||
"uploadImage": true // Enable for vision models
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -162,6 +80,5 @@ Ollama models usually have their capabilities auto-detected correctly. However,
|
|||
</Tabs>
|
||||
|
||||
<Note>
|
||||
Most standard Ollama models (like llama3.1, mistral, etc.) support tool use by
|
||||
default. Vision models (like llava) also support image input.
|
||||
Many Ollama models support tool use by default. Vision models often also support image input
|
||||
</Note>
|
||||
|
|
|
|||
|
|
@ -1,37 +1,37 @@
|
|||
---
|
||||
title: "How to Configure OpenAI Models with Continue"
|
||||
slug: ../openai
|
||||
description: "Configure OpenAI models with Continue, including GPT-4o for chat and text-embedding-3-large for embeddings, with support for OpenAI-compatible servers and APIs"
|
||||
sidebarTitle: "OpenAI"
|
||||
---
|
||||
|
||||
<Tip>
|
||||
**Discover OpenAI models [here](https://hub.continue.dev/openai)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
You can get an API key from the [OpenAI
|
||||
console](https://platform.openai.com/account/api-keys)
|
||||
Get an API key from the [OpenAI Console](https://platform.openai.com/account/api-keys)
|
||||
</Info>
|
||||
|
||||
## How to Set Up OpenAI Chat Models
|
||||
|
||||
We recommend configuring **GPT-4o** as your chat model.
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: GPT-4o
|
||||
- name: <MODEL_NAME>
|
||||
provider: openai
|
||||
model: gpt-4o
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_OPENAI_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "GPT-4o",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "openai",
|
||||
"model": "gpt-4o",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_OPENAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
|
|
@ -40,50 +40,13 @@ We recommend configuring **GPT-4o** as your chat model.
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## OpenAI Autocomplete Model Availability
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/openai/gpt-5?view=config)**
|
||||
</Info>
|
||||
|
||||
OpenAI currently does not offer any autocomplete models.
|
||||
## OpenAI API compatible providers
|
||||
|
||||
[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers.
|
||||
|
||||
## How to Configure OpenAI Embeddings Models
|
||||
|
||||
We recommend configuring **text-embedding-3-large** as your embeddings model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: OpenAI Embeddings
|
||||
provider: openai
|
||||
model: text-embedding-3-large
|
||||
apiKey: <YOUR_OPENAI_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "openai",
|
||||
"model": "text-embedding-3-large",
|
||||
"apiKey": "<YOUR_OPENAI_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## OpenAI Reranking Model Availability
|
||||
|
||||
OpenAI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
||||
## How to Use OpenAI-Compatible Servers and APIs
|
||||
|
||||
OpenAI compatible servers
|
||||
OpenAI API compatible providers include
|
||||
|
||||
- [KoboldCpp](https://github.com/lostruins/koboldcpp)
|
||||
- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation)
|
||||
|
|
@ -94,34 +57,27 @@ OpenAI compatible servers
|
|||
- [vLLM](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html)
|
||||
- [BerriAI/litellm](https://github.com/BerriAI/litellm)
|
||||
|
||||
OpenAI compatible APIs
|
||||
|
||||
- [Anyscale Endpoints](https://github.com/continuedev/deploy-os-code-llm#others)
|
||||
- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints)
|
||||
|
||||
### How to Configure Custom API Base for OpenAI-Compatible Services
|
||||
|
||||
If you are using an OpenAI compatible server / API, you can change the `apiBase` like this:
|
||||
If you are using an OpenAI API compatible providers, you can change the `apiBase` like this:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: OpenAI-compatible server / API
|
||||
- name: <OPENAI_API_COMPATIBLE_PROVIDER_MODEL>
|
||||
provider: openai
|
||||
model: MODEL_NAME
|
||||
model: <MODEL_NAME>
|
||||
apiBase: http://localhost:8000/v1
|
||||
apiKey: <YOUR_CUSTOM_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "OpenAI-compatible server / API",
|
||||
"title": "<OPENAI_API_COMPATIBLE_PROVIDER_MODEL>",
|
||||
"provider": "openai",
|
||||
"model": "MODEL_NAME",
|
||||
"model": "<MODEL_NAME>",
|
||||
"apiKey": "<YOUR_CUSTOM_API_KEY>",
|
||||
"apiBase": "http://localhost:8000/v1"
|
||||
}
|
||||
|
|
@ -139,21 +95,21 @@ To force usage of `chat/completions` instead of `completions` endpoint you can s
|
|||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: OpenAI-compatible server / API
|
||||
- name: <OPENAI_API_COMPATIBLE_PROVIDER_MODEL>
|
||||
provider: openai
|
||||
model: MODEL_NAME
|
||||
model: <MODEL_NAME>>
|
||||
apiBase: http://localhost:8000/v1
|
||||
useLegacyCompletionsEndpoint: true
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "OpenAI-compatible server / API",
|
||||
"title": "<OPENAI_API_COMPATIBLE_PROVIDER_MODEL>",
|
||||
"provider": "openai",
|
||||
"model": "MODEL_NAME",
|
||||
"model": "<MODEL_NAME>",
|
||||
"apiBase": "http://localhost:8000/v1",
|
||||
"useLegacyCompletionsEndpoint": true
|
||||
}
|
||||
|
|
|
|||
132
docs/customize/model-providers/top-level/openrouter.mdx
Normal file
132
docs/customize/model-providers/top-level/openrouter.mdx
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
---
|
||||
title: "How to Configure OpenRouter with Continue"
|
||||
sidebarTitle: "OpenRouter"
|
||||
---
|
||||
|
||||
<Tip>
|
||||
**Discover Inception models [here](https://hub.continue.dev/inceptionlabs)**
|
||||
</Tip>
|
||||
|
||||
<Info>
|
||||
Get an API key from [OpenRouter](https://openrouter.ai/keys)
|
||||
</Info>
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: openrouter
|
||||
model: <MODEL_ID>
|
||||
apiBase: https://openrouter.ai/api/v1
|
||||
apiKey: <YOUR_OPEN_ROUTER_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "openrouter",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiBase": "https://openrouter.ai/api/v1",
|
||||
"apiKey": "<YOUR_OPEN_ROUTER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
<Info>
|
||||
**Check out a more advanced configuration [here](https://hub.continue.dev/openrouter/qwen3-coder?view=config)**
|
||||
</Info>
|
||||
|
||||
## Optional configuration
|
||||
|
||||
OpenRouter allows you configure provider preferences, model routing configuration, and more. You can set these via `requestOptions`.
|
||||
|
||||
For example, to prevent extra long prompts from being compressed, you can explicitly turn off [Transforms](https://openrouter.ai/docs/features/message-transforms):)
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: openrouter
|
||||
model: <MODEL_ID>
|
||||
requestOptions:
|
||||
extraBodyProperties:
|
||||
transforms: []
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "openrouter",
|
||||
"model": "<MODEL_ID>",
|
||||
"requestOptions": {
|
||||
"extraBodyProperties": {
|
||||
"transforms": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## Model Capabilities
|
||||
|
||||
OpenRouter models may require explicit capability configuration because the proxy doesn't always preserve the function calling support of the original model.
|
||||
|
||||
<Info>
|
||||
Continue automatically uses system message tools for models that don't support
|
||||
native function calling, so Agent mode should work even without explicit
|
||||
capability configuration. However, you can still override capabilities if
|
||||
needed.
|
||||
</Info>
|
||||
|
||||
If you're experiencing issues with Agent mode or tools not working, you can add the capabilities field:
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: <MODEL_NAME>
|
||||
provider: openrouter
|
||||
model: <MODEL_ID>
|
||||
apiBase: https://openrouter.ai/api/v1
|
||||
apiKey: <YOUR_OPEN_ROUTER_API_KEY>
|
||||
capabilities:
|
||||
- tool_use # Enable function calling for Agent mode
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "openrouter",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiBase": "https://openrouter.ai/api/v1",
|
||||
"apiKey": "<YOUR_OPEN_ROUTER_API_KEY>",
|
||||
"capabilities": {
|
||||
"tools": true, // Enable function calling for Agent mode
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
<Note>
|
||||
Not all models support function calling. Check the [OpenRouter models page](https://openrouter.ai/models) for specific model capabilities.
|
||||
</Note>
|
||||
|
|
@ -1,41 +1,36 @@
|
|||
---
|
||||
title: "How to Configure Vertex AI with Continue"
|
||||
slug: ../vertexai
|
||||
description: "Configure Google Cloud's Vertex AI with Continue to access powerful models like Claude 3.5 Sonnet, Codestral, and text-embedding-004 for chat, autocomplete, and embeddings"
|
||||
sidebarTitle: "Vertex AI"
|
||||
---
|
||||
|
||||
<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).
|
||||
Enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com)
|
||||
and set up [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc)
|
||||
</Info>
|
||||
|
||||
## How to Set Up Vertex AI Chat Models
|
||||
|
||||
We recommend configuring **Claude 3.5 Sonnet** as your chat model.
|
||||
## Configuration
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
- name: <MODEL_NAME>
|
||||
provider: vertexai
|
||||
model: claude-3-5-sonnet-20240620
|
||||
model: <MODEL_ID>
|
||||
env:
|
||||
projectId: <PROJECT_ID>
|
||||
region: us-east5
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "vertexai",
|
||||
"model": "claude-3-5-sonnet-20240620",
|
||||
"model": "<MODEL_ID>",
|
||||
"projectId": "[PROJECT_ID]",
|
||||
"region": "us-east5"
|
||||
}
|
||||
|
|
@ -45,104 +40,32 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model.
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Set Up Vertex AI Autocomplete Models
|
||||
|
||||
We recommend configuring **Codestral** or **code-gecko** as your autocomplete model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Codestral (Vertex AI)
|
||||
provider: vertexai
|
||||
model: codestral
|
||||
roles:
|
||||
- autocomplete
|
||||
env:
|
||||
projectId: <PROJECT_ID>
|
||||
region: us-central1
|
||||
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral (Vertex AI)",
|
||||
"provider": "vertexai",
|
||||
"model": "codestral",
|
||||
"projectId": "[PROJECT_ID]",
|
||||
"region": "us-central1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure Vertex AI Embeddings Models
|
||||
|
||||
We recommend configuring **text-embedding-004** as your embeddings model.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Text Embedding-004
|
||||
provider: vertexai
|
||||
model: text-embedding-004
|
||||
env:
|
||||
projectId: <PROJECT_ID>
|
||||
region: us-central1
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "vertexai",
|
||||
"model": "text-embedding-004",
|
||||
"projectId": "[PROJECT_ID]",
|
||||
"region": "us-central1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Configure Vertex AI Reranking Models
|
||||
|
||||
Vertex AI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
||||
## How to Enable Vertex AI Express Mode
|
||||
|
||||
You can use VertexAI in [express mode](https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview) by only providing an API Key. Only some Gemini models are supported in express mode for now.
|
||||
You can use Vertex AI in [express mode](https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview) by only providing an API Key. Only some Gemini models are supported in express mode for now.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Gemini 2.5 Flash - VertexAI
|
||||
- name: <MODEL_NAME>
|
||||
provider: vertexai
|
||||
model: gemini-2.5-flash
|
||||
apiKey: ${{ secrets.GOOGLE_CLOUD_API_KEY }}
|
||||
model: <MODEL_ID>
|
||||
apiKey: <YOUR_GOOGLE_CLOUD_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
</Tab>
|
||||
<Tab title="JSON (Deprecated)">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemini 2.5 Flash - VertexAI",
|
||||
"title": "<MODEL_NAME>",
|
||||
"provider": "vertexai",
|
||||
"model": "gemini-2.5-flash",
|
||||
"apiKey": "[YOUR_GOOGLE_CLOUD_API_KEY]",
|
||||
"model": "<MODEL_ID>",
|
||||
"apiKey": "<YOUR_GOOGLE_CLOUD_API_KEY>",
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
---
|
||||
title: "How to Configure xAI with Continue"
|
||||
slug: ../xai
|
||||
description: "Configure xAI's Grok 4 model with Continue for advanced chat capabilities, with easy API key setup from the xAI console"
|
||||
sidebarTitle: "xAI"
|
||||
---
|
||||
|
||||
<Info>
|
||||
You can get an API key from the [xAI console](https://console.x.ai/)
|
||||
</Info>
|
||||
|
||||
## How to Set Up xAI Chat Models
|
||||
|
||||
We recommend configuring **grok-4** as your chat model. For information on other available models, visit [xAI Documentation](https://docs.x.ai/docs/models).
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Config">
|
||||
Add the [xAI Grok 4 model block](https://hub.continue.dev/xai/grok-4) on the hub.
|
||||
</Tab>
|
||||
<Tab title="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Grok 4
|
||||
provider: xAI
|
||||
model: grok-4
|
||||
apiKey: <YOUR_XAI_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Grok 4",
|
||||
"provider": "xAI",
|
||||
"model": "grok-4",
|
||||
"apiKey": "<YOUR_XAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
## How to Set Up xAI Autocomplete Models
|
||||
|
||||
xAI currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers.
|
||||
|
||||
## How to Configure xAI Embeddings Models
|
||||
|
||||
xAI currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## How to Configure xAI Reranking Models
|
||||
|
||||
xAI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -7,7 +7,7 @@ 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). The selected chat model will also be used for [Edit](../../features/edit/quick-start) and [Apply](./apply) if no `edit` or `apply` models are specified, respectively.
|
||||
In Continue, these models are used for normal [Chat](../../features/chat/quick-start). 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.
|
||||
|
||||
## Recommended Chat models
|
||||
|
||||
|
|
@ -156,7 +156,7 @@ If you prefer to use a model from [OpenAI](../model-providers/top-level/openai),
|
|||
|
||||
### Grok-2 from xAI
|
||||
|
||||
If you prefer to use a model from [xAI](../model-providers/top-level/xAI), then we recommend Grok-2.
|
||||
If you prefer to use a model from [xAI](../model-providers/more/xAI), then we recommend Grok-2.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Hub">
|
||||
|
|
@ -226,7 +226,7 @@ For the best local, offline Chat experience, you will want to use a model that i
|
|||
|
||||
### Llama 3.1 8B
|
||||
|
||||
If your local machine can run an 8B parameter model, then we recommend running Llama 3.1 8B on your machine (e.g. using [Ollama](../model-providers/top-level/ollama) or [LM Studio](../model-providers/more/lmstudio)).
|
||||
If your local machine can run an 8B parameter model, then we recommend running Llama 3.1 8B on your machine (e.g. using [Ollama](../model-providers/top-level/ollama) or [LM Studio](../model-providers/top-level/lmstudio)).
|
||||
|
||||
<Tabs>
|
||||
<Tab title="Hub">
|
||||
|
|
@ -315,7 +315,7 @@ If your local machine can run an 8B parameter model, then we recommend running L
|
|||
|
||||
### DeepSeek Coder 2 16B
|
||||
|
||||
If your local machine can run a 16B parameter model, then we recommend running DeepSeek Coder 2 16B (e.g. using [Ollama](../model-providers/top-level/ollama.mdx) or [LM Studio](../model-providers/more/lmstudio.mdx)).
|
||||
If your local machine can run a 16B parameter model, then we recommend running DeepSeek Coder 2 16B (e.g. using [Ollama](../model-providers/top-level/ollama) or [LM Studio](../model-providers/top-level/lmstudio)).
|
||||
|
||||
<Tabs>
|
||||
{/* HUB_TODO nonexistent blocks */}
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ See [here](../model-providers/top-level/vertexai#how-to-configure-vertex-ai-embe
|
|||
|
||||
### Mistral
|
||||
|
||||
See [here](../model-providers/top-level/mistral#how-to-configure-mistral-embeddings-models) for instructions on how to use Mistral for embeddings.
|
||||
See [here](../model-providers/more/mistral#how-to-configure-mistral-embeddings-models) for instructions on how to use Mistral for embeddings.
|
||||
|
||||
### NVIDIA
|
||||
|
||||
|
|
@ -154,4 +154,4 @@ See [here](../model-providers/more/watsonx#embeddings-model) for instructions on
|
|||
|
||||
### LMStudio
|
||||
|
||||
See [here](../model-providers/more/lmstudio#embeddings-model) for instructions on how to use LMStudio for embeddings.
|
||||
See [here](../model-providers/top-level/lmstudio#embeddings-model) for instructions on how to use LMStudio for embeddings.
|
||||
|
|
|
|||
|
|
@ -3,17 +3,11 @@ title: "Overview"
|
|||
description: "Explore Continue's advanced capabilities for power users and complex development scenarios."
|
||||
---
|
||||
|
||||
## Context Providers
|
||||
|
||||
Master how Continue understands your codebase with powerful context providers for code, documentation, and more.
|
||||
|
||||
[Explore Context Providers →](/customize/custom-providers)
|
||||
|
||||
## Context Integration
|
||||
|
||||
Specialized context features for codebase understanding and documentation integration.
|
||||
|
||||
[Browse Context Features →](customize/context/codebase)
|
||||
[Browse Context Features →](/guides/understanding-assistants)
|
||||
|
||||
## Deep Dives
|
||||
|
||||
|
|
@ -33,6 +27,12 @@ Understand how different models can be assigned specific roles in your developme
|
|||
|
||||
[Learn Model Roles →](/customize/model-roles)
|
||||
|
||||
## Deep Dives
|
||||
|
||||
Detailed technical explanations of Continue's internal workings and advanced configuration options.
|
||||
|
||||
[Read Deep Dives →](/customization/overview#configuration)
|
||||
|
||||
## Reference
|
||||
|
||||
Complete configuration reference and API documentation.
|
||||
|
|
@ -47,4 +47,4 @@ Solutions to common issues and debugging techniques.
|
|||
|
||||
---
|
||||
|
||||
These advanced topics help you get the most out of Continue in complex development environments.
|
||||
These advanced topics help you get the most out of Continue in complex development environments.
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
---
|
||||
title: "User Settings Page"
|
||||
description: "Reference for Adjusting User-Specific Settings"
|
||||
keywords: [config, settings, configuration, customize, customization, sidebar]
|
||||
---
|
||||
|
||||
The **User Settings page** can be accessed by clicking the gear icon in the header of the Continue sidebar and then selecting the "Settings" tab.
|
||||
|
||||

|
||||
|
||||
Which takes you to this page (select the "Settings" tab):
|
||||
|
||||

|
||||
|
||||
Below that, the following settings which are not part of a configuration file are available:
|
||||
|
||||
- **Show Session Tabs**: If on, displays tabs above the chat as an alternative way to organize and access your sessions. Off by default
|
||||
- **Wrap Codeblocks**: If on, enables text wrapping in code blocks. Off by default
|
||||
- **Show Chat Scrollbar**: If on, enables a scrollbar in the chat window. Off by default
|
||||
- **Text-to-Speech Output**: If on, reads LLM responses aloud with TTS. Off by default
|
||||
- **Enable Session Titles**: If on, generates summary titles for each chat session after the first message, using the current Chat model. On by default
|
||||
- **Format Markdown**: If off, shows responses as raw text. On by default
|
||||
- **Allow Anonymous Telemetry**: If on, allows Continue to send anonymous telemetry. **On** by default
|
||||
- **Enable Indexing**: Enables indexing of the codebase for the @codebase and @code context providers. **On** by default
|
||||
- **Font Size**: Specifies base font size for UI elements
|
||||
- **Multiline Autocompletions**: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
|
||||
- **Autocomplete timeout**: Maximum time in milliseconds for autocomplete request/retrieval. Defaults to 150
|
||||
- **Autocomplete debounce**: Minimum time in milliseconds to trigger an autocomplete request after a change. Defaults to 250
|
||||
- **Disable autocomplete in files**: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., `**/*.{txt,md}`
|
||||
|
||||
## Experimental settings
|
||||
|
||||
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>
|
||||
|
|
@ -25,6 +25,6 @@ The following usage information is collected and reported:
|
|||
|
||||
## How to Opt Out
|
||||
|
||||
You can disable anonymous telemetry by visiting the [User Settings Page](/customize/settings) and toggling "Allow Anonymous Telemetry" off.
|
||||
You can disable anonymous telemetry by toggling "Allow Anonymous Telemetry" off in the user settings.
|
||||
|
||||
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).
|
||||
|
|
|
|||
211
docs/docs.json
211
docs/docs.json
|
|
@ -27,6 +27,18 @@
|
|||
"group": "Features",
|
||||
"icon": "star",
|
||||
"pages": [
|
||||
{
|
||||
"group": "Agent",
|
||||
"icon": "robot",
|
||||
"pages": [
|
||||
"features/agent/quick-start",
|
||||
"features/agent/how-it-works",
|
||||
"features/agent/plan-mode",
|
||||
"features/agent/model-setup",
|
||||
"features/agent/how-to-customize",
|
||||
"features/agent/context-selection"
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Chat",
|
||||
"icon": "messages",
|
||||
|
|
@ -60,18 +72,6 @@
|
|||
"features/edit/how-to-customize",
|
||||
"features/edit/context-selection"
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Agent",
|
||||
"icon": "robot",
|
||||
"pages": [
|
||||
"features/agent/quick-start",
|
||||
"features/agent/how-it-works",
|
||||
"features/agent/plan-mode",
|
||||
"features/agent/model-setup",
|
||||
"features/agent/how-to-customize",
|
||||
"features/agent/context-selection"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -81,9 +81,9 @@
|
|||
"pages": [
|
||||
"customization/overview",
|
||||
"customization/models",
|
||||
"customization/prompts",
|
||||
"customization/mcp-tools",
|
||||
"customization/rules",
|
||||
"customization/mcp-tools"
|
||||
"customization/prompts"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -109,32 +109,30 @@
|
|||
"group": "Popular Providers",
|
||||
"pages": [
|
||||
"customize/model-providers/top-level/anthropic",
|
||||
"customize/model-providers/top-level/openai",
|
||||
"customize/model-providers/top-level/azure",
|
||||
"customize/model-providers/top-level/bedrock",
|
||||
"customize/model-providers/top-level/ollama",
|
||||
"customize/model-providers/top-level/gemini",
|
||||
"customize/model-providers/top-level/deepseek",
|
||||
"customize/model-providers/top-level/mistral",
|
||||
"customize/model-providers/top-level/xAI",
|
||||
"customize/model-providers/top-level/vertexai",
|
||||
"customize/model-providers/top-level/inception"
|
||||
"customize/model-providers/top-level/inception",
|
||||
"customize/model-providers/top-level/lmstudio",
|
||||
"customize/model-providers/top-level/ollama",
|
||||
"customize/model-providers/top-level/openrouter",
|
||||
"customize/model-providers/top-level/openai",
|
||||
"customize/model-providers/top-level/vertexai"
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "More Providers",
|
||||
"pages": [
|
||||
"customize/model-providers/more/deepseek",
|
||||
"customize/model-providers/more/deepinfra",
|
||||
"customize/model-providers/more/groq",
|
||||
"customize/model-providers/more/together",
|
||||
"customize/model-providers/more/lmstudio",
|
||||
"customize/model-providers/more/huggingfaceinferenceapi",
|
||||
"customize/model-providers/more/llamacpp",
|
||||
"customize/model-providers/more/llamastack",
|
||||
"customize/model-providers/more/openrouter",
|
||||
"customize/model-providers/more/huggingfaceinferenceapi",
|
||||
"customize/model-providers/more/cohere",
|
||||
"customize/model-providers/more/mistral",
|
||||
"customize/model-providers/more/nvidia",
|
||||
"customize/model-providers/more/cloudflare",
|
||||
"customize/model-providers/more/deepinfra"
|
||||
"customize/model-providers/more/together",
|
||||
"customize/model-providers/more/xAI"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -152,36 +150,23 @@
|
|||
"customize/model-roles/reranking"
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Context Providers",
|
||||
"icon": "code",
|
||||
"pages": [
|
||||
"customize/context/codebase",
|
||||
"customize/context/documentation"
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"group": "Deep Dives",
|
||||
"icon": "microscope",
|
||||
"pages": [
|
||||
"customize/deep-dives/configuration",
|
||||
"customize/settings",
|
||||
"customize/deep-dives/slash-commands",
|
||||
"customize/deep-dives/rules",
|
||||
"customize/deep-dives/prompts",
|
||||
"customize/deep-dives/autocomplete",
|
||||
"customize/deep-dives/development-data",
|
||||
"customize/deep-dives/vscode-actions",
|
||||
"customize/deep-dives/mcp",
|
||||
"customize/deep-dives/custom-providers",
|
||||
"customize/deep-dives/model-capabilities"
|
||||
]
|
||||
},
|
||||
{
|
||||
"group": "Telemetry",
|
||||
"icon": "chart-line",
|
||||
"pages": ["customize/telemetry"]
|
||||
},
|
||||
"customize/custom-providers"
|
||||
"customize/telemetry"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -210,8 +195,7 @@
|
|||
"hub/blocks/intro",
|
||||
"hub/blocks/use-a-block",
|
||||
"hub/blocks/block-types",
|
||||
"hub/blocks/create-a-block",
|
||||
"hub/blocks/bundles"
|
||||
"hub/blocks/create-a-block"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -245,14 +229,12 @@
|
|||
"pages": [
|
||||
"guides/overview",
|
||||
"guides/understanding-assistants",
|
||||
"guides/codebase-documentation-awareness",
|
||||
"guides/cli",
|
||||
"guides/plan-mode-guide",
|
||||
"guides/ollama-guide",
|
||||
"guides/llama3.1",
|
||||
"guides/set-up-codestral",
|
||||
"guides/running-continue-without-internet",
|
||||
"guides/custom-code-rag",
|
||||
"guides/build-your-own-context-provider",
|
||||
"guides/how-to-self-host-a-model"
|
||||
]
|
||||
}
|
||||
|
|
@ -266,9 +248,12 @@
|
|||
"icon": "code",
|
||||
"pages": [
|
||||
"reference",
|
||||
"reference/json-reference",
|
||||
"reference/yaml-migration",
|
||||
"reference/continue-mcp"
|
||||
"reference/continue-mcp",
|
||||
"reference/json-reference",
|
||||
"reference/deprecated-context-providers",
|
||||
"reference/deprecated-codebase",
|
||||
"reference/deprecated-docs"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -393,14 +378,6 @@
|
|||
"source": "/install/jetbrains",
|
||||
"destination": "/getting-started/install"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/deep-dives/settings",
|
||||
"destination": "/customize/settings"
|
||||
},
|
||||
{
|
||||
"source": "/customize/deep-dives/settings",
|
||||
"destination": "/customize/settings"
|
||||
},
|
||||
{
|
||||
"source": "/customize/model-types",
|
||||
"destination": "/customize/model-roles/intro"
|
||||
|
|
@ -479,19 +456,19 @@
|
|||
},
|
||||
{
|
||||
"source": "/walkthroughs/codebase-embeddings",
|
||||
"destination": "/customize/context/codebase"
|
||||
"destination": "/reference/deprecated-codebase"
|
||||
},
|
||||
{
|
||||
"source": "/features/codebase-embeddings",
|
||||
"destination": "/customize/context/codebase"
|
||||
"destination": "/reference/deprecated-codebase"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/deep-dives/codebase",
|
||||
"destination": "/customize/context/codebase"
|
||||
"destination": "/reference/deprecated-codebase"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/context/codebase",
|
||||
"destination": "/customize/context/codebase"
|
||||
"destination": "/reference/deprecated-codebase"
|
||||
},
|
||||
{
|
||||
"source": "/walkthroughs/tab-autocomplete",
|
||||
|
|
@ -555,11 +532,15 @@
|
|||
},
|
||||
{
|
||||
"source": "/walkthroughs/quick-actions",
|
||||
"destination": "/customize/deep-dives/vscode-actions"
|
||||
"destination": "/customize/overview"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/deep-dives/vscode-actions",
|
||||
"destination": "/customize/deep-dives/vscode-actions"
|
||||
"destination": "/customize/overview"
|
||||
},
|
||||
{
|
||||
"source": "/customize/deep-dives/vscode-actions",
|
||||
"destination": "/customize/overview"
|
||||
},
|
||||
{
|
||||
"source": "/changelog",
|
||||
|
|
@ -579,19 +560,19 @@
|
|||
},
|
||||
{
|
||||
"source": "/customization/context-providers",
|
||||
"destination": "/customize/custom-providers"
|
||||
"destination": "/customize/deep-dives/custom-providers"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/context-integration/custom-providers",
|
||||
"destination": "/customize/custom-providers"
|
||||
"destination": "/customize/deep-dives/custom-providers"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/context/custom-providers",
|
||||
"destination": "/customize/custom-providers"
|
||||
"destination": "/customize/deep-dives/custom-providers"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/custom-providers",
|
||||
"destination": "/customize/custom-providers"
|
||||
"destination": "/customize/deep-dives/custom-providers"
|
||||
},
|
||||
{
|
||||
"source": "/development-data",
|
||||
|
|
@ -607,19 +588,19 @@
|
|||
},
|
||||
{
|
||||
"source": "/features/talk-to-your-docs",
|
||||
"destination": "/customize/context/documentation"
|
||||
"destination": "/reference/deprecated-docs"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/context-integration/documentation",
|
||||
"destination": "/customize/context/documentation"
|
||||
"destination": "/reference/deprecated-docs"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/deep-dives/docs",
|
||||
"destination": "/customize/context/documentation"
|
||||
"destination": "/reference/deprecated-docs"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/context/documentation",
|
||||
"destination": "/customize/context/documentation"
|
||||
"destination": "/reference/deprecated-docs"
|
||||
},
|
||||
{
|
||||
"source": "/reference/Model Providers/anthropicllm",
|
||||
|
|
@ -1013,13 +994,93 @@
|
|||
"source": "/agent/context-selection",
|
||||
"destination": "/features/agent/context-selection"
|
||||
},
|
||||
{
|
||||
"source": "/customize/context/codebase",
|
||||
"destination": "/guides/codebase-documentation-awareness"
|
||||
},
|
||||
{
|
||||
"source": "/customize/context/documentation",
|
||||
"destination": "/guides/codebase-documentation-awareness"
|
||||
},
|
||||
{
|
||||
"source": "/customization/overview#codebase-context",
|
||||
"destination": "/customize/context/codebase"
|
||||
"destination": "/guides/codebase-documentation-awareness"
|
||||
},
|
||||
{
|
||||
"source": "/customization/overview#documentation-context",
|
||||
"destination": "/customize/context/documentation"
|
||||
"destination": "/guides/codebase-documentation-awareness"
|
||||
},
|
||||
{
|
||||
"source": "/guides/llama3.1",
|
||||
"destination": "/guides/ollama-guide"
|
||||
},
|
||||
{
|
||||
"source": "/guides/set-up-codestral",
|
||||
"destination": "/customize/model-providers/top-level/mistral"
|
||||
},
|
||||
{
|
||||
"source": "/guides/build-your-own-context-provider",
|
||||
"destination": "/customize/deep-dives/custom-providers"
|
||||
},
|
||||
{
|
||||
"source": "/hub/blocks/bundles",
|
||||
"destination": "/hub/blocks/intro"
|
||||
},
|
||||
{
|
||||
"source": "/customize/settings",
|
||||
"destination": "/customize/overview"
|
||||
},
|
||||
{
|
||||
"source": "/advanced/deep-dives/settings",
|
||||
"destination": "/customize/overview"
|
||||
},
|
||||
{
|
||||
"source": "/customize/deep-dives/settings",
|
||||
"destination": "/customize/overview"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@greptile-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@commits-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@discord-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@jira-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@gitlab-merge-request-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@google-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@database-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@issue-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@url-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@search-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/customize/custom-providers#@web-context-provider",
|
||||
"destination": "/reference/deprecated-context-providers"
|
||||
},
|
||||
{
|
||||
"source": "/troubleshooting#faqs",
|
||||
|
|
|
|||
|
|
@ -28,3 +28,7 @@ For recommended Agent models, please refer to our [Model Recommendations page](/
|
|||
### How to Configure Agent Mode
|
||||
|
||||
Agent mode automatically determines whether to use native or system message tools based on the model's capabilities. No additional configuration is required - simply select your model and Continue handles the rest.
|
||||
|
||||
## How to Check Model Compatibility
|
||||
|
||||
To see which models support specific features like tool use (for Agent mode) and image input, check out our [Model Capabilities guide](/customize/deep-dives/model-capabilities).
|
||||
|
|
@ -20,17 +20,13 @@ You can include the currently open file as context by pressing opt/alt + enter w
|
|||
|
||||
You can include a specific file in your current workspace by typing '@Files' and selecting the file.
|
||||
|
||||
## How to Include a Specific Folder
|
||||
## Codebase Search
|
||||
|
||||
You can include a folder in your current workspace by typing '@Folder' and selecting the directory.
|
||||
|
||||
## How to Use Codebase Search
|
||||
|
||||
You can automatically include relevant files from your codebase by typing '@Codebase'.
|
||||
For better codebase awareness, see our [guide on making agents aware of codebases and documentation](/guides/codebase-documentation-awareness).
|
||||
|
||||
## How to Include Documentation Sites
|
||||
|
||||
You can include a documentation site as context by typing '@Docs' and selecting the site.
|
||||
For better documentation awareness, see our [guide on making agents aware of codebases and documentation](/guides/codebase-documentation-awareness).
|
||||
|
||||
## How to Include Terminal Contents
|
||||
|
||||
|
|
@ -42,4 +38,4 @@ You can include all of the changes you've made to your current branch by typing
|
|||
|
||||
## How to Use Other Context Providers
|
||||
|
||||
You can see a full list of built-in context providers [here](/customize/custom-providers) and learn about how to create your own context provider [here](/guides/build-your-own-context-provider).
|
||||
You can see a full list of built-in context providers [here](/customize/deep-dives/custom-providers).
|
||||
|
|
|
|||
|
|
@ -22,10 +22,7 @@ When you start a chat conversation, Continue:
|
|||
|
||||
### How to Add Manual Context
|
||||
|
||||
- `@Codebase` - Search and include relevant code from your project
|
||||
- `@Docs` - Include documentation context
|
||||
- `@Files` - Reference specific files
|
||||
- Custom context providers
|
||||
|
||||
## How Response Handling Works
|
||||
|
||||
|
|
@ -47,12 +44,13 @@ Each code section in the AI response includes action buttons:
|
|||
|
||||
View the exact prompt sent to the AI model in the [prompt logs](/troubleshooting) for debugging and optimization.
|
||||
|
||||
### How to Learn More About Context Providers
|
||||
### Context
|
||||
|
||||
Learn more about how context providers work:
|
||||
Learn more about how you can bring in context:
|
||||
|
||||
- [Codebase Context](/customize/context/codebase)
|
||||
- [Documentation Context](/customize/context/documentation)
|
||||
- [Documentation Context](/guides/codebase-documentation-awareness)
|
||||
- [Built-in Context Providers](/customize/deep-dives/custom-providers)
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,5 @@ description: "Learn how to customize the Chat feature in Continue to better suit
|
|||
|
||||
There are a number of different ways to customize Chat:
|
||||
|
||||
- Add a `rules` block to give the model persistent instructions through the system prompt
|
||||
- Configure `@Codebase`
|
||||
- Configure `@Docs`
|
||||
- [Build your own context provider](/guides/build-your-own-context-provider)
|
||||
- [Create a custom code RAG](/guides/custom-code-rag)
|
||||
- Add [rules](/customization/rules) to give the model persistent instructions through the system prompt
|
||||
- Create [prompts](/customization/prompts) to kickoff workflows with instructions you repeat often
|
||||
|
|
@ -7,93 +7,4 @@ The model you use for for Chat mode will be
|
|||
For a comprehensive comparison of all available models by role, see our [model recommendations table](/customization/models#recommended-models).
|
||||
</Info>
|
||||
|
||||
For model recommendations, please refer to our [Model Recommendations page](/customization/models).
|
||||
|
||||
### What Other Hosted Models Are Available?
|
||||
|
||||
These models have varying tool calling and reasoning capabilities.
|
||||
|
||||
[Kimi K2](https://hub.continue.dev/openrouter/kimi-k2) from Moonshot AI
|
||||
|
||||
1. Get your API key from [OpenRouter](https://openrouter.ai/settings/keys)
|
||||
2. Add [Kimi K2](https://hub.continue.dev/openrouter/kimi-k2) to your assistant on Continue Hub
|
||||
3. Add `OPENROUTER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
[Qwen Coder 3 480B](https://hub.continue.dev/openrouter/qwen3-coder) from Qwen
|
||||
|
||||
1. Get your API key from [OpenRouter](https://openrouter.ai/settings/keys)
|
||||
2. Add [Qwen Coder 3 480B](https://hub.continue.dev/openrouter/qwen3-coder) to your assistant on Continue Hub
|
||||
3. Add `OPENROUTER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
[Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) from Google
|
||||
|
||||
1. Get your API key from [Google AI Studio](https://aistudio.google.com)
|
||||
2. Add [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) to your assistant on Continue Hub
|
||||
3. Add `GEMINI_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
[o3](https://hub.continue.dev/openai/o3) from OpenAI
|
||||
|
||||
1. Get your API key from [OpenAI](https://platform.openai.com)
|
||||
2. Add [o3](https://hub.continue.dev/openai/o3) to your assistant on Continue Hub
|
||||
3. Add `OPENAI_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
[Grok 4](https://hub.continue.dev/xai/grok-4) from xAI
|
||||
|
||||
1. Get your API key from [xAI](https://console.x.ai/)
|
||||
2. Add [Grok 4](https://hub.continue.dev/xai/grok-4) to your assistant on Continue Hub
|
||||
3. Add `XAI_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
[Devstral Medium](https://hub.continue.dev/mistral/devstral-medium) from Mistral AI
|
||||
|
||||
1. Get your API key from [Mistral AI](https://console.mistral.ai/)
|
||||
2. Add [Devstral Medium](https://hub.continue.dev/mistral/devstral-medium) to your assistant on Continue Hub
|
||||
3. Add `MISTRAL_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
[DeepSeek-V3](https://hub.continue.dev/togetherai/deepseek-v3) from DeepSeek
|
||||
|
||||
1. Get your API key from [Together AI](https://api.together.ai)
|
||||
2. Add [DeepSeek-V3](https://hub.continue.dev/togetherai/deepseek-v3) to your assistant on Continue Hub
|
||||
3. Add `TOGETHER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets)
|
||||
4. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
### What Local Models Are Available?
|
||||
|
||||
These models can be run on your computer if you have enough VRAM.
|
||||
|
||||
Their limited tool calling and reasoning capabilities will make it challenging to use Agent mode.
|
||||
|
||||
[Qwen2.5-Coder 32B](https://hub.continue.dev/ollama/qwen2.5-coder-32b)
|
||||
|
||||
1. Add [Qwen2.5-Coder 32B](https://hub.continue.dev/ollama/qwen2.5-coder-32b) to your assistant on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
[Devstral Small 27B](https://hub.continue.dev/ollama/devstral)
|
||||
|
||||
1. Add [Devstral Small](https://hub.continue.dev/ollama/devstral) to your assistant on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
[Qwen2.5-Coder 7B](https://hub.continue.dev/ollama/qwen2.5-coder-7b) from Qwen
|
||||
|
||||
1. Add [Qwen2.5-Coder 7B](https://hub.continue.dev/ollama/qwen2.5-coder-7b) to your assistant on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
[Gemma 3 4B](https://hub.continue.dev/ollama/gemma3-4b) from Google
|
||||
|
||||
1. Add [Gemma 3 4B](https://hub.continue.dev/ollama/gemma3-4b) to your assistant on Continue Hub
|
||||
2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
|
||||
3. Click `Reload config` in the assistant selector in the Continue IDE extension
|
||||
|
||||
For more detailed setup instructions, see [here](/getting-started/install#setup-your-first-model).
|
||||
|
||||
## How to Check Model Compatibility
|
||||
|
||||
To see which models support specific features like tool use (for Agent mode) and image input, check out our [Model Capabilities guide](/customize/deep-dives/model-capabilities).
|
||||
For model recommendations, please refer to our [Model Recommendations page](/customization/models).
|
||||
|
|
@ -33,8 +33,6 @@ 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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,162 +0,0 @@
|
|||
---
|
||||
title: "How to Build Your Own Context Provider"
|
||||
description: "Learn how to create custom context providers for Continue using HTTP servers, CustomContextProvider API, or VSCode extensions to provide tailored context to your AI assistant"
|
||||
---
|
||||
|
||||
## How to Create an HTTP Context Provider
|
||||
|
||||
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
|
||||
|
||||
config.yaml
|
||||
|
||||
```
|
||||
context: provider: http params: url: https://myserver.com/context-provider title: http displayTitle: My Custom Context description: Gets things from my private list options: maxItems: 20
|
||||
```
|
||||
|
||||
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 }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
```json
|
||||
{ query: string; fullInput: string; options: Record<string, JsonValue>; workspacePath?: string; // Only provided if the server is local.}
|
||||
```
|
||||
|
||||
<Info>
|
||||
The following methods for creating custom context providers are deprecated. We
|
||||
recommend using HTTP context providers, [MCP
|
||||
Servers](/customize/deep-dives/mcp), and [Prompts](/customize/deep-dives/prompts)
|
||||
where possible.
|
||||
</Info>
|
||||
|
||||
## How to Use CustomContextProvider
|
||||
|
||||
Custom context providers can be implemented in a `config.ts` placed in your Continue global directory (`~/.continue` for MacOS, `%USERPROFILE%/.continue` for Windows). You can implement the `CustomContextProvider` interface in your `config.ts`
|
||||
|
||||
```
|
||||
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:
|
||||
|
||||
- `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
|
||||
|
||||
```
|
||||
const RagContextProvider: CustomContextProvider = { title: "rag", displayTitle: "RAG", description: "Retrieve snippets from our vector database of internal documents", getContextItems: async ( query: string, extras: ContextProviderExtras, ): Promise<ContextItem[]> => { const response = await fetch("https://internal_rag_server.com/retrieve", { method: "POST", body: JSON.stringify({ query }), }); const results = await response.json(); return results.map((result) => ({ name: result.title, description: result.title, content: result.contents, })); },};
|
||||
```
|
||||
|
||||
It can then be added in `config.ts` like so:
|
||||
|
||||
\~/.continue/config.ts
|
||||
|
||||
```
|
||||
export function modifyConfig(config: Config): Config { if (!config.contextProviders) { config.contextProviders = []; } config.contextProviders.push(RagContextProvider); return config;}
|
||||
```
|
||||
|
||||
This is automatically appended to your configuration.
|
||||
|
||||
### How to Create Custom Context Providers with Submenu or Query
|
||||
|
||||
There are 3 types of context providers: "normal", "query", and "submenu". The "normal" type is the default, and is what we've seen so far.
|
||||
|
||||
The **"query"** type is used when you want to display a text box to the user, and then use the contents of that text box to generate the context items. Built-in examples include "search" and "google". This text is what gets passed to the "query" argument in `getContextItems`. To implement a "query" context provider, simply set `"type": "query"` in your custom context provider object.
|
||||
|
||||
The **"submenu"** type is used when you want to display a list of searchable items in the dropdown. Built-in examples include "issue" and "folder". To implement a "submenu" context provider, set `"type": "submenu"` and implement the `loadSubmenuItems` and `getContextItems` functions. Here is an example that shows a list of all README files in the current workspace:
|
||||
|
||||
\~/.continue/config.ts
|
||||
|
||||
```
|
||||
const ReadMeContextProvider: CustomContextProvider = { title: "readme", displayTitle: "README", description: "Reference README.md files in your workspace", type: "submenu", getContextItems: async ( query: string, extras: ContextProviderExtras, ): Promise<ContextItem[]> => { // 'query' is the filepath of the README selected from the dropdown const content = await extras.ide.readFile(query); return [ { name: getFolder(query), description: getFolderAndBasename(query), content, }, ]; }, loadSubmenuItems: async ( args: LoadSubmenuItemsArgs, ): Promise<ContextSubmenuItem[]> => { const { ide } = args; // Filter all workspace files for READMEs const workspaceDirs = await ide.getWorkspaceDirs(); const allFiles = await Promise.all( workspaceDirs.map((dir) => ide.subprocess(`find ${dir} -name "README.md"`), ), ); // 'readmes' now contains an array of file paths for each README.md file found in the workspace, // excluding those in 'node_modules' const readmes = allFiles .flatMap((mds) => mds[0].split("\n")) .filter((file) => file.trim() !== "" && !file.includes("/node_modules/")); // Return the items that will be shown in the dropdown return readmes.map((filepath) => { return { id: filepath, title: getFolder(filepath), description: getFolderAndBasename(filepath), }; }); },};export function modifyConfig(config: Config): Config { if (!config.contextProviders) { config.contextProviders = []; } config.contextProviders.push(ReadMeContextProvider); return config;}function getFolder(path: string): string { return path.split(/[\/\\]/g).slice(-2)[0];}function getFolderAndBasename(path: string): string { return path .split(/[\/\\]/g) .slice(-2) .join("/");}
|
||||
```
|
||||
|
||||
The flow of information in the above example is as follows:
|
||||
|
||||
1. The user types `@readme` and selects it from the dropdown, now displaying the submenu where they can search for any item returned by `loadSubmenuItems`.
|
||||
2. The user selects one of the READMEs in the submenu, enters the rest of their input, and presses enter.
|
||||
3. The `id` of the chosen `ContextSubmenuItem` is passed to `getContextItems` as the `query` argument. In this case it is the filepath of the README.
|
||||
4. The `getContextItems` function can then use the `query` to retrieve the full contents of the README and format the content before returning the context item which will be included in the prompt.
|
||||
|
||||
### How to Import Outside Modules
|
||||
|
||||
To include outside Node modules in your config.ts, run `npm install <module_name>` from the `~/.continue` directory, and then import them in config.ts.
|
||||
|
||||
Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.ts` and any dependencies into a single Javascript file. The exact configuration used can be found [here](https://github.com/continuedev/continue/blob/5c9874400e223bbc9786a8823614a2e501fbdaf7/extensions/vscode/src/ideProtocol.ts#L45-L52).
|
||||
|
||||
### `CustomContextProvider` Reference
|
||||
|
||||
- `title`: An identifier for the context provider
|
||||
|
||||
- `displayTitle` (optional): The title displayed in the dropdown
|
||||
|
||||
- `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".
|
||||
|
||||
- `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:
|
||||
|
||||
- `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`. .
|
||||
|
||||
## How to Use Extension API for VSCode
|
||||
|
||||
Continue exposes an API for registering context providers from a 3rd party VSCode extension. This is useful if you have a VSCode extension that provides some additional context that you would like to use in Continue. To use this API, add the following to your `package.json`:
|
||||
|
||||
package.json
|
||||
|
||||
```json
|
||||
{ "extensionDependencies": ["continue.continue"] }
|
||||
```
|
||||
|
||||
Or install the Continue Core module from npm:
|
||||
|
||||
```
|
||||
npm i @continuedev/core
|
||||
```
|
||||
|
||||
You can add the Continue core module as a dev dependency in your `package.json`:
|
||||
|
||||
package.json
|
||||
|
||||
```json
|
||||
{ "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:
|
||||
|
||||
myCustomContextProvider.ts
|
||||
|
||||
```
|
||||
import * as vscode from "vscode";import { IContextProvider, ContextProviderDescription, ContextProviderExtras, ContextItem, LoadSubmenuItemsArgs, ContextSubmenuItem,} from "@continuedev/core";class MyCustomProvider implements IContextProvider { get description(): ContextProviderDescription { return { title: "Custom", displayTitle: "Custom", description: "my custom context provider", type: "normal", }; } async getContextItems( query: string, extras: ContextProviderExtras, ): Promise<ContextItem[]> { return [ { name: "Custom", description: "Custom description", content: "Custom content", }, ]; } async loadSubmenuItems( args: LoadSubmenuItemsArgs, ): Promise<ContextSubmenuItem[]> { return []; }}// create an instance of your custom providerconst customProvider = new MyCustomProvider();// get Continue extension using vscode APIconst continueExt = vscode.extensions.getExtension("Continue.continue");// get the API from the extensionconst continueApi = continueExt?.exports;// register your custom providercontinueApi?.registerCustomContextProvider(customProvider);
|
||||
```
|
||||
|
||||
This will register `MyCustomProvider` with Continue!
|
||||
|
||||

|
||||
183
docs/guides/codebase-documentation-awareness.mdx
Normal file
183
docs/guides/codebase-documentation-awareness.mdx
Normal file
|
|
@ -0,0 +1,183 @@
|
|||
---
|
||||
title: How to make your agent aware of codebases and documentation
|
||||
description: Learn how to give your AI agent access to codebases and documentation for more context-aware assistance
|
||||
keywords: [agent, codebase, documentation, MCP, context, RAG, tools]
|
||||
---
|
||||
|
||||
# How to make your agent aware of codebases and documentation
|
||||
|
||||
AI coding agents work best when they understand the context of your project. This guide shows you how to give your agent access to codebases and documentation, making it more helpful and accurate.
|
||||
|
||||
## Make your agent aware of your open codebase
|
||||
|
||||
When your agent understands your current codebase, it can provide more relevant suggestions and answers.
|
||||
|
||||
### Let your agent explore the codebase using tools
|
||||
|
||||
Your agent can use built-in tools to navigate and understand your code:
|
||||
|
||||
1. **File exploration tools**: The agent can read files, search for patterns, and understand project structure
|
||||
2. **Code search**: Use search to find relevant code snippets
|
||||
3. **Git integration**: Access commit history and understand code evolution
|
||||
|
||||
### Create rules to help the agent understand your codebase
|
||||
|
||||
Rules guide your agent's behavior and understanding. Place markdown files in `.continue/rules` in your project to provide context:
|
||||
|
||||
```markdown
|
||||
# Project Architecture
|
||||
|
||||
This is a React application with:
|
||||
- Components in `/src/components`
|
||||
- API routes in `/src/api`
|
||||
- State management using Redux in `/src/store`
|
||||
|
||||
## Coding Standards
|
||||
- Use TypeScript for all new files
|
||||
- Follow the existing naming conventions
|
||||
- Write tests for all new features
|
||||
```
|
||||
|
||||
<Tip>
|
||||
Place rules files at different levels of your project hierarchy to scope when they trigger
|
||||
</Tip>
|
||||
|
||||
Learn more about [rules configuration](/customize/deep-dives/rules).
|
||||
|
||||
## Make your agent aware of other codebases
|
||||
|
||||
Sometimes you need your agent to understand code beyond your current project.
|
||||
|
||||
### Public codebases
|
||||
|
||||
For open-source projects and public repositories, you have several options:
|
||||
|
||||
#### Rules with hyperlinks
|
||||
|
||||
Create rules that point to external codebases:
|
||||
|
||||
```markdown
|
||||
# External Dependencies
|
||||
|
||||
Our authentication system is based on:
|
||||
- [Auth.js documentation](https://authjs.dev/)
|
||||
- [Example implementation](https://github.com/nextauthjs/next-auth-example)
|
||||
|
||||
When implementing auth features, reference these patterns.
|
||||
```
|
||||
|
||||
#### GitHub and GitLab CLIs
|
||||
|
||||
Enable `gh` or `glab` CLI access for your agent to interact with repositories.
|
||||
|
||||
Add rules to guide CLI usage:
|
||||
|
||||
```markdown
|
||||
# Repository Access
|
||||
|
||||
You can use the `gh` CLI to:
|
||||
- Search for issues: `gh issue list --repo owner/repo`
|
||||
- View pull requests: `gh pr list --repo owner/repo`
|
||||
- Clone repositories: `gh repo clone owner/repo`
|
||||
```
|
||||
|
||||
#### DeepWiki MCP
|
||||
|
||||
[DeepWiki MCP](https://hub.continue.dev/deepwiki/deepwiki-mcp) lets your agent explore any public GitHub repository.
|
||||
```
|
||||
|
||||
Once configured, your agent can explore repositories like:
|
||||
- "Explore the React repository structure"
|
||||
- "Find how authentication is implemented in NextAuth.js"
|
||||
|
||||
### Internal codebases
|
||||
|
||||
For private and internal repositories, you need additional setup:
|
||||
|
||||
#### Custom MCP servers
|
||||
|
||||
Create an MCP server that has access to your internal repositories.
|
||||
|
||||
#### Custom code RAG
|
||||
|
||||
For faster retrieval and lower costs with very large internal codebases, consider implementing a [custom code RAG](/guides/custom-code-rag) system. This is an advanced approach that requires more setup but can provide performance benefits at scale.
|
||||
|
||||
## Make your agent aware of relevant documentation
|
||||
|
||||
Documentation provides crucial context for your agent to understand APIs, frameworks, and best practices.
|
||||
|
||||
### Public documentation
|
||||
|
||||
#### Rules with documentation links
|
||||
|
||||
Guide your agent to relevant documentation:
|
||||
|
||||
```markdown
|
||||
# Documentation Resources
|
||||
|
||||
For framework-specific questions, refer to:
|
||||
- React: https://react.dev/reference/react
|
||||
- Next.js: https://nextjs.org/docs
|
||||
- Tailwind CSS: https://tailwindcss.com/docs
|
||||
|
||||
Always cite documentation when explaining concepts.
|
||||
```
|
||||
|
||||
#### Context7 MCP
|
||||
|
||||
[Context7 MCP](https://hub.continue.dev/upstash/context7-mcp) enables your agent to search and retrieve information from public documentation:
|
||||
|
||||
Your agent can then answer questions like:
|
||||
- "How do I use React hooks?"
|
||||
- "What's the syntax for Tailwind CSS animations?"
|
||||
|
||||
### Internal documentation
|
||||
|
||||
For private documentation and wikis:
|
||||
|
||||
#### Rules with internal links
|
||||
|
||||
Create rules that reference internal resources:
|
||||
|
||||
```markdown
|
||||
# Internal Documentation
|
||||
|
||||
Our team documentation is available at:
|
||||
- API Documentation: https://internal.docs/api
|
||||
- Architecture Guide: https://internal.docs/architecture
|
||||
- Deployment Process: https://internal.docs/deployment
|
||||
|
||||
Always follow our internal standards when suggesting code.
|
||||
```
|
||||
|
||||
#### Custom MCP servers for docs
|
||||
|
||||
Create an MCP server that accesses your internal documentation.
|
||||
|
||||
## Migrating from deprecated context providers
|
||||
|
||||
If you were previously using the `@Codebase` or `@Docs` context providers, here's how to migrate to the new approach:
|
||||
|
||||
### Migrating from @Codebase
|
||||
|
||||
The `@Codebase` context provider has been deprecated. Instead:
|
||||
|
||||
1. **Use built-in tools**: Your agent can now use file exploration and search tools to understand your codebase
|
||||
2. **Add rules**: Create `.continue/rules` files to provide context about your project structure
|
||||
3. **Use MCP servers**: For external codebases, use DeepWiki MCP or custom MCP servers
|
||||
|
||||
### Migrating from @Docs
|
||||
|
||||
The `@Docs` context provider has been deprecated. Instead:
|
||||
|
||||
1. **Use Context7 MCP**: For public documentation, Context7 MCP provides similar functionality
|
||||
2. **Add documentation links in rules**: Create rules that reference documentation URLs
|
||||
3. **Use custom MCP servers**: For internal documentation, create an MCP server with access to your docs
|
||||
|
||||
The new approach provides better integration with Continue's Agent features and more intelligent context selection.
|
||||
|
||||
## Next steps
|
||||
|
||||
- Learn more about [MCP servers](/reference/continue-mcp)
|
||||
- Explore [rules configuration](/customize/deep-dives/rules)
|
||||
- Set up [custom assistants](/guides/understanding-assistants) with specific knowledge domains
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: "How to Build Custom Code RAG"
|
||||
description: "Learn how to build a custom retrieval-augmented generation (RAG) system for code using vector databases like LanceDB, embeddings models like voyage-code-3, and chunking strategies for better code search and context"
|
||||
description: "Build a custom retrieval-augmented generation (RAG) system for faster and more cost-efficient code search across large codebases. This guide is for advanced users who need to index code a single time across all users or include custom logic."
|
||||
keywords: [RAG, vector database, embeddings, code search, MCP]
|
||||
---
|
||||
|
||||
## Step 1: How to Choose an Embeddings Model
|
||||
|
|
@ -61,45 +62,94 @@ At this point, you've written your indexing script and tested that you can make
|
|||
|
||||
In the beginning, you should probably run it by hand. Once you are confident that your custom RAG is providing value and is ready for the long-term, then you can set up a cron job to run it periodically. Because codebases are largely unchanged in short time frames, you won't want to re-index more than once a day. Once per week or month is probably even sufficient.
|
||||
|
||||
## Step 6: How to Set Up Your Server
|
||||
## Step 6: How to set up an MCP server
|
||||
|
||||
In order for the Continue extension to access your custom RAG system, you'll need to set up a server. This server is responsible for recieving a query from the extension, querying the vector database, and returning the results in the format expected by Continue.
|
||||
To integrate your custom RAG system with Continue, you'll create an MCP (Model Context Protocol) server. MCP provides a standardized way for AI tools to access external resources.
|
||||
|
||||
Here is a reference implementation using FastAPI that is capable of handling requests from Continue's "http" context provider.
|
||||
### Create your MCP server
|
||||
|
||||
```
|
||||
"""This is an example of a server that can be used with the "http" context provider."""from fastapi import FastAPIfrom pydantic import BaseModelclass ContextProviderInput(BaseModel): query: str fullInput: strapp = FastAPI()@app.post("/retrieve")async def create_item(item: ContextProviderInput): results = [] # TODO: Query your vector database here. # Construct the "context item" format expected by Continue context_items = [] for result in results: context_items.append({ "name": result.filename, "description": result.filename, "content": result.text, }) return context_items
|
||||
Here's a reference implementation using Python that queries your vector database:
|
||||
|
||||
```python
|
||||
"""Custom RAG MCP server for code retrieval"""
|
||||
import asyncio
|
||||
from mcp.server import Server
|
||||
from mcp.server.stdio import stdio_server
|
||||
from mcp.types import Tool, TextContent
|
||||
import lancedb
|
||||
|
||||
# Initialize your vector database connection
|
||||
db = lancedb.connect("/path/to/your/db")
|
||||
table = db.open_table("code_chunks")
|
||||
|
||||
app = Server("custom-rag-server")
|
||||
|
||||
@app.tool()
|
||||
async def search_codebase(query: str, limit: int = 10) -> list[TextContent]:
|
||||
"""
|
||||
Search the codebase using vector similarity.
|
||||
|
||||
Args:
|
||||
query: The search query
|
||||
limit: Maximum number of results to return
|
||||
"""
|
||||
# Query your vector database
|
||||
results = table.search(query).limit(limit).to_list()
|
||||
|
||||
# Format results for Continue
|
||||
formatted_results = []
|
||||
for result in results:
|
||||
formatted_results.append(TextContent(
|
||||
type="text",
|
||||
text=f"File: {result['filename']}\n\n{result['text']}"
|
||||
))
|
||||
|
||||
return formatted_results
|
||||
|
||||
@app.tool()
|
||||
async def get_file_context(filename: str) -> list[TextContent]:
|
||||
"""
|
||||
Get all chunks from a specific file.
|
||||
|
||||
Args:
|
||||
filename: The name of the file to retrieve
|
||||
"""
|
||||
results = table.where(f"filename = '{filename}'").to_list()
|
||||
|
||||
return [TextContent(
|
||||
type="text",
|
||||
text="\n".join([r['text'] for r in results])
|
||||
)]
|
||||
|
||||
if __name__ == "__main__":
|
||||
stdio_server(app).run()
|
||||
```
|
||||
|
||||
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:
|
||||
### Configure Continue to use your MCP server
|
||||
|
||||
- YAML
|
||||
- JSON
|
||||
Add your MCP server to Continue's configuration:
|
||||
|
||||
config.yaml
|
||||
|
||||
```
|
||||
context:
|
||||
- provider: http
|
||||
params:
|
||||
url: https://myserver.com/retrieve
|
||||
name: http
|
||||
description: Custom HTTP Context Provider
|
||||
displayTitle: My Custom Context
|
||||
**config.yaml:**
|
||||
```yaml
|
||||
mcpServers:
|
||||
- name: custom-rag
|
||||
command: python
|
||||
args:
|
||||
- /path/to/your/mcp_server.py
|
||||
env:
|
||||
VOYAGE_API_KEY: ${VOYAGE_API_KEY}
|
||||
```
|
||||
|
||||
config.json
|
||||
|
||||
**config.json:**
|
||||
```json
|
||||
{
|
||||
"contextProviders": [
|
||||
"mcpServers": [
|
||||
{
|
||||
"name": "http",
|
||||
"params": {
|
||||
"url": "https://myserver.com/retrieve",
|
||||
"title": "http",
|
||||
"description": "Custom HTTP Context Provider",
|
||||
"displayTitle": "My Custom Context"
|
||||
"name": "custom-rag",
|
||||
"command": "python",
|
||||
"args": ["/path/to/your/mcp_server.py"],
|
||||
"env": {
|
||||
"VOYAGE_API_KEY": "${VOYAGE_API_KEY}"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,228 +0,0 @@
|
|||
---
|
||||
title: "How to Use Llama 3.1 with Continue"
|
||||
description: "Learn how to set up and use Llama 3.1 models with Continue using Ollama, Groq, Together AI, Replicate, SambaNova, or Cerebras Inference for local and cloud-based development"
|
||||
---
|
||||
|
||||
If you haven't already installed Continue, you can do that [here for VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) or [here for JetBrains](https://plugins.jetbrains.com/plugin/22707-continue). For more general information on customizing Continue, read [our customization docs](/customize/overview).
|
||||
|
||||
Below we share some of the easiest ways to get up and running, depending on your use-case.
|
||||
|
||||
## How to Use Llama 3.1 with Ollama
|
||||
|
||||
Ollama is the fastest way to get up and running with local language models. We recommend trying Llama 3.1 8b, which is impressive for its size and will perform well on most hardware.
|
||||
|
||||
1. Download Ollama [here](https://ollama.ai/) (it should walk you through the rest of these steps)
|
||||
2. Open a terminal and run `ollama run llama3.1:8b`
|
||||
3. Change your Continue config file like this:
|
||||
|
||||
- YAML
|
||||
- JSON
|
||||
|
||||
config.yaml
|
||||
|
||||
```
|
||||
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" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## How to Use Llama 3.1 with 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.
|
||||
</Info>
|
||||
|
||||
Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
|
||||
|
||||
1. Obtain an API key [here](https://console.groq.com/keys)
|
||||
2. Update your Continue config file like this:
|
||||
|
||||
- YAML
|
||||
- JSON
|
||||
|
||||
config.yaml
|
||||
|
||||
```
|
||||
models:
|
||||
- name: Llama 3.3 70b Versatile
|
||||
provider: groq
|
||||
model: llama-3.3-70b-versatile
|
||||
apiKey: <YOUR_GROQ_API_KEY>
|
||||
```
|
||||
|
||||
config.json
|
||||
|
||||
```json
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.3 70b Versatile",
|
||||
"provider": "groq",
|
||||
"model": "llama-3.3-70b-versatile",
|
||||
"apiKey": "<YOUR_GROQ_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## How to Use Llama 3.1 with Together AI
|
||||
|
||||
Together AI provides fast and reliable inference of open-source models. You'll be able to run the 405b model with good speed.
|
||||
|
||||
1. Create an account [here](https://api.together.xyz/signup)
|
||||
2. Copy your API key that appears on the welcome screen
|
||||
3. Update your Continue config file like this:
|
||||
|
||||
- YAML
|
||||
- JSON
|
||||
|
||||
config.yaml
|
||||
|
||||
```
|
||||
models:
|
||||
- name: Llama 3.1 405b
|
||||
provider: together
|
||||
model: llama3.1-405b
|
||||
apiKey: <YOUR_TOGETHER_API_KEY>
|
||||
```
|
||||
|
||||
config.json
|
||||
|
||||
```json
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405b",
|
||||
"provider": "together",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "<YOUR_TOGETHER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## How to Use Llama 3.1 with Replicate
|
||||
|
||||
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
|
||||
|
||||
config.yaml
|
||||
|
||||
```
|
||||
models:
|
||||
- name: Llama 3.1 405b
|
||||
provider: replicate
|
||||
model: llama3.1-405b
|
||||
apiKey: <YOUR_REPLICATE_API_KEY>
|
||||
```
|
||||
|
||||
config.json
|
||||
|
||||
```json
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 405b",
|
||||
"provider": "replicate",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "<YOUR_REPLICATE_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## How to Use Llama 3.1 with 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)
|
||||
2. Copy your API key
|
||||
3. Update your Continue config file like this:
|
||||
|
||||
- YAML
|
||||
- JSON
|
||||
|
||||
config.yaml
|
||||
|
||||
```
|
||||
models:
|
||||
- name: SambaNova Llama 3.1 405B
|
||||
provider: sambanova
|
||||
model: llama3.1-405b
|
||||
apiKey: <YOUR_SAMBA_API_KEY>
|
||||
```
|
||||
|
||||
config.json
|
||||
|
||||
```json
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "SambaNova Llama 3.1 405B",
|
||||
"provider": "sambanova",
|
||||
"model": "llama3.1-405b",
|
||||
"apiKey": "<YOUR_SAMBA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## How to Use Llama 3.1 and 3.3 with Cerebras Inference
|
||||
|
||||
<Info>
|
||||
Check if your chosen model is still supported by referring to the [model
|
||||
status](https://status.cerebras.ai/). If a model has been
|
||||
deprecated, you may encounter a 404 error when attempting to use it.
|
||||
</Info>
|
||||
|
||||
Cerebras Inference uses specialized silicon to provides fast inference for the Llama3.1 8B and Llama3.3 70B.
|
||||
|
||||
1. Create an account in the portal [here](https://cloud.cerebras.ai/).
|
||||
2. Create and copy the API key for use in Continue.
|
||||
3. Update your Continue config file:
|
||||
|
||||
- YAML
|
||||
- JSON
|
||||
|
||||
config.yaml
|
||||
|
||||
```
|
||||
models:
|
||||
- name: Cerebras Llama 3.3 70B
|
||||
provider: cerebras
|
||||
model: llama3.3-70b
|
||||
apiKey: <YOUR_CEREBRAS_API_KEY>
|
||||
```
|
||||
|
||||
config.json
|
||||
|
||||
```json
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Cerebras Llama 3.3 70B",
|
||||
"provider": "cerebras",
|
||||
"model": "llama3.3-70b",
|
||||
"apiKey": "<YOUR_CEREBRAS_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
|
@ -6,15 +6,13 @@ description: "Comprehensive collection of practical guides for Continue includin
|
|||
## What Model & Setup Guides Are Available
|
||||
|
||||
- [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
|
||||
|
||||
## What Advanced Tutorials Are Available
|
||||
|
||||
- [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
|
||||
- [Codebase and Documentation Awareness](/guides/codebase-documentation-awareness) - Make your agent aware of codebases and documentation
|
||||
- [Custom Code RAG](/guides/custom-code-rag) - Advanced: Build custom retrieval-augmented generation for large codebases
|
||||
|
||||
## How to Contribute to Guides
|
||||
|
||||
|
|
|
|||
|
|
@ -113,9 +113,6 @@ Context is the foundation of effective planning. Without proper context, AI mode
|
|||
| **Highlighted Code** | `cmd/ctrl + L` (VS Code) or `cmd/ctrl + J` (JetBrains) | Component-specific analysis |
|
||||
| **Active File** | `opt/alt + enter` when sending request | Current file context |
|
||||
| **@Files** | `@Files package.json tsconfig.json` | Specific file analysis |
|
||||
| **@Folder** | `@Folder src/auth` | Directory-wide planning |
|
||||
| **@Codebase** | `@Codebase` | Comprehensive system analysis |
|
||||
| **@Docs** | `@Docs React Router` | Standards-compliant planning |
|
||||
| **@Terminal** | `@Terminal` | Debugging with output |
|
||||
| **@Git Diff** | `@Git Diff` | Change impact analysis |
|
||||
|
||||
|
|
@ -275,7 +272,6 @@ The three-mode system—Chat for learning, Plan for strategy, and Agent for exec
|
|||
**Remember:**
|
||||
|
||||
- Choose the right mode for each task
|
||||
- Leverage context providers (@Codebase, @Files, @Docs, etc.) for better planning
|
||||
- Start broad, then focus your planning sessions for better results
|
||||
- Transition to Agent mode with clear execution steps
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ description: "Learn how to set up Continue for air-gapped or offline environment
|
|||
---
|
||||
|
||||
1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extension/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix).
|
||||
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 find available options [here](/customize/model-providers/overview).
|
||||
2. Turn off "Allow Anonymous Telemetry" in the user settings. 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.
|
||||
|
|
|
|||
|
|
@ -1,58 +0,0 @@
|
|||
---
|
||||
title: "How to Set Up Codestral"
|
||||
description: "Step-by-step guide for configuring Mistral's Codestral model with Continue for both chat and autocomplete functionality using your Mistral AI API key"
|
||||
---
|
||||
|
||||
**Here is a step-by-step guide on how to set up Codestral with Continue using the Mistral AI API:**
|
||||
|
||||
1. Install the Continue VS Code or JetBrains extension following the instructions [here](/getting-started/install)
|
||||
|
||||
2. Click on the gear icon in the bottom right corner of the Continue window to open `~/.continue/config.json` (MacOS) / `%userprofile%\.continue\config.json` (Windows)
|
||||
|
||||
3. Log in and create an API key on Mistral AI's La Plateforme [here](https://console.mistral.ai/codestral). Make sure you get an API key from the "Codestral" page.
|
||||
|
||||
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
|
||||
|
||||
config.yaml
|
||||
|
||||
```
|
||||
models:
|
||||
- name: Codestral
|
||||
provider: mistral
|
||||
model: codestral-latest
|
||||
apiKey: <YOUR_CODESTRAL_API_KEY>
|
||||
apiBase: https://codestral.mistral.ai/v1
|
||||
roles:
|
||||
- chat
|
||||
- autocomplete
|
||||
```
|
||||
|
||||
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"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
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)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: "Block Types in Continue Hub: Models, Context Providers, Prompts, and More"
|
||||
title: "Blocks: Models, Rules, Prompts, and MCP servers"
|
||||
sideBarTitle: "Block Types"
|
||||
description: "Explore the different types of reusable blocks in Continue Hub including models, context providers, documentation, MCP servers, rules, prompts, and data components"
|
||||
description: "Explore the different types of reusable blocks in Continue Hub including models, MCP servers, rules, and prompts"
|
||||
---
|
||||
|
||||
## Models
|
||||
|
|
@ -10,17 +10,7 @@ Models are blocks that let you specify Large Language Models (LLMs) and other de
|
|||
|
||||
Continue supports [many model providers](/customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](/customize/model-roles). View [`models`](/reference#models) in the YAML Reference for more details.
|
||||
|
||||
## Context
|
||||
|
||||
Context blocks define a context provider which can be referenced in Chat with `@` to pull in data from external sources such as files and folders, a URL, Jira or Confluence, and GitHub issues, among others. [Explore context provider blocks](https://hub.continue.dev/explore/context) on the hub.
|
||||
|
||||
Learn more about context providers [here](/reference#context), and check out [this guide](/guides/build-your-own-context-provider) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](/reference#context).
|
||||
|
||||
## Docs
|
||||
|
||||
Docs are blocks that point to documentation sites, which will be indexed locally and then can be referenced as context using @Docs in Chat. [Explore docs](https://hub.continue.dev/explore/docs) on the hub.
|
||||
|
||||
Learn more in the [@Docs context provider documentation](/customize/context/documentation), and view [`docs`](/reference#docs) in the YAML Reference for more details.
|
||||
|
||||
## MCP Servers
|
||||
|
||||
|
|
@ -41,8 +31,4 @@ Prompts blocks are pre-written, reusable prompts that can be referenced at any t
|
|||
Prompt blocks are pre-written, reusable prompts that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks. [Explore prompts](https://hub.continue.dev/explore/prompts) on the hub.
|
||||
Prompt blocks have the same syntax as [prompt files](/customize/deep-dives/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
|
||||
|
||||
## Data
|
||||
|
||||
Data blocks allow you send your development data to custom destinations of your choice. Development data can be used for a variety of purposes, including analyzing usage, gathering insights, or fine-tuning models. You can read more about development data [here](/customize/overview#development-data). Explore data block examples [here](https://hub.continue.dev/explore/data).
|
||||
|
||||
Data destinations are configured in the [`data`](/reference#data) section of `config.yaml`.
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
---
|
||||
title: "Bundles"
|
||||
description: "Bundles are collections of blocks that are commonly used together. You can use them to add multiple building blocks to your custom AI code assistants at once. They are only a concept on , so they are not represented in ."
|
||||
---
|
||||
|
||||
## How to Use a Bundle
|
||||
|
||||
Once you know which bundle you want to use, you’ll need to:
|
||||
|
||||
1. Make sure the correct assistant is in the sidebar
|
||||
2. Click “Add all blocks". This adds the individual blocks to your assistant.
|
||||
3. Add any required inputs (e.g. secrets) for each block.
|
||||
4. Select “Save changes” in assistant sidebar on the right hand side
|
||||
|
||||
After this, you can then go to your IDE extension using the "Open VS Code" or "Open Jetbrains" buttons and begin using the new blocks.
|
||||
|
||||
## How to Create a Bundle
|
||||
|
||||
To create a bundle, click “New bundle” in the header.
|
||||
|
||||

|
||||
|
||||
Choose a name, slug, description, and visibility for your bundle.
|
||||
|
||||
Then, search blocks using the "Search blocks" input and add them to your bundle.
|
||||
|
||||

|
||||
|
||||
Once you have added all the blocks you want in your bundle, click "Create Bundle" to save it and make it available for use.
|
||||
|
||||
## How to Remix a Bundle
|
||||
|
||||
It is not currently possible to remix a bundle.
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Introduction to Continue Blocks"
|
||||
description: "Blocks are the components you use to build a custom AI code assistant. These include models, prompts, tools, context, and more."
|
||||
title: "Introduction"
|
||||
description: "Blocks are the components you use to build a custom AI code assistant. These include Models, MCP Servers, Rules, and Prompts."
|
||||
---
|
||||
|
||||
Blocks follow the [`config.yaml`](/reference) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant.
|
||||
|
|
|
|||
|
|
@ -3,8 +3,13 @@ title: "Introduction"
|
|||
description: "Continue Hub provides a central registry for creating, managing, and sharing AI coding assistants and their reusable building blocks with organization-level governance and configuration"
|
||||
---
|
||||
|
||||
[Continue Hub](https://hub.continue.dev) makes it simple to create custom AI code [assistants](/hub/assistants/intro), providing a registry for defining, managing, and sharing assistant [building blocks](/hub/blocks/intro).
|
||||
[Continue Hub](https://hub.continue.dev) is the place to discover, configure, and govern the models, rules, and MCP tools you need to create a custom AI coding agent.
|
||||
|
||||
Assistants can contain several types of blocks, including [models](/hub/blocks/block-types#models), [rules](/hub/blocks/block-types#rules), [context providers](/hub/blocks/block-types#context), [prompts](/hub/blocks/block-types#prompts), [docs](/hub/blocks/block-types#docs), [data destinations](/hub/blocks/block-types#data), and [MCP servers](/hub/blocks/block-types#mcp-servers).
|
||||
Continue Hub provides a centralized platform for managing the essential building blocks of your AI coding workflow:
|
||||
|
||||
Continue Hub also makes it easy for engineering leaders to centrally [configure](/hub/secrets/secret-types) and [govern](/hub/governance/org-permissions) blocks and assistants for their organization.
|
||||
- **[Models](/hub/blocks/block-types#models)**: Discover and configure models from various providers
|
||||
- **[MCP Tools](/hub/blocks/block-types#mcp-servers)**: Access and integrate Model Context Protocol tools to retrieve real-time data and take action
|
||||
- **[Rules](/hub/blocks/block-types#rules)**: Define custom guidelines for your custom AI coding agent to follow
|
||||
- **[Prompts](/hub/blocks/block-types#prompts)**: Create and share reusable prompts that kickoff your custom AI coding agent
|
||||
|
||||
Continue Hub also makes it easy for engineering leaders to centrally [configure](/hub/secrets/secret-types) and [govern](/hub/governance/org-permissions) these resources for their organization.
|
||||
|
|
@ -299,7 +299,7 @@ models:
|
|||
|
||||
The `context` section defines context providers, which supply additional information or context to the language models. Each context provider can be configured with specific parameters.
|
||||
|
||||
More information about usage/params for each context provider can be found [here](/customize/custom-providers)
|
||||
More information about usage/params for each context provider can be found [here](/customize/deep-dives/custom-providers)
|
||||
|
||||
**Properties:**
|
||||
|
||||
|
|
@ -313,16 +313,11 @@ More information about usage/params for each context provider can be found [here
|
|||
context:
|
||||
- provider: file
|
||||
- provider: code
|
||||
- provider: codebase
|
||||
params:
|
||||
nFinal: 10
|
||||
- provider: docs
|
||||
- provider: diff
|
||||
- provider: http
|
||||
name: Context Server 1
|
||||
params:
|
||||
url: "https://api.example.com/server1"
|
||||
- provider: folder
|
||||
- provider: terminal
|
||||
```
|
||||
|
||||
|
|
@ -512,12 +507,7 @@ prompts:
|
|||
context:
|
||||
- provider: diff
|
||||
- provider: file
|
||||
- provider: codebase
|
||||
- provider: code
|
||||
- provider: docs
|
||||
params:
|
||||
startUrl: https://docs.example.com/introduction
|
||||
rootUrl: https://docs.example.com
|
||||
mcpServers:
|
||||
- name: DevServer
|
||||
command: npm
|
||||
|
|
|
|||
|
|
@ -1,16 +1,32 @@
|
|||
---
|
||||
title: "How to Set Up @Codebase Context Provider in Continue"
|
||||
description: Retrieve relevant context and answers from your codebase using embeddings and keyword search.
|
||||
keywords: [talk, embeddings, reranker, codebase, experimental]
|
||||
sidebarTitle: "@Codebase"
|
||||
title: "@Codebase (Deprecated)"
|
||||
description: Deprecated codebase context provider - use the new codebase awareness approach instead
|
||||
keywords: [deprecated, codebase, embeddings, context, legacy]
|
||||
noindex: true
|
||||
---
|
||||
|
||||
<Warning>
|
||||
**This feature is deprecated.** The `@Codebase` context provider has been deprecated in favor of a more integrated approach to codebase awareness. Please refer to our [Guide on Making Agents Aware of Codebases and Documentation](/guides/codebase-documentation-awareness) for the recommended approach.
|
||||
</Warning>
|
||||
|
||||
## Migration Guide
|
||||
|
||||
If you're currently using `@Codebase` or `@Folder` context providers, please migrate to the new approach outlined in our [codebase and documentation awareness guide](/guides/codebase-documentation-awareness). The new approach provides:
|
||||
|
||||
- Better integration with Continue's Agent features
|
||||
- More intelligent context selection
|
||||
- Improved performance and accuracy
|
||||
|
||||
## Legacy Documentation
|
||||
|
||||
*Below is the original documentation for the `@Codebase` context provider, preserved for reference*
|
||||
|
||||
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).
|
||||
here](../customize/model-roles/embeddings).
|
||||
</Info>
|
||||
|
||||
## How to Use @Codebase and @Folder Context Providers
|
||||
|
|
@ -97,8 +113,4 @@ Continue also supports a **global** `.continueignore` file that will be respecte
|
|||
|
||||
If you want to see exactly what files Continue has indexed, the metadata is stored in `~/.continue/index/index.sqlite`. You can use a tool like [DB Browser for SQLite](https://sqlitebrowser.org/) to view the `tag_catalog` table within this file.
|
||||
|
||||
If you need to force a refresh of the index, reload the VS Code window with <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>p</kbd> + "Reload Window".
|
||||
|
||||
## How Repository Map Enhances Codebase Understanding
|
||||
|
||||
Models in the Claude 3, Llama 3.1/3.2, Gemini 1.5, and GPT-4o families will automatically use a [repository map](/customize/context/codebase#repository-map) during codebase retrieval, which allows the model to understand the structure of your codebase and use it to answer questions. Currently, the repository map only contains the filepaths in the codebase.
|
||||
If you need to force a refresh of the index, reload the VS Code window with <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>p</kbd> + "Reload Window".
|
||||
448
docs/reference/deprecated-context-providers.mdx
Normal file
448
docs/reference/deprecated-context-providers.mdx
Normal file
|
|
@ -0,0 +1,448 @@
|
|||
---
|
||||
title: "Context Providers (Deprecated)"
|
||||
description: "These context providers have been deprecated and are no longer actively maintained. They remain documented here for reference purposes only."
|
||||
noindex: true
|
||||
---
|
||||
|
||||
<Warning>
|
||||
The context providers documented on this page have been deprecated and are no longer actively maintained. We recommend using alternative solutions or the Model Context Protocol (MCP) for similar functionality. These providers may be removed in future versions.
|
||||
</Warning>
|
||||
|
||||
## Deprecated Providers
|
||||
|
||||
The following context providers have been deprecated but are kept here for reference. If you're currently using any of these providers, consider migrating to alternative solutions.
|
||||
|
||||
### `@Greptile`
|
||||
|
||||
Query a [Greptile](https://www.greptile.com/) index of the current repo/branch.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: greptile
|
||||
params:
|
||||
greptileToken: "..."
|
||||
githubToken: "..."
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "greptile",
|
||||
"params": { "GreptileToken": "...", "GithubToken": "..." }
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Commits`
|
||||
|
||||
Reference specific git commit metadata and diff or all of the recent commits.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: commit
|
||||
params:
|
||||
Depth: 50
|
||||
LastXCommitsDepth: 10
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{ "name": "commit", "params": { "Depth": 50, "LastXCommitsDepth": 10 } }
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
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.
|
||||
|
||||
### `@Discord`
|
||||
|
||||
Reference the messages in a Discord channel.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: discord
|
||||
params:
|
||||
discordKey: "bot token"
|
||||
guildId: "1234567890"
|
||||
channels:
|
||||
- id: "123456"
|
||||
name: "example-channel"
|
||||
- id: "678901"
|
||||
name: "example-channel-2"
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "discord",
|
||||
"params": {
|
||||
"discordKey": "bot token",
|
||||
"guildId": "1234567890",
|
||||
"channels": [
|
||||
{ "id": "123456", "name": "example-channel" },
|
||||
{ "id": "678901", "name": "example-channel-2" }
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
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.
|
||||
|
||||
### `@Jira`
|
||||
|
||||
Reference the conversation in a Jira issue.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: jira
|
||||
params:
|
||||
domain: company.atlassian.net
|
||||
token: ATATT...
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "jira",
|
||||
"params": { "domain": "company.atlassian.net", "token": "ATATT..." }
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
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.
|
||||
|
||||
#### Jira Datacenter Support
|
||||
|
||||
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.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: jira
|
||||
params:
|
||||
apiVersion: "2"
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{ "contextProviders": [{ "name": "jira", "params": { "apiVersion": "2" } }] }
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
#### Issue Query
|
||||
|
||||
By default, the following query will be used to find issues:
|
||||
|
||||
```
|
||||
assignee = currentUser() AND resolution = Unresolved order by updated DESC
|
||||
```
|
||||
|
||||
You can override this query by setting the `issueQuery` parameter.
|
||||
|
||||
#### Max results
|
||||
|
||||
You can set the `maxResults` parameter to limit the number of results returned. The default is `50`.
|
||||
|
||||
### `@Gitlab Merge Request`
|
||||
|
||||
Reference an open MR for this branch on GitLab.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: gitlab-mr
|
||||
params:
|
||||
token: "..."
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{ "contextProviders": [{ "name": "gitlab-mr", "params": { "token": "..." } }] }
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
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.
|
||||
|
||||
#### Using Self-Hosted GitLab
|
||||
|
||||
You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: gitlab-mr
|
||||
params:
|
||||
token: "..."
|
||||
domain: "gitlab.example.com"
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "gitlab-mr",
|
||||
"params": { "token": "...", "domain": "gitlab.example.com" }
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
#### Filtering Comments
|
||||
|
||||
If you select some code to be edited, you can have the context provider filter out comments for other files. To enable this feature, set `filterComments` to `true`.
|
||||
|
||||
### `@Google`
|
||||
|
||||
Reference the results of a Google search.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: google
|
||||
params:
|
||||
serperApiKey: <YOUR_SERPER.DEV_API_KEY>
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "google",
|
||||
"params": { "serperApiKey": "<YOUR_SERPER.DEV_API_KEY>" }
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
|
||||
|
||||
Note: You can get an API key for free at [serper.dev](https://serper.dev).
|
||||
|
||||
### @Database Context Provider – Reference Database Table Schemas
|
||||
|
||||
Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: 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
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.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" }
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
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`
|
||||
|
||||
### `@Issue`
|
||||
|
||||
Reference the conversation in a GitHub issue.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: issue
|
||||
params:
|
||||
repos:
|
||||
- owner: continuedev
|
||||
repo: continue
|
||||
githubToken: ghp_xxx
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "issue",
|
||||
"params": {
|
||||
"repos": [{ "owner": "continuedev", "repo": "continue" }],
|
||||
"githubToken": "ghp_xxx"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
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.
|
||||
|
||||
### `@Url`
|
||||
|
||||
Reference the markdown converted contents of a given URL.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: url
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{ "contextProviders": [{ "name": "url" }] }
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
### `@Search`
|
||||
|
||||
Reference the results of codebase search, just like the results you would get from VS Code search.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: search
|
||||
params:
|
||||
maxResults: 100 # optional, defaults to 200
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "search",
|
||||
"params": {
|
||||
"maxResults": 100 // optional, defaults to 200
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
|
||||
|
||||
### `@Web`
|
||||
|
||||
Reference relevant pages from across the web, automatically determined from your input.
|
||||
|
||||
Optionally, set `n` to limit the number of results returned (default 6).
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
```yaml config.yaml
|
||||
context:
|
||||
- provider: web
|
||||
params:
|
||||
n: 5
|
||||
```
|
||||
</Tab>
|
||||
<Tab title="JSON">
|
||||
```json config.json
|
||||
{ "contextProviders": [{ "name": "web", "params": { "n": 5 } }] }
|
||||
```
|
||||
</Tab>
|
||||
</Tabs>
|
||||
|
|
@ -1,21 +1,26 @@
|
|||
---
|
||||
title: "How to Set Up @Docs Context Provider in Continue"
|
||||
description: Learn how to access and search your project's documentation directly within Continue
|
||||
keywords:
|
||||
[
|
||||
documentation,
|
||||
indexing,
|
||||
context provider,
|
||||
embeddings,
|
||||
docs,
|
||||
embedder,
|
||||
embeddings provider,
|
||||
documentation,
|
||||
]
|
||||
toc_max_heading_level: 5
|
||||
sidebarTitle: "@Docs"
|
||||
title: "@Docs (Deprecated)"
|
||||
description: Deprecated documentation context provider - use the new documentation awareness approach instead
|
||||
keywords: [deprecated, documentation, docs, context, embeddings, legacy]
|
||||
noindex: true
|
||||
---
|
||||
|
||||
<Warning>
|
||||
**This feature is deprecated.** The `@Docs` context provider has been deprecated in favor of a more integrated approach to documentation awareness. Please refer to our [Guide on Making Agents Aware of Codebases and Documentation](/guides/codebase-documentation-awareness) for the recommended approach.
|
||||
</Warning>
|
||||
|
||||
## Migration Guide
|
||||
|
||||
If you're currently using the `@Docs` context provider, please migrate to the new approach outlined in our [codebase and documentation awareness guide](/guides/codebase-documentation-awareness). The new approach provides:
|
||||
|
||||
- Better integration with Continue's Agent features
|
||||
- More intelligent context selection
|
||||
- Improved performance and accuracy
|
||||
|
||||
## Legacy Documentation
|
||||
|
||||
**Below is the original documentation for the `@Docs` context provider, preserved for reference**
|
||||
|
||||
The `@Docs` context provider allows you to efficiently reference documentation directly within Continue.
|
||||
|
||||
## How to Enable the @Docs Context Provider
|
||||
|
|
@ -53,9 +58,7 @@ The `@Docs` context provider works by
|
|||
|
||||
## How to Index Your Own Documentation
|
||||
|
||||
### Using Hub `docs` Blocks
|
||||
|
||||
@Docs uses [`docs` blocks](../../hub/blocks/block-types#docs) in Assistants from the hub. Visit the hub to [explore `docs` blocks](https://hub.continue.dev/explore/docs) or [create your own](https://hub.continue.dev/new?type=block&blockType=docs).
|
||||
**Note:** Documentation configuration should now be done directly in your `config.yaml` file. The previous `docs` blocks functionality has been deprecated.
|
||||
|
||||
### How to Add Documentation Through the @Docs Context Provider
|
||||
|
||||
|
|
@ -116,11 +119,11 @@ Indexing will re-sync upon saving the configuration file.
|
|||
|
||||
### How to Use Your Custom Embeddings Provider
|
||||
|
||||
If you have set up an [embeddings provider](../model-roles/embeddings.mdx), @docs will use your embeddings provider. Switching embeddings providers will trigger a re-index of all documentation sites in your configuration.
|
||||
If you have set up an [embeddings provider](../customize/model-roles/embeddings.mdx), @docs will use your embeddings provider. Switching embeddings providers will trigger a re-index of all documentation sites in your configuration.
|
||||
|
||||
### How to Configure Reranking for Better Results
|
||||
|
||||
As with [@Codebase context provider configuration](./codebase#configuration), you can adjust the reranking behavior of the `@Docs` context provider with the `nRetrieve`, `nFinal`, and `useReranking`.
|
||||
As with [@Codebase context provider configuration](./deprecated-codebase#configuration), you can adjust the reranking behavior of the `@Docs` context provider with the `nRetrieve`, `nFinal`, and `useReranking`.
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
|
|
@ -216,7 +219,7 @@ If your documentation is private, you can skip the default crawler and use a loc
|
|||
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](../settings) This will download and install Chromium
|
||||
your User Settings Page. This will download and install Chromium
|
||||
to `~/.continue/.utils`, and use it as the local crawler. **Note:** Chromium
|
||||
crawling support is being deprecated and may be removed in future versions.
|
||||
</Info>
|
||||
|
|
@ -281,7 +284,7 @@ The following configuration example works out of the box for VS Code. This uses
|
|||
|
||||
### How to Set Up @Docs in JetBrains IDEs (Minimal Configuration)
|
||||
|
||||
Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-roles/embeddings.mdx).
|
||||
Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../customize/model-roles/embeddings.mdx).
|
||||
|
||||
<Tabs>
|
||||
<Tab title="YAML">
|
||||
|
|
@ -405,4 +408,4 @@ The following configuration example includes:
|
|||
</Tab>
|
||||
</Tabs>
|
||||
|
||||
This setup could also involve enabling Chromium as a backup for local documentation through the [User Settings Page](../settings).
|
||||
This setup could also involve enabling Chromium as a backup for local documentation through the [User Settings Page](../customize/settings).
|
||||
|
|
@ -20,7 +20,7 @@ Below are details for each property that can be set in `config.json`. The config
|
|||
|
||||
## `models`
|
||||
|
||||
Your **chat** models are defined here, which are used for [Chat](/features/chat/how-it-works), [Edit](/features/edit/how-it-works) and [VS Code actions](/customize/overview#vscode-actions).
|
||||
Your **chat** models are defined here, which are used for [Chat](/features/chat/how-it-works) and [Edit](/features/edit/how-it-works).
|
||||
|
||||
Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json.
|
||||
|
||||
|
|
@ -485,18 +485,7 @@ Several experimental config parameters are available, as described below:
|
|||
- `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`.
|
||||
|
||||
- `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](/customize/deep-dives/mcp)
|
||||
|
||||
|
|
@ -508,16 +497,6 @@ config.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": {
|
||||
|
|
@ -533,7 +512,7 @@ config.json
|
|||
|
||||
## 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`.
|
||||
Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the user 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`).
|
||||
|
||||
|
|
@ -562,4 +541,4 @@ Some deprecated `config.json` settings are no longer stored in config and have b
|
|||
- `displayRawMarkdown`
|
||||
- `showChatScrollbar`
|
||||
|
||||
See [User Settings Page](/customize/settings) for more information about each option.
|
||||
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ mcpServers:
|
|||
|
||||
## Deprecated configuration options
|
||||
|
||||
Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](/customize/settings) (Gear Icon). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`.
|
||||
Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the user settings (Gear Icon). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`.
|
||||
|
||||
See the [JSON Config Reference](/reference) for more information on fully deprecated options.
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,6 @@ The following usage information is collected and reported:
|
|||
|
||||
## How to Opt Out
|
||||
|
||||
You can disable anonymous telemetry by visiting the [User Settings Page](/customize/settings) and toggling "Allow Anonymous Telemetry" off.
|
||||
You can disable anonymous telemetry by toggling "Allow Anonymous Telemetry" off in the user settings.
|
||||
|
||||
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).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue