From 9f68638e324853d413f16b8ae6f14c57cada85cd Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Thu, 28 Aug 2025 15:33:07 -0700 Subject: [PATCH] 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 --- docs/customization/mcp-tools.mdx | 10 +- docs/customization/models.mdx | 126 ++++- docs/customization/overview.mdx | 4 - docs/customization/prompts.mdx | 6 +- docs/customization/rules.mdx | 6 +- docs/customize/context/_category_.json | 4 - docs/customize/deep-dives/autocomplete.mdx | 2 +- .../customize/deep-dives/custom-providers.mdx | 430 +++++++++++++++++ .../customize/deep-dives/development-data.mdx | 4 +- docs/customize/deep-dives/slash-commands.mdx | 2 +- docs/customize/deep-dives/vscode-actions.mdx | 44 -- .../model-providers/more/deepinfra.mdx | 28 +- .../model-providers/more/deepseek.mdx | 40 ++ docs/customize/model-providers/more/groq.mdx | 28 +- .../more/huggingfaceinferenceapi.mdx | 63 +-- .../model-providers/more/llamacpp.mdx | 61 ++- .../model-providers/more/llamastack.mdx | 132 +----- .../model-providers/more/lmstudio.mdx | 95 ---- .../model-providers/more/mistral.mdx | 50 ++ .../customize/model-providers/more/nvidia.mdx | 60 +-- .../model-providers/more/openrouter.mdx | 157 ------ .../model-providers/more/together.mdx | 63 +-- docs/customize/model-providers/more/xAI.mdx | 44 ++ docs/customize/model-providers/overview.mdx | 16 +- .../model-providers/top-level/anthropic.mdx | 59 +-- .../model-providers/top-level/azure.mdx | 134 +----- .../model-providers/top-level/bedrock.mdx | 167 ++----- .../model-providers/top-level/deepseek.mdx | 82 ---- .../model-providers/top-level/gemini.mdx | 65 +-- .../model-providers/top-level/inception.mdx | 68 +-- .../model-providers/top-level/lmstudio.mdx | 47 ++ .../model-providers/top-level/mistral.mdx | 114 ----- .../model-providers/top-level/ollama.mdx | 135 +----- .../model-providers/top-level/openai.mdx | 98 ++-- .../model-providers/top-level/openrouter.mdx | 132 ++++++ .../model-providers/top-level/vertexai.mdx | 119 +---- .../model-providers/top-level/xAI.mdx | 61 --- docs/customize/model-roles/chat.mdx | 8 +- docs/customize/model-roles/embeddings.mdx | 4 +- docs/customize/overview.mdx | 16 +- docs/customize/settings.mdx | 41 -- docs/customize/telemetry.mdx | 2 +- docs/docs.json | 211 ++++++--- docs/features/agent/model-setup.mdx | 4 + docs/features/chat/context-selection.mdx | 12 +- docs/features/chat/how-it-works.mdx | 10 +- docs/features/chat/how-to-customize.mdx | 7 +- docs/features/chat/model-setup.mdx | 91 +--- docs/features/chat/quick-start.mdx | 2 - .../build-your-own-context-provider.mdx | 162 ------- .../codebase-documentation-awareness.mdx | 183 +++++++ docs/guides/custom-code-rag.mdx | 106 +++-- docs/guides/llama3.1.mdx | 228 --------- docs/guides/overview.mdx | 6 +- docs/guides/plan-mode-guide.mdx | 4 - .../running-continue-without-internet.mdx | 4 +- docs/guides/set-up-codestral.mdx | 58 --- docs/hub/blocks/block-types.mdx | 18 +- docs/hub/blocks/bundles.mdx | 33 -- docs/hub/blocks/intro.mdx | 4 +- docs/hub/introduction.mdx | 11 +- docs/reference.mdx | 12 +- .../deprecated-codebase.mdx} | 32 +- .../deprecated-context-providers.mdx | 448 ++++++++++++++++++ .../deprecated-docs.mdx} | 49 +- docs/reference/json-reference.mdx | 27 +- docs/reference/yaml-migration.mdx | 2 +- docs/telemetry.mdx | 2 +- 68 files changed, 2152 insertions(+), 2401 deletions(-) delete mode 100644 docs/customize/context/_category_.json create mode 100644 docs/customize/deep-dives/custom-providers.mdx delete mode 100644 docs/customize/deep-dives/vscode-actions.mdx create mode 100644 docs/customize/model-providers/more/deepseek.mdx delete mode 100644 docs/customize/model-providers/more/lmstudio.mdx create mode 100644 docs/customize/model-providers/more/mistral.mdx delete mode 100644 docs/customize/model-providers/more/openrouter.mdx create mode 100644 docs/customize/model-providers/more/xAI.mdx delete mode 100644 docs/customize/model-providers/top-level/deepseek.mdx create mode 100644 docs/customize/model-providers/top-level/lmstudio.mdx delete mode 100644 docs/customize/model-providers/top-level/mistral.mdx create mode 100644 docs/customize/model-providers/top-level/openrouter.mdx delete mode 100644 docs/customize/model-providers/top-level/xAI.mdx delete mode 100644 docs/customize/settings.mdx delete mode 100644 docs/guides/build-your-own-context-provider.mdx create mode 100644 docs/guides/codebase-documentation-awareness.mdx delete mode 100644 docs/guides/llama3.1.mdx delete mode 100644 docs/guides/set-up-codestral.mdx delete mode 100644 docs/hub/blocks/bundles.mdx rename docs/{customize/context/codebase.mdx => reference/deprecated-codebase.mdx} (78%) create mode 100644 docs/reference/deprecated-context-providers.mdx rename docs/{customize/context/documentation.mdx => reference/deprecated-docs.mdx} (85%) diff --git a/docs/customization/mcp-tools.mdx b/docs/customization/mcp-tools.mdx index 8494b1384..fedc52bdf 100644 --- a/docs/customization/mcp-tools.mdx +++ b/docs/customization/mcp-tools.mdx @@ -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 -![MCP Blocks Overview](/images/customization/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png) +![MCP servers overview](/images/customization/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png) -## 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. diff --git a/docs/customization/models.mdx b/docs/customization/models.mdx index 71b2310d6..5cd97876a 100644 --- a/docs/customization/models.mdx +++ b/docs/customization/models.mdx @@ -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 -![Model Blocks Overview](/images/customization/images/model-blocks-overview-36c30e7e01928d7a9b5b26ff1639c34b.png) +![Models Overview](/images/customization/images/model-blocks-overview-36c30e7e01928d7a9b5b26ff1639c34b.png) ## 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 \ No newline at end of file diff --git a/docs/customization/overview.mdx b/docs/customization/overview.mdx index c96ece782..1889806d6 100644 --- a/docs/customization/overview.mdx +++ b/docs/customization/overview.mdx @@ -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). diff --git a/docs/customization/prompts.mdx b/docs/customization/prompts.mdx index 842f4560c..cf229284d 100644 --- a/docs/customization/prompts.mdx +++ b/docs/customization/prompts.mdx @@ -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 -![Prompt Blocks Overview](/images/customization/images/prompts-blocks-overview-17194d870840576f9a0dde548f2c70ec.png) +![Prompts Overview](/images/customization/images/prompts-blocks-overview-17194d870840576f9a0dde548f2c70ec.png) ## 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). diff --git a/docs/customization/rules.mdx b/docs/customization/rules.mdx index c3c153fb6..37ab76ff9 100644 --- a/docs/customization/rules.mdx +++ b/docs/customization/rules.mdx @@ -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. \ No newline at end of file diff --git a/docs/customize/context/_category_.json b/docs/customize/context/_category_.json deleted file mode 100644 index d58470e1d..000000000 --- a/docs/customize/context/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Context", - "position": 2 -} diff --git a/docs/customize/deep-dives/autocomplete.mdx b/docs/customize/deep-dives/autocomplete.mdx index caf46000d..b666e4be1 100644 --- a/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/customize/deep-dives/autocomplete.mdx @@ -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" diff --git a/docs/customize/deep-dives/custom-providers.mdx b/docs/customize/deep-dives/custom-providers.mdx new file mode 100644 index 000000000..dd604646b --- /dev/null +++ b/docs/customize/deep-dives/custom-providers.mdx @@ -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. + +![Context Items](/images/customize/images/context-provider-example-0c96ff77286fa970b23dddfdc1fa986a.png) + +## 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. + + + + ```yaml config.yaml + context: + - provider: file + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "file" + } + ] + } + ``` + + + +### `@Code` + +Reference specific functions or classes from throughout your project. + + + + ```yaml config.yaml + context: + - provider: code + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "code" + } + ] + } + ``` + + + +### `@Git Diff` + +Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing. + + + + ```yaml config.yaml + context: + - provider: diff + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "diff" + } + ] + } + ``` + + + +### `@Current File` + +Reference the currently open file. + + + + ```yaml config.yaml + context: + - provider: currentFile + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "currentFile" + } + ] + } + ``` + + + +### `@Terminal` + +Reference the last command you ran in your IDE's terminal and its output. + + + + ```yaml config.yaml + context: + - provider: terminal + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "terminal" + } + ] + } + ``` + + + +### `@Open` + +Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. + + + + ```yaml config.yaml + context: + - provider: open + params: + onlyPinned: true + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "open", + "params": { + "onlyPinned": true + } + } + ] + } + ``` + + + +### `@Clipboard` + +Reference recent clipboard items + + + + ```yaml config.yaml + context: + - provider: clipboard + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "clipboard" + } + ] + } + ``` + + + +### `@Tree` + +Reference the structure of your current workspace. + + + + ```yaml config.yaml + context: + - provider: tree + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "tree" + } + ] + } + ``` + + + +### `@Problems` + +Get Problems from the current file. + + + + ```yaml config.yaml + context: + - provider: problems + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "problems" + } + ] + } + ``` + + + +### `@Debugger` + +Reference the contents of the local variables in the debugger. Currently only available in VS Code. + + + + ```yaml config.yaml + context: + - provider: debugger + params: + stackDepth: 3 + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "debugger", + "params": { + "stackDepth": 3 + } + } + ] + } + ``` + + + +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. + + + + ```yaml config.yaml + context: + - provider: repo-map + params: + includeSignatures: false # default true + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "repo-map", + "params": { + "includeSignatures": false // default true + } + } + ] + } + ``` + + + +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. + + + + ```yaml config.yaml + context: + - provider: os + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "os" + } + ] + } + ``` + + + +### `@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. + + + + ```yaml config.yaml + context: + - provider: http + params: + url: "https://api.example.com/v1/users" + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "http", + "params": { + "url": "https://api.example.com/v1/users" + } + } + ] + } + ``` + + + +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: + + + + ```yaml config.yaml + mcpServers: + - name: My MCP Server + command: uvx + args: + - mcp-server-sqlite + - --db-path + - /Users/NAME/test.db + ``` + + + ```json config.json + { + "experimental": { + "modelContextProtocolServers": [ + { + "transport": { + "type": "stdio", + "command": "uvx", + "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] + } + } + ] + } + } + ``` + + + +You'll then be able to type "@" and see "MCP" in the context providers dropdown. + +## Deprecated Context Providers + + + To provide conext beyond the built-in context providers, we now recommend using [MCP Servers](/customization/mcp-tools) + + +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 \ No newline at end of file diff --git a/docs/customize/deep-dives/development-data.mdx b/docs/customize/deep-dives/development-data.mdx index 93e69e482..35ccb06c2 100644 --- a/docs/customize/deep-dives/development-data.mdx +++ b/docs/customize/deep-dives/development-data.mdx @@ -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). diff --git a/docs/customize/deep-dives/slash-commands.mdx b/docs/customize/deep-dives/slash-commands.mdx index 4059ef25e..3f041ada2 100644 --- a/docs/customize/deep-dives/slash-commands.mdx +++ b/docs/customize/deep-dives/slash-commands.mdx @@ -10,7 +10,7 @@ sidebarTitle: "Slash Commands" Slash commands are shortcuts that can be activated by typing '/' in a chat session (press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains)), and selecting from the dropdown. ![slash-commands](/images/slash-commands.png) -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. **Recommended approach**: Use prompt files to create slash commands instead of diff --git a/docs/customize/deep-dives/vscode-actions.mdx b/docs/customize/deep-dives/vscode-actions.mdx deleted file mode 100644 index 91ca32d59..000000000 --- a/docs/customize/deep-dives/vscode-actions.mdx +++ /dev/null @@ -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" ---- - -Currently all of these are only available in VS Code - -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. - -![quick-actions](/images/quick-actions.png) - -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). - -![context-menu](/images/context-menu.png) - -## How to Use the Debug Action Shortcut - -The debug action is a special built-in keyboard shortcut in the VS Code extension. Use cmd/ctrl + shift + R 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 cmd/ctrl + . will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use cmd/ctrl + . 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]”. diff --git a/docs/customize/model-providers/more/deepinfra.mdx b/docs/customize/model-providers/more/deepinfra.mdx index 83150bc56..733432fbd 100644 --- a/docs/customize/model-providers/more/deepinfra.mdx +++ b/docs/customize/model-providers/more/deepinfra.mdx @@ -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: + + **Discover Deep Infra models [here](https://hub.continue.dev/deepinfra)** + + + + Get an API key from the [Deep Infra](https://deepinfra.com/) + + +## Configuration ```yaml title="config.yaml" models: - - name: DeepInfra + - name: provider: deepinfra - model: mistralai/Mixtral-8x7B-Instruct-v0.1 - apiKey: + model: + apiKey: ``` - + ```json title="config.json" { "models": [ { + "title": "", "provider": "deepinfra", - "title": "DeepInfra", - "model": "mistralai/Mixtral-8x7B-Instruct-v0.1", - "apiKey": "" + "model": "", + "apiKey": "" } ] } @@ -31,4 +39,6 @@ description: "Configure DeepInfra with Continue to access low-cost inference for -[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts) + + **Check out a more advanced configuration [here](https://hub.continue.dev/deepinfra/qwen-qwen2.5-coder-32b-instruct?view=config)** + \ No newline at end of file diff --git a/docs/customize/model-providers/more/deepseek.mdx b/docs/customize/model-providers/more/deepseek.mdx new file mode 100644 index 000000000..773b6e8ad --- /dev/null +++ b/docs/customize/model-providers/more/deepseek.mdx @@ -0,0 +1,40 @@ +--- +title: DeepSeek +slug: ../deepseek +--- + + + **Discover DeepSeek models [here](https://hub.continue.dev/?q=DeepSeek)** + + + + You can get an API key from the [DeepSeek Console](https://www.deepseek.com/). + + +## Confiugration + + + + ```yaml title="config.yaml" + models: + - name: + provider: deepseek + model: + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "deepseek", + "model": "", + "apiKey": "" + } + ] + } + ``` + + \ No newline at end of file diff --git a/docs/customize/model-providers/more/groq.mdx b/docs/customize/model-providers/more/groq.mdx index ae674b1e5..1d0a2b5e9 100644 --- a/docs/customize/model-providers/more/groq.mdx +++ b/docs/customize/model-providers/more/groq.mdx @@ -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" --- - 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) -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 ```yaml title="config.yaml" models: - - name: Llama 3.3 70b Versatile + - name: provider: groq - model: llama-3.3-70b-versatile - apiKey: - roles: - - chat + model: + apiKey: " ``` - + ```json title="config.json" { "models": [ { - "title": "Llama 3.3 70b Versatile", + "title": "", "provider": "groq", - "model": "llama-3.3-70b-versatile", - "apiKey": "" + "model": "", + "apiKey": """, } ] } ``` - + \ No newline at end of file diff --git a/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx b/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx index 99426f80b..badaa36e5 100644 --- a/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx +++ b/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx @@ -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: + + Get started with [Hugging Face Inference Endpoints](https://endpoints.huggingface.co/) + + +## Configuration - - ```yaml title="config.yaml" - models: - - name: Hugging Face Inference API - provider: huggingface-inference-api - model: MODEL_NAME - apiKey: - apiBase: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Hugging Face Inference API", - "provider": "huggingface-inference-api", - "model": "MODEL_NAME", - "apiKey": "", - "apiBase": "" - } - ] - } - ``` - - - -[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/HuggingFaceInferenceAPI.ts) + + ```yaml title="config.yaml" + models: + - name: + provider: huggingface-inference-api + model: + apiKey: + apiBase: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "huggingface-inference-api", + "model": "", + "apiKey": "", + "apiBase": "" + } + ] + } + ``` + + \ No newline at end of file diff --git a/docs/customize/model-providers/more/llamacpp.mdx b/docs/customize/model-providers/more/llamacpp.mdx index e12d22cd8..54699c35a 100644 --- a/docs/customize/model-providers/more/llamacpp.mdx +++ b/docs/customize/model-providers/more/llamacpp.mdx @@ -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: + + Get started with [Llama.cpp](https://github.com/ggml-org/llama.cpp?tab=readme-ov-file#quick-start) + -```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 - - ```yaml title="config.yaml" - models: - - name: Llama CPP - provider: llama.cpp - model: MODEL_NAME - apiBase: http://localhost:8080 - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama CPP", - "provider": "llama.cpp", - "model": "MODEL_NAME", - "apiBase": "http://localhost:8080" - } - ] - } - ``` - - - -[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LlamaCpp.ts) + + ```yaml title="config.yaml" + models: + - name: + provider: llama.cpp + model: + apiBase: http://localhost:8080 + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "llama.cpp", + "model": "" + "apiBase": "http://localhost:8080" + } + ] + } + ``` + + \ No newline at end of file diff --git a/docs/customize/model-providers/more/llamastack.mdx b/docs/customize/model-providers/more/llamastack.mdx index 2a2db132c..3f048e6c6 100644 --- a/docs/customize/model-providers/more/llamastack.mdx +++ b/docs/customize/model-providers/more/llamastack.mdx @@ -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. + + Get started with [Lllama Stack](https://llama-stack.readthedocs.io/en/latest/getting_started/index.html) + - - ```yaml title="config.yaml" - models: - - name: Llama4 Maverick - provider: llamastack - model: meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 - apiBase: http:///v1/openai/v1/ - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama4 Maverick", - "provider": "llamastack", - "model": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8", - "apiBase": "http:///v1/openai/v1/" - } - ] - } - ``` - - - -## Autocomplete model - -We recommend configuring **CodeLlama 7B** as your autocomplete model. - - - - ```yaml title="config.yaml" - models: - - name: CodeLlama 7B - provider: llamastack - model: codellama:7b - apiBase: http:///v1/openai/v1/ - roles: - - autocomplete - ``` - - - ```json title="config.json" - { - "tabAutocompleteModel": { - "title": "CodeLlama 7B", + + ```yaml title="config.yaml" + models: + - name: + provider: llamastack + model: + apiBase: http:///v1/openai/v1/ + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", "provider": "llamastack", - "model": "codellama:7b", - "apiBase": "http:///v1/openai/v1/" - } - } - ``` - - - -## Embeddings model - -By default, Llama Stack uses **all-MiniLM-L6-v2** as the embeddings model. - - - - ```yaml title="config.yaml" - models: - - name: all-MiniLM-L6-v2 - provider: llamastack - model: all-MiniLM-L6-v2 - apiBase: http:///v1/openai/v1/ - roles: - - embed - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "provider": "llamastack", - "model": "all-MiniLM-L6-v2", - "apiBase": "http:///v1/openai/v1/" - } - } - ``` - - - -## Reranking model - -Llama Stack currently did not support Reranking API yet. + "model": "", + "apiBase": "http:///v1/openai/v1/" + } + ] + } + ``` + + \ No newline at end of file diff --git a/docs/customize/model-providers/more/lmstudio.mdx b/docs/customize/model-providers/more/lmstudio.mdx deleted file mode 100644 index 60226686f..000000000 --- a/docs/customize/model-providers/more/lmstudio.mdx +++ /dev/null @@ -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. - - - - ```yaml title="config.yaml" - models: - - name: Llama3.1 8B Instruct - provider: lmstudio - model: meta-llama-3.1-8b-instruct - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama3.1 8B Instruct", - "provider": "lmstudio", - "model": "meta-llama-3.1-8b-instruct" - } - ] - } - ``` - - - -## 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) - - - - ```yaml title="config.yaml" - models: - - name: Nomic Embed Text - provider: lmstudio - model: nomic-ai/nomic-embed-text-v1.5-GGUF - roles: - - embed - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "provider": "lmstudio", - "model": "nomic-ai/nomic-embed-text-v1.5-GGUF" - } - } - ``` - - - -## Setting up a remote instance - -To configure a remote instance of LM Studio, add the `"apiBase"` property to your model in config.json: - - - - ```yaml title="config.yaml" - models: - - name: Llama3.1 8B Instruct - provider: lmstudio - model: meta-llama-3.1-8b-instruct - apiBase: http:///v1 - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama3.1 8B Instruct", - "provider": "lmstudio", - "model": "meta-llama-3.1-8b-instruct", - "apiBase": "http:///v1" - } - ] - } - ``` - - - -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) diff --git a/docs/customize/model-providers/more/mistral.mdx b/docs/customize/model-providers/more/mistral.mdx new file mode 100644 index 000000000..cc6043039 --- /dev/null +++ b/docs/customize/model-providers/more/mistral.mdx @@ -0,0 +1,50 @@ +--- +title: Mistral +slug: ../mistral +--- + + + **Discover Mistral models [here](https://hub.continue.dev/mistral)** + + + + Get an API key from the [Mistral Dashboard](https://console.mistral.ai) + + +## Configuration + + + + ```yaml title="config.yaml" + models: + - name: + provider: mistral + model: + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "mistral", + "model": "", + "apiKey": "" + } + ] + } + ``` + + + + + **Check out a more advanced configuration [here](https://hub.continue.dev/mistral/codestral?view=config)** + + + + 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`. + \ No newline at end of file diff --git a/docs/customize/model-providers/more/nvidia.mdx b/docs/customize/model-providers/more/nvidia.mdx index 4f149738b..534583b31 100644 --- a/docs/customize/model-providers/more/nvidia.mdx +++ b/docs/customize/model-providers/more/nvidia.mdx @@ -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" --- - [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) -## Chat model - -We recommend configuring **Nemotron-4-340B-Instruct** as your chat model. +## Configuration ```yaml title="config.yaml" models: - - name: Nemotron-4-340B-Instruct + - name: provider: nvidia - model: nvidia-nemotron-4-340b-instruct + model: apiKey: ``` - + ```json title="config.json" { "models": [ { - "title": "Nemotron-4-340B-Instruct", + "title": "", "provider": "nvidia", - "model": "nvidia-nemotron-4-340b-instruct", + "model": "", "apiKey": "" } ] @@ -38,44 +33,3 @@ We recommend configuring **Nemotron-4-340B-Instruct** as your chat model. ``` - -## 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. - - - - ```yaml title="config.yaml" - models: - - name: Nvidia Embedder - provider: nvidia - model: nvidia/nv-embedqa-mistral-7b-v2 - apiKey: - roles: - - embed - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "provider": "nvidia", - "model": "nvidia/nv-embedqa-mistral-7b-v2", - "apiKey": "" - } - } - ``` - - - -## Reranking model - -NVIDIA currently does not offer any reranking models. - -[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers. diff --git a/docs/customize/model-providers/more/openrouter.mdx b/docs/customize/model-providers/more/openrouter.mdx deleted file mode 100644 index 4bc5945a8..000000000 --- a/docs/customize/model-providers/more/openrouter.mdx +++ /dev/null @@ -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. - - - - ```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: - ``` - - - ```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": "" - } - ] - } - ``` - - - -## 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: - - - - ```yaml title="config.yaml" - models: - - name: Qwen3Coder - provider: openrouter - model: qwen/qwen-coder - apiBase: https://openrouter.ai/api/v1 - apiKey: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Qwen3Coder", - "provider": "openrouter", - "model": "qwen/qwen-coder", - "apiBase": "https://openrouter.ai/api/v1", - "apiKey": "" - } - ] - } - ``` - - - -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: - - - - ```yaml title="config.yaml" - models: - - name: Example Model - provider: exampleProvider - model: example-model - requestOptions: - extraBodyProperties: - transforms: [] - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Example Model", - "provider": "exampleProvider", - "model": "example-model", - "requestOptions": { - "extraBodyProperties": { - "transforms": [] - } - } - } - ] - } - ``` - - - -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. - - - 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. - - -If you're experiencing issues with Agent mode or tools not working, you can add the capabilities field: - - - - ```yaml title="config.yaml" - models: - - name: Claude via OpenRouter - provider: openrouter - model: anthropic/claude-3.5-sonnet - apiBase: https://openrouter.ai/api/v1 - apiKey: - capabilities: - - tool_use # Enable function calling for Agent mode - - image_input # Enable image upload support - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Claude via OpenRouter", - "provider": "openrouter", - "model": "anthropic/claude-3.5-sonnet", - "apiBase": "https://openrouter.ai/api/v1", - "apiKey": "", - "capabilities": { - "tools": true, - "uploadImage": true - } - } - ] - } - ``` - - - -Note: Not all models support function calling. Check the [OpenRouter models page](https://openrouter.ai/models) for specific model capabilities. \ No newline at end of file diff --git a/docs/customize/model-providers/more/together.mdx b/docs/customize/model-providers/more/together.mdx index 11a9c6107..e9a98b9b7 100644 --- a/docs/customize/model-providers/more/together.mdx +++ b/docs/customize/model-providers/more/together.mdx @@ -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: + + **Discover Together AI models [here](https://hub.continue.dev/togetherai)** + + + + Get an API key from the [Together AI](https://api.together.ai) + + +## Configuration - - ```yaml title="config.yaml" - models: - - name: Together Qwen2.5 Coder - provider: together - model: Qwen/Qwen2.5-Coder-32B-Instruct - apiKey: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Together Qwen2.5 Coder", - "provider": "together", - "model": "Qwen/Qwen2.5-Coder-32B-Instruct", - "apiKey": "" - } - ] - } - ``` - + + ```yaml title="config.yaml" + models: + - name: + provider: together + model: + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "together", + "model": "", + "apiKey": "" + } + ] + } + ``` + -[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Together.ts) + + **Check out a more advanced configuration [here](https://hub.continue.dev/togetherai/qwen3-coder-480b-a35b-instruct-fp8?view=config)** + \ No newline at end of file diff --git a/docs/customize/model-providers/more/xAI.mdx b/docs/customize/model-providers/more/xAI.mdx new file mode 100644 index 000000000..803befe49 --- /dev/null +++ b/docs/customize/model-providers/more/xAI.mdx @@ -0,0 +1,44 @@ +--- +title: xAI +slug: ../xai +--- + + + **Discover xAI models [here](https://hub.continue.dev/xai)** + + + + Get an API key from the [xAI Console](https://console.x.ai/) + + +## Configuration + + + + ```yaml title="config.yaml" + models: + - name: + provider: xai + model: + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "anthropic", + "model": "", + "apiKey": "" + } + ] + } + ``` + + + + + **Check out a more advanced configuration [here](https://hub.continue.dev/xai/grok-4?view=config)** + \ No newline at end of file diff --git a/docs/customize/model-providers/overview.mdx b/docs/customize/model-providers/overview.mdx index c209544fd..617d400c5 100644 --- a/docs/customize/model-providers/overview.mdx +++ b/docs/customize/model-providers/overview.mdx @@ -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 diff --git a/docs/customize/model-providers/top-level/anthropic.mdx b/docs/customize/model-providers/top-level/anthropic.mdx index e3193e2bd..7231e93e9 100644 --- a/docs/customize/model-providers/top-level/anthropic.mdx +++ b/docs/customize/model-providers/top-level/anthropic.mdx @@ -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" --- + + **Discover Anthropic models [here](https://hub.continue.dev/anthropic)** + + - 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) -## How to Set Up Anthropic Chat Models - -We recommend configuring **Claude 4 Sonnet** as your chat model. +## Configuration ```yaml title="config.yaml" models: - - name: Claude 4 Sonnet + - name: provider: anthropic - model: claude-sonnet-4-20250514 + model: apiKey: ``` - + ```json title="config.json" { "models": [ { - "title": "Claude 4 Sonnet", + "title": "", "provider": "anthropic", - "model": "claude-sonnet-4-latest", + "model": "", "apiKey": "" } ] @@ -40,44 +40,23 @@ We recommend configuring **Claude 4 Sonnet** as your chat model. -## 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. + + **Check out a more advanced configuration [here](https://hub.continue.dev/anthropic/claude-4-sonnet?view=config)** + ## 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: ```yaml title="config.yaml" models: - - name: Anthropic + - name: provider: anthropic - model: claude-sonnet-4-20250514 + model: apiKey: roles: - chat @@ -85,7 +64,7 @@ To enable caching of the system message and the turn-by-turn conversation, updat promptCaching: true ``` - + ```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": "", "provider": "anthropic", - "model": "claude-sonnet-4-latest", + "model": "", "defaultCompletionOptions": { "promptCaching": true }, diff --git a/docs/customize/model-providers/top-level/azure.mdx b/docs/customize/model-providers/top-level/azure.mdx index 2fd9b32e4..62275b321 100644 --- a/docs/customize/model-providers/top-level/azure.mdx +++ b/docs/customize/model-providers/top-level/azure.mdx @@ -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). - - -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) -## How to Set Up Azure AI Foundry Chat Models - -We recommend configuring **GPT-4o** as your chat model. - ```yaml title="config.yaml" models: - - name: GPT-4o + - name: provider: azure - model: gpt-4o + model: apiBase: apiKey: # 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 ``` - + ```json title="config.json" { "models": [{ - "title": "GPT-4o", + "title": "", "provider": "azure", - "model": "gpt-4o", + "model": "", "apiBase": "", "deployment": "", "apiKey": "", // 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. -## How to Set Up Azure AI Foundry Autocomplete Models - -We recommend configuring **Codestral** as your autocomplete model. +## Azure OpenAI Service (Alternative) - **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) -If you use Azure Machine Learning Studio to deploy Codestral: - - - - ```yaml title="config.yaml" - models: - - name: Codestral - provider: mistral - model: codestral-latest - apiBase: https://..models.ai.azure.com/v1 - apiKey: - roles: - - autocomplete - ``` - - - ```json title="config.json" - { - "tabAutocompleteModel": { - "title": "Codestral", - "provider": "mistral", - "model": "codestral-latest", - "apiBase": "https://..models.ai.azure.com/v1", - "apiKey": "" - } - } - ``` - - - -## How to Configure Azure AI Foundry Embeddings Models - -For recommended embeddings models, please refer to our [Model Recommendations page](/customization/models). - - - - ```yaml title="config.yaml" - models: - - name: Text Embedding-3 Large - provider: azure - model: text-embedding-3-large - apiBase: - apiKey: - env: - deployment: - apiType: azure - apiVersion: 2023-07-01-preview - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "provider": "azure", - "model": "text-embedding-3-large", - "apiBase": "", - "deployment": "", - "apiKey": "", - "apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models - } - } - ``` - - - -## 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. - - - **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. - - -## 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 ```yaml title="config.yaml" models: - - name: GPT-4o Azure - model: gpt-4o + - name: + model: provider: azure apiBase: https://just-an-example.openai.azure.com apiKey: env: - apiVersion: 2023-03-15-preview - deployment: gpt-4o-july + apiVersion: + deployment: apiType: azure-openai ``` - + ```json title="config.json" { - "title": "GPT-4o Azure", - "model": "gpt-4o", + "title": "", + "model": "", "provider": "azure", "apiBase": "https://just-an-example.openai.azure.com", - "deployment": "gpt-4o-july", - "apiVersion": "2023-03-15-preview", + "deployment": "", + "apiVersion": "", "apiKey": "", "apiType": "azure-openai" } ``` - + \ No newline at end of file diff --git a/docs/customize/model-providers/top-level/bedrock.mdx b/docs/customize/model-providers/top-level/bedrock.mdx index 4de1f2b54..d4008469f 100644 --- a/docs/customize/model-providers/top-level/bedrock.mdx +++ b/docs/customize/model-providers/top-level/bedrock.mdx @@ -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. + + **Discover Amazon Bedrock models [here](https://hub.continue.dev/amazon)** + -## How to Set Up Amazon Bedrock Chat Models + + Get started with [Amazon Bedrock](https://aws.amazon.com/bedrock/) + -We recommend configuring **Claude 3.7 Sonnet** as your chat model. +## Configuration ```yaml title="config.yaml" models: - - name: Claude 3.7 Sonnet + - name: provider: bedrock - model: us.anthropic.claude-3-7-sonnet-20250219-v1:0 + model: env: region: us-east-1 profile: bedrock @@ -25,14 +28,14 @@ We recommend configuring **Claude 3.7 Sonnet** as your chat model. - chat ``` - + ```json title="config.json" { "models": [ { - "title": "Claude 3.7 Sonnet", + "title": "", "provider": "bedrock", - "model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0", + "model": "", "region": "us-east-1", "profile": "bedrock" } @@ -42,109 +45,9 @@ We recommend configuring **Claude 3.7 Sonnet** as your chat model. -> 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: - - - - ```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 - ``` - - - ```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" - } - ] - } - ``` - - - -## 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. - - - - ```yaml title="config.yaml" - models: - - name: Embeddings Model - provider: bedrock - model: amazon.titan-embed-text-v2:0 - env: - region: us-west-2 - roles: - - embed - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "title": "Embeddings Model", - "provider": "bedrock", - "model": "amazon.titan-embed-text-v2:0", - "region": "us-west-2" - } - } - ``` - - - -## 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`. - - - - ```yaml title="config.yaml" - models: - - name: Bedrock Reranker - provider: bedrock - model: cohere.rerank-v3-5:0 - env: - region: us-west-2 - roles: - - rerank - ``` - - - ```json title="config.json" - { - "reranker": { - "name": "bedrock", - "params": { - "model": "cohere.rerank-v3-5:0", - "region": "us-west-2" - } - } - } - ``` - - + + **Check out a more advanced configuration [here](https://hub.continue.dev/amazon/us-anthropic-claude-sonnet-4-20250514-v1?view=config)** + ## 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: provider: bedrock - model: us.anthropic.claude-3-7-sonnet-20250219-v1:0 + model: defaultCompletionOptions: promptCaching: true ``` @@ -194,9 +85,9 @@ You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication i ```yaml title="config.yaml" models: - - name: Claude 3.7 Sonnet + - name: provider: bedrock - model: us.anthropic.claude-3-7-sonnet-20250219-v1:0 + model: 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 ``` - + ```json title="config.json" { "models": [ { - "title": "Claude 3.7 Sonnet", + "title": "", "provider": "bedrock", - "model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0", + "model": "", "region": "us-east-1", - "accessKeyId": "[YOUR_ACCESS_KEY_ID]", - "secretAccessKey": "[YOUR_SECRET_ACCESS_KEY]" + "accessKeyId": "", + "secretAccessKey": "" } ] } @@ -231,23 +122,23 @@ To setup Bedrock using custom imported models, add the following to your config ```yaml title="config.yaml" models: - - name: AWS Bedrock deepseek-coder-6.7b-instruct + - name: provider: bedrockimport - model: deepseek-coder-6.7b-instruct + model: env: region: us-west-2 profile: bedrock modelArn: arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX ``` - + ```json title="config.json" { "models": [ { - "title": "AWS Bedrock deepseek-coder-6.7b-instruct", + "title": "", "provider": "bedrockimport", - "model": "deepseek-coder-6.7b-instruct", + "model": "", "modelArn": "arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX", "region": "us-west-2", "profile": "bedrock" diff --git a/docs/customize/model-providers/top-level/deepseek.mdx b/docs/customize/model-providers/top-level/deepseek.mdx deleted file mode 100644 index 018ac4186..000000000 --- a/docs/customize/model-providers/top-level/deepseek.mdx +++ /dev/null @@ -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" ---- - - - You can get an API key from the [DeepSeek console](https://www.deepseek.com/). - - -## How to Set Up DeepSeek Chat Models - -We recommend configuring **DeepSeek Chat** as your chat model. - - - - ```yaml title="config.yaml" - models: - - name: DeepSeek Chat - provider: deepseek - model: deepseek-chat - apiKey: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "DeepSeek Chat", - "provider": "deepseek", - "model": "deepseek-chat", - "apiKey": "" - } - ] - } - ``` - - - -## How to Set Up DeepSeek Autocomplete Models - -For recommended autocomplete models, please refer to our [Model Recommendations page](/customization/models). - - - - ```yaml title="config.yaml" - models: - - name: DeepSeek Coder - provider: deepseek - model: deepseek-coder - apiKey: - roles: - - autocomplete - ``` - - - ```json title="config.json" - { - "tabAutocompleteModel": { - "title": "DeepSeek Coder", - "provider": "deepseek", - "model": "deepseek-coder", - "apiKey": "" - } - } - ``` - - - -## 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. diff --git a/docs/customize/model-providers/top-level/gemini.mdx b/docs/customize/model-providers/top-level/gemini.mdx index 36a85ca8b..32c384c67 100644 --- a/docs/customize/model-providers/top-level/gemini.mdx +++ b/docs/customize/model-providers/top-level/gemini.mdx @@ -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" --- + + **Discover Google models [here](https://hub.continue.dev/?q=Gemini)** + + - 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/) -## How to Set Up Gemini Chat Models - -We recommend configuring **Gemini 2.0 Flash** as your chat model. +## Configuration ```yaml title="config.yaml" models: - - name: Gemini 2.0 Flash + - name: provider: gemini - model: gemini-2.0-flash + model: apiKey: ``` - + ```json title="config.json" { "models": [ { - "title": "Gemini 2.0 Flash", + "title": "", "provider": "gemini", - "model": "gemini-2.0-flash", + "model": "", "apiKey": "" } ] @@ -40,43 +40,6 @@ We recommend configuring **Gemini 2.0 Flash** as your chat model. -## 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). - - - - ```yaml title="config.yaml" - models: - - name: Gemini Embeddings - provider: gemini - model: models/text-embedding-004 - apiKey: - roles: - - embed - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "provider": "gemini", - "model": "models/text-embedding-004", - "apiKey": "" - } - } - ``` - - - -## 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. + + **Check out a more advanced configuration [here](https://hub.continue.dev/google/gemini-2.5-pro?view=config)** + \ No newline at end of file diff --git a/docs/customize/model-providers/top-level/inception.mdx b/docs/customize/model-providers/top-level/inception.mdx index 7025d9896..cd1225f7d 100644 --- a/docs/customize/model-providers/top-level/inception.mdx +++ b/docs/customize/model-providers/top-level/inception.mdx @@ -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" --- + + **Discover Inception models [here](https://hub.continue.dev/inceptionlabs)** + + - 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) -## How to Set Up Inception Chat Models - -We recommend configuring **Mercury Coder Small** as your chat model. +## Configuration ```yaml title="config.yaml" models: - - uses: inceptionlabs/mercury-coder-small - with: - INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }} + - name: + provider: inception + model: + apiKey: ``` - + ```json title="config.json" { "models": [ { - "title": "Mercury Coder Small", + "title": "", "provider": "inception", - "model": "mercury-coder-small", + "model": "", "apiKey": "" } ] @@ -39,43 +40,6 @@ We recommend configuring **Mercury Coder Small** as your chat model. -## How to Set Up Inception Autocomplete Models - -We also recommend configuring **Mercury Coder Small** as your autocomplete model. - - - - ```yaml title="config.yaml" - models: - - uses: inceptionlabs/mercury-coder-small - with: - INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }} - ``` - - - ```json title="config.json" - { - "tabAutocompleteModel": [ - { - "title": "Mercury Coder Small", - "provider": "inception", - "model": "mercury-coder-small", - "apiKey": "" - } - ] - } - ``` - - - -## 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. + + **Check out a more advanced configuration [here](https://hub.continue.dev/inceptionlabs/mercury-coder?view=config)** + diff --git a/docs/customize/model-providers/top-level/lmstudio.mdx b/docs/customize/model-providers/top-level/lmstudio.mdx new file mode 100644 index 000000000..06d7fa77f --- /dev/null +++ b/docs/customize/model-providers/top-level/lmstudio.mdx @@ -0,0 +1,47 @@ +--- +title: "LM Studio" +--- + + + **Discover LM Studio models [here](https://hub.continue.dev/lmstudio)** + + + + Get started with [LM Studio](https://lmstudio.ai/download) + + +## Configuration + + + + ```yaml title="config.yaml" + models: + - name: + provider: lmstudio + model: + apiBase: http:///v1 # if running a remote instance of LM Studio + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "lmstudio", + "model": "", + "apiBase": "http:///v1" // if running a remote instance of LM Studio + } + ] + } + ``` + + + + + The default `apiBase` is `http://localhost:1234/v1` + + + + **Check out a more advanced configuration [here](https://hub.continue.dev/lmstudio/qwen-qwen3-coder-30b?view=config)** + \ No newline at end of file diff --git a/docs/customize/model-providers/top-level/mistral.mdx b/docs/customize/model-providers/top-level/mistral.mdx deleted file mode 100644 index 6b3619bc8..000000000 --- a/docs/customize/model-providers/top-level/mistral.mdx +++ /dev/null @@ -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" ---- - - - 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`. - - -## How to Set Up Mistral Chat Models - -We recommend configuring **Mistral Large** as your chat model. - - - - ```yaml title="config.yaml" - models: - - name: Mistral Large - provider: mistral - model: mistral-large-latest - apiKey: - roles: - - chat - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Mistral Large", - "provider": "mistral", - "model": "mistral-large-latest", - "apiKey": "" - } - ] - } - ``` - - - -## How to Set Up Mistral Autocomplete Models - -We recommend configuring **Codestral** as your autocomplete model. - - - - ```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 - ``` - - - ```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 - } - } - ``` - - - -## How to Configure Mistral Embeddings Models - -We recommend configuring **Mistral Embed** as your embeddings model. - - - - ```yaml title="config.yaml" - models: - - name: Mistral Embed - provider: mistral - model: mistral-embed - apiKey: - apiBase: https://api.mistral.ai/v1 - roles: - - embed - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "provider": "mistral", - "model": "mistral-embed", - "apiKey": "", - "apiBase": "https://api.mistral.ai/v1" - } - } - ``` - - - -## 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. diff --git a/docs/customize/model-providers/top-level/ollama.mdx b/docs/customize/model-providers/top-level/ollama.mdx index cd9a0b45f..77cd6757a 100644 --- a/docs/customize/model-providers/top-level/ollama.mdx +++ b/docs/customize/model-providers/top-level/ollama.mdx @@ -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. + + **Discover Ollama models [here](https://hub.continue.dev/lmstudio)** + -## How to Set Up Ollama Chat Models + + Get started with [Ollama](https://ollama.com/download) + -We recommend configuring **Llama3.1 8B** as your chat model. +## Configuration ```yaml title="config.yaml" models: - - name: Llama3.1 8B + - name: provider: ollama - model: llama3.1:8b + model: + apiBase: http://:11434 # if running a remote instance of Ollama ``` - + ```json title="config.json" { "models": [ { - "title": "Llama3.1 8B", + "title": "", "provider": "ollama", - "model": "llama3.1:8b" + "model": "" + "apiBase": "http://:11434" // if running a remote instance of Ollama } ] } @@ -35,96 +40,9 @@ We recommend configuring **Llama3.1 8B** as your chat model. -## How to Configure Ollama Autocomplete Models - -We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model. - - - - ```yaml title="config.yaml" - models: - - name: Qwen2.5-Coder 1.5B - provider: ollama - model: qwen2.5-coder:1.5b-base - roles: - - autocomplete - ``` - - - ```json title="config.json" - { - "tabAutocompleteModel": { - "title": "Qwen2.5-Coder 1.5B", - "provider": "ollama", - "model": "qwen2.5-coder:1.5b-base" - } - } - ``` - - - -## How to Set Up Ollama Embeddings Models - -For recommended embeddings models, please refer to our [Model Recommendations page](/customization/models). - - - - ```yaml title="config.yaml" - models: - - name: Nomic Embed Text - provider: ollama - model: nomic-embed-text - roles: - - embed - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "provider": "ollama", - "model": "nomic-embed-text" - } - } - ``` - - - -## 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: - - - - ```yaml title="config.yaml" - models: - - name: Llama3.1 8B - provider: ollama - model: llama3.1:8b - apiBase: http://:11434 - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama3.1 8B", - "provider": "ollama", - "model": "llama3.1:8b", - "apiBase": "http://:11434" - } - ] - } - ``` - - + + **Check out a more advanced configuration [here](https://hub.continue.dev/ollama/qwen3-coder-30b?view=config)** + ## How to Configure Model Capabilities in Ollama @@ -134,25 +52,25 @@ Ollama models usually have their capabilities auto-detected correctly. However, ```yaml title="config.yaml" models: - - name: Custom Vision Model + - name: provider: ollama - model: my-custom-llava + model: capabilities: - tool_use # Enable if your model supports function calling - - image_input # Enable for vision models like llava + - image_input # Enable for vision models ``` - + ```json title="config.json" { "models": [ { - "title": "Custom Vision Model", + "title": "", "provider": "ollama", - "model": "my-custom-llava", + "model": "", "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, - 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 diff --git a/docs/customize/model-providers/top-level/openai.mdx b/docs/customize/model-providers/top-level/openai.mdx index 96bd5a9ad..d57b8cd3c 100644 --- a/docs/customize/model-providers/top-level/openai.mdx +++ b/docs/customize/model-providers/top-level/openai.mdx @@ -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" --- + + **Discover OpenAI models [here](https://hub.continue.dev/openai)** + + - 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) -## How to Set Up OpenAI Chat Models - -We recommend configuring **GPT-4o** as your chat model. +## Configuration ```yaml title="config.yaml" models: - - name: GPT-4o + - name: provider: openai - model: gpt-4o + model: apiKey: ``` - + ```json title="config.json" { "models": [ { - "title": "GPT-4o", + "title": "", "provider": "openai", - "model": "gpt-4o", + "model": "", "apiKey": "" } ] @@ -40,50 +40,13 @@ We recommend configuring **GPT-4o** as your chat model. -## OpenAI Autocomplete Model Availability + + **Check out a more advanced configuration [here](https://hub.continue.dev/openai/gpt-5?view=config)** + -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. - - - - ```yaml title="config.yaml" - models: - - name: OpenAI Embeddings - provider: openai - model: text-embedding-3-large - apiKey: - roles: - - embed - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "provider": "openai", - "model": "text-embedding-3-large", - "apiKey": "" - } - } - ``` - - - -## 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: ```yaml title="config.yaml" models: - - name: OpenAI-compatible server / API + - name: provider: openai - model: MODEL_NAME + model: apiBase: http://localhost:8000/v1 apiKey: ``` - + ```json title="config.json" { "models": [ { - "title": "OpenAI-compatible server / API", + "title": "", "provider": "openai", - "model": "MODEL_NAME", + "model": "", "apiKey": "", "apiBase": "http://localhost:8000/v1" } @@ -139,21 +95,21 @@ To force usage of `chat/completions` instead of `completions` endpoint you can s ```yaml title="config.yaml" models: - - name: OpenAI-compatible server / API + - name: provider: openai - model: MODEL_NAME + model: > apiBase: http://localhost:8000/v1 useLegacyCompletionsEndpoint: true ``` - + ```json title="config.json" { "models": [ { - "title": "OpenAI-compatible server / API", + "title": "", "provider": "openai", - "model": "MODEL_NAME", + "model": "", "apiBase": "http://localhost:8000/v1", "useLegacyCompletionsEndpoint": true } diff --git a/docs/customize/model-providers/top-level/openrouter.mdx b/docs/customize/model-providers/top-level/openrouter.mdx new file mode 100644 index 000000000..8f9727d89 --- /dev/null +++ b/docs/customize/model-providers/top-level/openrouter.mdx @@ -0,0 +1,132 @@ +--- +title: "How to Configure OpenRouter with Continue" +sidebarTitle: "OpenRouter" +--- + + + **Discover Inception models [here](https://hub.continue.dev/inceptionlabs)** + + + + Get an API key from [OpenRouter](https://openrouter.ai/keys) + + + + + ```yaml title="config.yaml" + models: + - name: + provider: openrouter + model: + apiBase: https://openrouter.ai/api/v1 + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "openrouter", + "model": "", + "apiBase": "https://openrouter.ai/api/v1", + "apiKey": "" + } + ] + } + ``` + + + + + **Check out a more advanced configuration [here](https://hub.continue.dev/openrouter/qwen3-coder?view=config)** + + +## 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):) + + + + ```yaml title="config.yaml" + models: + - name: + provider: openrouter + model: + requestOptions: + extraBodyProperties: + transforms: [] + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "openrouter", + "model": "", + "requestOptions": { + "extraBodyProperties": { + "transforms": [] + } + } + } + ] + } + ``` + + + +## Model Capabilities + +OpenRouter models may require explicit capability configuration because the proxy doesn't always preserve the function calling support of the original model. + + + 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. + + +If you're experiencing issues with Agent mode or tools not working, you can add the capabilities field: + + + + ```yaml title="config.yaml" + models: + - name: + provider: openrouter + model: + apiBase: https://openrouter.ai/api/v1 + apiKey: + capabilities: + - tool_use # Enable function calling for Agent mode + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "", + "provider": "openrouter", + "model": "", + "apiBase": "https://openrouter.ai/api/v1", + "apiKey": "", + "capabilities": { + "tools": true, // Enable function calling for Agent mode + } + } + ] + } + ``` + + + + + Not all models support function calling. Check the [OpenRouter models page](https://openrouter.ai/models) for specific model capabilities. + diff --git a/docs/customize/model-providers/top-level/vertexai.mdx b/docs/customize/model-providers/top-level/vertexai.mdx index 2e32f7deb..0a5892a67 100644 --- a/docs/customize/model-providers/top-level/vertexai.mdx +++ b/docs/customize/model-providers/top-level/vertexai.mdx @@ -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" --- - 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) -## How to Set Up Vertex AI Chat Models - -We recommend configuring **Claude 3.5 Sonnet** as your chat model. +## Configuration ```yaml title="config.yaml" models: - - name: Claude 3.5 Sonnet + - name: provider: vertexai - model: claude-3-5-sonnet-20240620 + model: env: projectId: region: us-east5 ``` - + ```json title="config.json" { "models": [ { - "title": "Claude 3.5 Sonnet", + "title": "", "provider": "vertexai", - "model": "claude-3-5-sonnet-20240620", + "model": "", "projectId": "[PROJECT_ID]", "region": "us-east5" } @@ -45,104 +40,32 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model. -## How to Set Up Vertex AI Autocomplete Models - -We recommend configuring **Codestral** or **code-gecko** as your autocomplete model. - - - - ```yaml title="config.yaml" - models: - - name: Codestral (Vertex AI) - provider: vertexai - model: codestral - roles: - - autocomplete - env: - projectId: - region: us-central1 - - ``` - - - ```json title="config.json" - { - "tabAutocompleteModel": { - "title": "Codestral (Vertex AI)", - "provider": "vertexai", - "model": "codestral", - "projectId": "[PROJECT_ID]", - "region": "us-central1" - } - } - ``` - - - -## How to Configure Vertex AI Embeddings Models - -We recommend configuring **text-embedding-004** as your embeddings model. - - - - ```yaml title="config.yaml" - models: - - name: Text Embedding-004 - provider: vertexai - model: text-embedding-004 - env: - projectId: - region: us-central1 - roles: - - embed - ``` - - - ```json title="config.json" - { - "embeddingsProvider": { - "provider": "vertexai", - "model": "text-embedding-004", - "projectId": "[PROJECT_ID]", - "region": "us-central1" - } - } - ``` - - - -## 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. - - + + ```yaml title="config.yaml" models: - - name: Gemini 2.5 Flash - VertexAI + - name: provider: vertexai - model: gemini-2.5-flash - apiKey: ${{ secrets.GOOGLE_CLOUD_API_KEY }} + model: + apiKey: ``` - - + + ```json title="config.json" { "models": [ { - "title": "Gemini 2.5 Flash - VertexAI", + "title": "", "provider": "vertexai", - "model": "gemini-2.5-flash", - "apiKey": "[YOUR_GOOGLE_CLOUD_API_KEY]", + "model": "", + "apiKey": "", } ] } ``` - - + + \ No newline at end of file diff --git a/docs/customize/model-providers/top-level/xAI.mdx b/docs/customize/model-providers/top-level/xAI.mdx deleted file mode 100644 index f77638d25..000000000 --- a/docs/customize/model-providers/top-level/xAI.mdx +++ /dev/null @@ -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" ---- - - - You can get an API key from the [xAI console](https://console.x.ai/) - - -## 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). - - - - Add the [xAI Grok 4 model block](https://hub.continue.dev/xai/grok-4) on the hub. - - - ```yaml title="config.yaml" - models: - - name: Grok 4 - provider: xAI - model: grok-4 - apiKey: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Grok 4", - "provider": "xAI", - "model": "grok-4", - "apiKey": "" - } - ] - } - ``` - - - -## 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. diff --git a/docs/customize/model-roles/chat.mdx b/docs/customize/model-roles/chat.mdx index dd743aa0c..02e940f8b 100644 --- a/docs/customize/model-roles/chat.mdx +++ b/docs/customize/model-roles/chat.mdx @@ -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. @@ -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)). @@ -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)). {/* HUB_TODO nonexistent blocks */} diff --git a/docs/customize/model-roles/embeddings.mdx b/docs/customize/model-roles/embeddings.mdx index fef5550c3..a81bb2322 100644 --- a/docs/customize/model-roles/embeddings.mdx +++ b/docs/customize/model-roles/embeddings.mdx @@ -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. diff --git a/docs/customize/overview.mdx b/docs/customize/overview.mdx index 4d9061799..f46d43e03 100644 --- a/docs/customize/overview.mdx +++ b/docs/customize/overview.mdx @@ -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. \ No newline at end of file diff --git a/docs/customize/settings.mdx b/docs/customize/settings.mdx deleted file mode 100644 index 2bb568760..000000000 --- a/docs/customize/settings.mdx +++ /dev/null @@ -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. - -![settings](/images/settings-header.png) - -Which takes you to this page (select the "Settings" tab): - -![User Settings Page](/images/settings-page.png) - -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: - - - **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. - diff --git a/docs/customize/telemetry.mdx b/docs/customize/telemetry.mdx index 8522cd447..013917322 100644 --- a/docs/customize/telemetry.mdx +++ b/docs/customize/telemetry.mdx @@ -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). diff --git a/docs/docs.json b/docs/docs.json index 7819059b5..1d6eb5b42 100644 --- a/docs/docs.json +++ b/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", diff --git a/docs/features/agent/model-setup.mdx b/docs/features/agent/model-setup.mdx index 672f1e812..e31fd2589 100644 --- a/docs/features/agent/model-setup.mdx +++ b/docs/features/agent/model-setup.mdx @@ -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). \ No newline at end of file diff --git a/docs/features/chat/context-selection.mdx b/docs/features/chat/context-selection.mdx index b9354ac5a..4c5dc9cc8 100644 --- a/docs/features/chat/context-selection.mdx +++ b/docs/features/chat/context-selection.mdx @@ -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). diff --git a/docs/features/chat/how-it-works.mdx b/docs/features/chat/how-it-works.mdx index d807ca5c4..381b49b7c 100644 --- a/docs/features/chat/how-it-works.mdx +++ b/docs/features/chat/how-it-works.mdx @@ -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) --- diff --git a/docs/features/chat/how-to-customize.mdx b/docs/features/chat/how-to-customize.mdx index cf7fe0b62..7017a5d10 100644 --- a/docs/features/chat/how-to-customize.mdx +++ b/docs/features/chat/how-to-customize.mdx @@ -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 \ No newline at end of file diff --git a/docs/features/chat/model-setup.mdx b/docs/features/chat/model-setup.mdx index 409b1b7a0..53ddc73c0 100644 --- a/docs/features/chat/model-setup.mdx +++ b/docs/features/chat/model-setup.mdx @@ -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). -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). \ No newline at end of file diff --git a/docs/features/chat/quick-start.mdx b/docs/features/chat/quick-start.mdx index 7871cef90..074efe92a 100644 --- a/docs/features/chat/quick-start.mdx +++ b/docs/features/chat/quick-start.mdx @@ -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 diff --git a/docs/guides/build-your-own-context-provider.mdx b/docs/guides/build-your-own-context-provider.mdx deleted file mode 100644 index 84a47fb2c..000000000 --- a/docs/guides/build-your-own-context-provider.mdx +++ /dev/null @@ -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; workspacePath?: string; // Only provided if the server is local.} -``` - - - 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. - - -## 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; loadSubmenuItems?: ( args: LoadSubmenuItemsArgs, ) => Promise;} -``` - -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 => { 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 => { // '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 => { 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 ` 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 { return [ { name: "Custom", description: "Custom description", content: "Custom content", }, ]; } async loadSubmenuItems( args: LoadSubmenuItemsArgs, ): Promise { 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! - -![alt text](/images/guides/images/image-8befb5162b7779402f70ff42bb589edb.png) diff --git a/docs/guides/codebase-documentation-awareness.mdx b/docs/guides/codebase-documentation-awareness.mdx new file mode 100644 index 000000000..055055360 --- /dev/null +++ b/docs/guides/codebase-documentation-awareness.mdx @@ -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 +``` + + + Place rules files at different levels of your project hierarchy to scope when they trigger + + +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 \ No newline at end of file diff --git a/docs/guides/custom-code-rag.mdx b/docs/guides/custom-code-rag.mdx index 462bc81ef..61ded639d 100644 --- a/docs/guides/custom-code-rag.mdx +++ b/docs/guides/custom-code-rag.mdx @@ -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}" } } ] diff --git a/docs/guides/llama3.1.mdx b/docs/guides/llama3.1.mdx deleted file mode 100644 index c39071a2c..000000000 --- a/docs/guides/llama3.1.mdx +++ /dev/null @@ -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 - - - 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. - - -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: -``` - -config.json - -```json -{ - "models": [ - { - "title": "Llama 3.3 70b Versatile", - "provider": "groq", - "model": "llama-3.3-70b-versatile", - "apiKey": "" - } - ] -} -``` - -## 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: -``` - -config.json - -```json -{ - "models": [ - { - "title": "Llama 3.1 405b", - "provider": "together", - "model": "llama3.1-405b", - "apiKey": "" - } - ] -} -``` - -## 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: -``` - -config.json - -```json -{ - "models": [ - { - "title": "Llama 3.1 405b", - "provider": "replicate", - "model": "llama3.1-405b", - "apiKey": "" - } - ] -} -``` - -## 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: -``` - -config.json - -```json -{ - "models": [ - { - "title": "SambaNova Llama 3.1 405B", - "provider": "sambanova", - "model": "llama3.1-405b", - "apiKey": "" - } - ] -} -``` - -## How to Use Llama 3.1 and 3.3 with Cerebras Inference - - - 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. - - -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: -``` - -config.json - -```json -{ - "models": [ - { - "title": "Cerebras Llama 3.3 70B", - "provider": "cerebras", - "model": "llama3.3-70b", - "apiKey": "" - } - ] -} -``` diff --git a/docs/guides/overview.mdx b/docs/guides/overview.mdx index b62df80c4..c1aff9224 100644 --- a/docs/guides/overview.mdx +++ b/docs/guides/overview.mdx @@ -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 diff --git a/docs/guides/plan-mode-guide.mdx b/docs/guides/plan-mode-guide.mdx index fdaca3db3..97c2a1b5e 100644 --- a/docs/guides/plan-mode-guide.mdx +++ b/docs/guides/plan-mode-guide.mdx @@ -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 diff --git a/docs/guides/running-continue-without-internet.mdx b/docs/guides/running-continue-without-internet.mdx index 6f3da06ff..9217d66da 100644 --- a/docs/guides/running-continue-without-internet.mdx +++ b/docs/guides/running-continue-without-internet.mdx @@ -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. diff --git a/docs/guides/set-up-codestral.mdx b/docs/guides/set-up-codestral.mdx deleted file mode 100644 index eb700ad3a..000000000 --- a/docs/guides/set-up-codestral.mdx +++ /dev/null @@ -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: - apiBase: https://codestral.mistral.ai/v1 - roles: - - chat - - autocomplete -``` - -config.json - -```json -{ - "models": [ - { - "title": "Codestral", - "provider": "mistral", - "model": "codestral-latest", - "apiKey": "", - "apiBase": "https://codestral.mistral.ai/v1" - } - ], - "tabAutocompleteModel": [ - { - "title": "Codestral", - "provider": "mistral", - "model": "codestral-latest", - "apiKey": "", - "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) diff --git a/docs/hub/blocks/block-types.mdx b/docs/hub/blocks/block-types.mdx index bbcb34f02..f544885f9 100644 --- a/docs/hub/blocks/block-types.mdx +++ b/docs/hub/blocks/block-types.mdx @@ -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`. diff --git a/docs/hub/blocks/bundles.mdx b/docs/hub/blocks/bundles.mdx deleted file mode 100644 index 681c5c1d7..000000000 --- a/docs/hub/blocks/bundles.mdx +++ /dev/null @@ -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. - -![New bundle button](/images/hub/blocks/images/bundle-new-button-4e6ae842500100fffeff8b39f74728f0.png) - -Choose a name, slug, description, and visibility for your bundle. - -Then, search blocks using the "Search blocks" input and add them to your bundle. - -![Create bundle page](/images/hub/blocks/images/bundle-create-page-51dc9d72652c6675edb2e2a085db16a1.png) - -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. diff --git a/docs/hub/blocks/intro.mdx b/docs/hub/blocks/intro.mdx index d94f45c77..d4cc1c25c 100644 --- a/docs/hub/blocks/intro.mdx +++ b/docs/hub/blocks/intro.mdx @@ -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. diff --git a/docs/hub/introduction.mdx b/docs/hub/introduction.mdx index f10d567cd..29061ec2a 100644 --- a/docs/hub/introduction.mdx +++ b/docs/hub/introduction.mdx @@ -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. \ No newline at end of file diff --git a/docs/reference.mdx b/docs/reference.mdx index 25f4d7e89..e67d5dad9 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -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 diff --git a/docs/customize/context/codebase.mdx b/docs/reference/deprecated-codebase.mdx similarity index 78% rename from docs/customize/context/codebase.mdx rename to docs/reference/deprecated-codebase.mdx index 13b147dd0..e17d13ad1 100644 --- a/docs/customize/context/codebase.mdx +++ b/docs/reference/deprecated-codebase.mdx @@ -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 --- + + **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. + + +## 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`. **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). ## 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 cmd/ctrl + shift + p + "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 cmd/ctrl + shift + p + "Reload Window". \ No newline at end of file diff --git a/docs/reference/deprecated-context-providers.mdx b/docs/reference/deprecated-context-providers.mdx new file mode 100644 index 000000000..bf86f3c43 --- /dev/null +++ b/docs/reference/deprecated-context-providers.mdx @@ -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 +--- + + +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. + + +## 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. + + + + ```yaml config.yaml + context: + - provider: greptile + params: + greptileToken: "..." + githubToken: "..." + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "greptile", + "params": { "GreptileToken": "...", "GithubToken": "..." } + } + ] + } +``` + + + +### `@Commits` + +Reference specific git commit metadata and diff or all of the recent commits. + + + + ```yaml config.yaml + context: + - provider: commit + params: + Depth: 50 + LastXCommitsDepth: 10 + ``` + + + ```json config.json + { + "contextProviders": [ + { "name": "commit", "params": { "Depth": 50, "LastXCommitsDepth": 10 } } + ] + } + ``` + + + +The depth is how many commits will be loaded into the submenu, defaults to 50. The LastXCommitsDepth is how many recent commits will be included, defaults to 10. + +### `@Discord` + +Reference the messages in a Discord channel. + + + + ```yaml config.yaml + context: + - provider: discord + params: + discordKey: "bot token" + guildId: "1234567890" + channels: + - id: "123456" + name: "example-channel" + - id: "678901" + name: "example-channel-2" + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "discord", + "params": { + "discordKey": "bot token", + "guildId": "1234567890", + "channels": [ + { "id": "123456", "name": "example-channel" }, + { "id": "678901", "name": "example-channel-2" } + ] + } + } + ] + } +``` + + + +Make sure to include your own [Bot Token](https://discord.com/developers/applications), and join it to your related server . If you want more granular control over which channels are searched, you can specify a list of channel IDs to search in. If you don't want to specify any channels, just include the guild id(Server ID) and all channels will be included. The provider only reads text channels. + +### `@Jira` + +Reference the conversation in a Jira issue. + + + + ```yaml config.yaml + context: + - provider: jira + params: + domain: company.atlassian.net + token: ATATT... + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "jira", + "params": { "domain": "company.atlassian.net", "token": "ATATT..." } + } + ] + } +``` + + + +Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email. + +#### 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. + + + + ```yaml config.yaml + context: + - provider: jira + params: + apiVersion: "2" + ``` + + + ```json config.json + { "contextProviders": [{ "name": "jira", "params": { "apiVersion": "2" } }] } + ``` + + + +#### 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. + + + + ```yaml config.yaml + context: + - provider: gitlab-mr + params: + token: "..." + ``` + + + ```json config.json + { "contextProviders": [{ "name": "gitlab-mr", "params": { "token": "..." } }] } + ``` + + + +You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope. + +#### 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`. + + + + ```yaml config.yaml + context: + - provider: gitlab-mr + params: + token: "..." + domain: "gitlab.example.com" + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "gitlab-mr", + "params": { "token": "...", "domain": "gitlab.example.com" } + } + ] + } +``` + + + +#### 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. + + + + ```yaml config.yaml + context: + - provider: google + params: + serperApiKey: + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "google", + "params": { "serperApiKey": "" } + } + ] + } +``` + + + +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. + + + + ```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 + ``` + + + ```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" } + } + ] + } + } + ] + } +``` + + + +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. + + + + ```yaml config.yaml + context: + - provider: issue + params: + repos: + - owner: continuedev + repo: continue + githubToken: ghp_xxx + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "issue", + "params": { + "repos": [{ "owner": "continuedev", "repo": "continue" }], + "githubToken": "ghp_xxx" + } + } + ] + } +``` + + + +Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited. + +### `@Url` + +Reference the markdown converted contents of a given URL. + + + + ```yaml config.yaml + context: + - provider: url + ``` + + + ```json config.json + { "contextProviders": [{ "name": "url" }] } + ``` + + + +### `@Search` + +Reference the results of codebase search, just like the results you would get from VS Code search. + + + + ```yaml config.yaml + context: + - provider: search + params: + maxResults: 100 # optional, defaults to 200 + ``` + + + ```json config.json + { + "contextProviders": [ + { + "name": "search", + "params": { + "maxResults": 100 // optional, defaults to 200 + } + } + ] + } + ``` + + + +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). + + + + ```yaml config.yaml + context: + - provider: web + params: + n: 5 + ``` + + + ```json config.json + { "contextProviders": [{ "name": "web", "params": { "n": 5 } }] } + ``` + + diff --git a/docs/customize/context/documentation.mdx b/docs/reference/deprecated-docs.mdx similarity index 85% rename from docs/customize/context/documentation.mdx rename to docs/reference/deprecated-docs.mdx index 70bd47e02..c972db7fa 100644 --- a/docs/customize/context/documentation.mdx +++ b/docs/reference/deprecated-docs.mdx @@ -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 --- + + **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. + + +## 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`. @@ -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. @@ -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). @@ -405,4 +408,4 @@ The following configuration example includes: -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). \ No newline at end of file diff --git a/docs/reference/json-reference.mdx b/docs/reference/json-reference.mdx index fa57ed5a8..5960f07f8 100644 --- a/docs/reference/json-reference.mdx +++ b/docs/reference/json-reference.mdx @@ -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. + diff --git a/docs/reference/yaml-migration.mdx b/docs/reference/yaml-migration.mdx index 4b214f2d2..4abcaf154 100644 --- a/docs/reference/yaml-migration.mdx +++ b/docs/reference/yaml-migration.mdx @@ -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. diff --git a/docs/telemetry.mdx b/docs/telemetry.mdx index b44bd7e00..dba2dc6d5 100644 --- a/docs/telemetry.mdx +++ b/docs/telemetry.mdx @@ -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).