From eed77fbcb59ddd9312b2b6e903ed5f241eb49d6b Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 17 Jan 2025 17:23:39 -0800 Subject: [PATCH] clean up some edges with config.json mentions, finish provider docs --- docs/docs/actions/how-it-works.mdx | 2 +- docs/docs/actions/how-to-customize.md | 10 - docs/docs/actions/how-to-use-it.md | 2 +- docs/docs/autocomplete/how-it-works.md | 4 +- docs/docs/autocomplete/how-to-customize.md | 2 +- docs/docs/autocomplete/model-setup.mdx | 6 +- docs/docs/chat/context-selection.md | 2 +- docs/docs/chat/how-it-works.md | 4 +- docs/docs/chat/how-to-customize.md | 6 +- docs/docs/chat/model-setup.mdx | 92 +++---- docs/docs/customize/context-providers.mdx | 10 +- .../customize/deep-dives/autocomplete.mdx | 4 +- docs/docs/customize/deep-dives/codebase.mdx | 4 +- .../customize/deep-dives/configuration.md | 31 ++- docs/docs/customize/deep-dives/docs.md | 2 +- .../model-providers/more/SambaNova.mdx | 35 ++- .../model-providers/more/asksage.mdx | 70 +++--- .../model-providers/more/cerebras.mdx | 35 ++- .../model-providers/more/cloudflare.mdx | 99 +++++--- .../customize/model-providers/more/cohere.mdx | 99 +++++--- .../model-providers/more/deepinfra.mdx | 35 ++- .../model-providers/more/flowise.mdx | 35 ++- .../model-providers/more/free-trial.mdx | 4 +- .../model-providers/more/function-network.mdx | 101 +++++--- .../customize/model-providers/more/groq.mdx | 37 ++- .../more/huggingfaceinferenceapi.mdx | 2 +- .../model-providers/more/ipex_llm.mdx | 69 ++++-- .../customize/model-providers/more/kindo.mdx | 74 ++++-- .../model-providers/more/llamacpp.mdx | 35 ++- .../model-providers/more/llamafile.mdx | 32 ++- .../model-providers/more/lmstudio.mdx | 88 +++++-- .../model-providers/more/moonshot.mdx | 84 ++++--- .../customize/model-providers/more/msty.mdx | 74 ++++-- .../customize/model-providers/more/nebius.mdx | 66 +++-- .../customize/model-providers/more/novita.mdx | 35 ++- .../customize/model-providers/more/nvidia.mdx | 68 ++++-- .../model-providers/more/openrouter.mdx | 79 ++++-- .../model-providers/more/replicatellm.mdx | 35 ++- .../model-providers/more/sagemaker.mdx | 48 ++-- .../model-providers/more/scaleway.mdx | 66 +++-- .../model-providers/more/siliconflow.mdx | 78 ++++-- .../model-providers/more/textgenwebui.mdx | 37 ++- .../model-providers/more/together.mdx | 2 +- .../customize/model-providers/more/vllm.mdx | 103 +++++--- .../model-providers/more/watsonx.mdx | 231 ++++++++++++------ .../model-providers/top-level/anthropic.mdx | 64 +++-- .../model-providers/top-level/azure.mdx | 143 +++++++---- .../model-providers/top-level/bedrock.mdx | 2 - .../model-providers/top-level/deepseek.mdx | 6 +- .../model-providers/top-level/gemini.mdx | 8 +- .../model-providers/top-level/mistral.mdx | 6 +- .../model-providers/top-level/ollama.mdx | 4 +- .../model-providers/top-level/openai.mdx | 12 +- .../model-providers/top-level/vertexai.mdx | 8 +- .../model-providers/top-level/xAI.mdx | 8 +- .../customize/model-types/autocomplete.md | 4 +- docs/docs/customize/model-types/chat.md | 6 +- .../docs/customize/model-types/embeddings.mdx | 107 +++++--- docs/docs/customize/model-types/reranking.mdx | 8 +- docs/docs/customize/overview.md | 28 +-- docs/docs/customize/slash-commands.mdx | 2 +- docs/docs/customize/tools.mdx | 2 +- .../build-your-own-context-provider.md | 6 +- ...custom-code-rag.md => custom-code-rag.mdx} | 46 +++- .../tutorials/how-to-self-host-a-model.md | 76 ------ .../tutorials/how-to-self-host-a-model.mdx | 118 +++++++++ docs/docs/customize/tutorials/llama3.1.md | 134 ---------- docs/docs/customize/tutorials/llama3.1.mdx | 202 +++++++++++++++ .../running-continue-without-internet.md | 2 +- ...t-up-codestral.md => set-up-codestral.mdx} | 46 ++-- docs/docs/edit/how-it-works.md | 2 +- docs/docs/edit/how-to-customize.mdx | 2 +- docs/docs/edit/model-setup.md | 2 +- docs/docs/json-reference.md | 4 +- docs/docs/reference.md | 2 +- docs/docs/telemetry.md | 16 +- docs/docs/troubleshooting.mdx | 2 +- docs/docs/yaml-migration.md | 20 +- 78 files changed, 2007 insertions(+), 1128 deletions(-) rename docs/docs/customize/tutorials/{custom-code-rag.md => custom-code-rag.mdx} (86%) delete mode 100644 docs/docs/customize/tutorials/how-to-self-host-a-model.md create mode 100644 docs/docs/customize/tutorials/how-to-self-host-a-model.mdx delete mode 100644 docs/docs/customize/tutorials/llama3.1.md create mode 100644 docs/docs/customize/tutorials/llama3.1.mdx rename docs/docs/customize/tutorials/{set-up-codestral.md => set-up-codestral.mdx} (59%) diff --git a/docs/docs/actions/how-it-works.mdx b/docs/docs/actions/how-it-works.mdx index 49d2e8db0..afb1b2396 100644 --- a/docs/docs/actions/how-it-works.mdx +++ b/docs/docs/actions/how-it-works.mdx @@ -9,4 +9,4 @@ While many Actions are based on templated prompts and can be customized with .pr Actions that generate inline diffs, like “/edit”, “/comment”, or right click actions, use the same prompt and response processing logic as [Edit](edit/how-it-works). -To learn how other slash commands work, see the full reference [here](../customize/slash-commands). +To learn how other slash commands work, see the full reference [here](../customize/slash-commands.mdx). diff --git a/docs/docs/actions/how-to-customize.md b/docs/docs/actions/how-to-customize.md index 0cd40903a..5bf2d496d 100644 --- a/docs/docs/actions/how-to-customize.md +++ b/docs/docs/actions/how-to-customize.md @@ -18,11 +18,6 @@ There are two ways to add custom slash commands: ### Custom Slash Commands with `config.ts` - - - If you want to go a step further than writing custom commands with natural language, you can write a custom function that returns the response. This requires using `config.ts` instead of `config.json`. To do this, push a new `SlashCommand` object to the `slashCommands` list. This object contains "name", the name that you will type to invoke the slash command, "description", the description seen in the dropdown menu, and "run". The `run` function is any async generator that should yield strings as you want them to be streamed to the UI. As an argument to the function, you have access to a `ContinueSDK` object with utilities such as access to certain information/actions within the IDE, the current language model, and a few other utilities. For example, here is a slash command that generates a commit message: @@ -51,11 +46,6 @@ export function modifyConfig(config: Config): Config { } ``` - - - ## Other custom actions Currently the other action triggers are not open for configuration, but we plan to allow this via .prompt files in the future. - - diff --git a/docs/docs/actions/how-to-use-it.md b/docs/docs/actions/how-to-use-it.md index 80f057453..018a7c941 100644 --- a/docs/docs/actions/how-to-use-it.md +++ b/docs/docs/actions/how-to-use-it.md @@ -18,7 +18,7 @@ The most common way to invoke an action is with a slash command. These are short ![slash-commands](/img/slash-commands.png) -A few of the most useful slash commands are available by default, like “/edit”, “/comment”, and “/share”, but Continue has a large built-in library of other options. To enable these, learn more [here](../customize/slash-commands.md). +A few of the most useful slash commands are available by default, like “/edit”, “/comment”, and “/share”, but Continue has a large built-in library of other options. To enable these, learn more [here](../customize/slash-commands.mdx). ### Prompt files diff --git a/docs/docs/autocomplete/how-it-works.md b/docs/docs/autocomplete/how-it-works.md index 9d87819b3..c97b71c03 100644 --- a/docs/docs/autocomplete/how-it-works.md +++ b/docs/docs/autocomplete/how-it-works.md @@ -16,7 +16,7 @@ In order to display suggestions quickly, without sending too many requests, we d ## Context -As explained on the [context selection](context-selection.md) page, Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt. +As explained on the [context selection](./context-selection.md) page, Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt. ## Filtering @@ -28,4 +28,4 @@ Language models aren't perfect, but can be made much closer by adjusting their o We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition. -You can learn more about how it works in the [Autocomplete deep dive](../customize/deep-dives/autocomplete.md). +You can learn more about how it works in the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx). diff --git a/docs/docs/autocomplete/how-to-customize.md b/docs/docs/autocomplete/how-to-customize.md index 317b09775..8b0fd8d96 100644 --- a/docs/docs/autocomplete/how-to-customize.md +++ b/docs/docs/autocomplete/how-to-customize.md @@ -19,4 +19,4 @@ Continue offers a handful of parameters in [`config.json` (Deprecated)](../json- - `prefixPercentage`: Defines the proportion of the prompt dedicated to the code before the cursor. - `multilineCompletions`: Controls whether suggestions can span multiple lines ("always", "never", or "auto"). -For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../customize/deep-dives/autocomplete.md). +For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx). diff --git a/docs/docs/autocomplete/model-setup.mdx b/docs/docs/autocomplete/model-setup.mdx index e975e51fe..31330d5a9 100644 --- a/docs/docs/autocomplete/model-setup.mdx +++ b/docs/docs/autocomplete/model-setup.mdx @@ -23,7 +23,7 @@ For the best Autocomplete experience, we recommend using Codestral through the [ - name: Codestral provider: mistral model: codestral-latest - apiKey: YOUR_API_KEY + apiKey: CODESTRAL_API_KEY roles: - autocomplete ``` @@ -46,7 +46,7 @@ The API keys for Codestral and the general Mistral APIs are different. If you ar ## Local, offline / self-hosted experience -For those preferring local execution or self-hosting,`Qwen2.5-Coder 1.5B` offers a good balance of performance and quality for most users (e.g. using [Ollama](../customize/model-providers/top-level/ollama.md) or [LM Studio](../customize/model-providers/more/lmstudio.md)). +For those preferring local execution or self-hosting,`Qwen2.5-Coder 1.5B` offers a good balance of performance and quality for most users (e.g. using [Ollama](../customize/model-providers/top-level/ollama.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)). @@ -110,4 +110,4 @@ When using a remote instance you need to set the `"apiBase"` value in the config ## Other experiences -There are many more models and providers you can use with Autocomplete. Check them out [here](../customize/model-types/autocomplete.md). You can also see more examples of Autocomplete configuration [here](../customize/deep-dives/autocomplete.md) +There are many more models and providers you can use with Autocomplete. Check them out [here](../customize/model-types/autocomplete.md). You can also see more examples of Autocomplete configuration [here](../customize/deep-dives/autocomplete.mdx) diff --git a/docs/docs/chat/context-selection.md b/docs/docs/chat/context-selection.md index e32ea3c51..f93a6a93e 100644 --- a/docs/docs/chat/context-selection.md +++ b/docs/docs/chat/context-selection.md @@ -27,7 +27,7 @@ You can include a folder in your current workspace as context by typing [`@Folde ## Codebase search -You can automatically include relevant files from your codebase as context by typing [`@Codebase`](../customize/context-providers.mdx#codebase). You can learn about how @Codebase works [here](../customize/deep-dives/codebase.md). +You can automatically include relevant files from your codebase as context by typing [`@Codebase`](../customize/context-providers.mdx#codebase). You can learn about how @Codebase works [here](../customize/deep-dives/codebase.mdx). ## Documentation site diff --git a/docs/docs/chat/how-it-works.md b/docs/docs/chat/how-it-works.md index 84c81582e..e799e0a07 100644 --- a/docs/docs/chat/how-it-works.md +++ b/docs/docs/chat/how-it-works.md @@ -9,6 +9,6 @@ Using any selected code sections, all context that you have selected with @, and The model response is then streamed directly back to the sidebar. Each code section included in the response will be placed into its own code block, which gives you buttons to either “Apply to current file”, “Insert at cursor”, or “Copy” for each section. When you press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) at the end of a session, all context is cleared and a new session is started, so that you can begin a new task. -If you would like to view the exact prompt that is sent to the model during Chat, you can [view this in the prompt logs](troubleshooting.md#llm-prompt-logs). +If you would like to view the exact prompt that is sent to the model during Chat, you can [view this in the prompt logs](troubleshooting.mdx#llm-prompt-logs). -You can learn more about how `@Codebase` works [here](../customize/deep-dives/codebase.md) and `@Docs` [here](../customize/deep-dives/docs.md). +You can learn more about how `@Codebase` works [here](../customize/deep-dives/codebase.mdx) and `@Docs` [here](../customize/deep-dives/docs.md). diff --git a/docs/docs/chat/how-to-customize.md b/docs/docs/chat/how-to-customize.md index ee26a6a84..b375d6b1d 100644 --- a/docs/docs/chat/how-to-customize.md +++ b/docs/docs/chat/how-to-customize.md @@ -8,8 +8,8 @@ sidebar_position: 5 There are a number of different ways to customize Chat - You can add a [`.continuerules`](../customize/deep-dives/rules.md) file to the root of your project to customize the system prompt -- You can configure [`@Codebase`](../customize/deep-dives/codebase.md) -- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.md) +- You can configure [`@Codebase`](../customize/deep-dives/codebase.mdx) +- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.mdx) - You can configure [`@Docs`](../customize/deep-dives/docs.md) - You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.md) -- You can configure and create custom [tools](../customize/tools.md) +- You can configure and create custom [tools](../customize/tools.mdx) diff --git a/docs/docs/chat/model-setup.mdx b/docs/docs/chat/model-setup.mdx index 9bdb09c7c..371696597 100644 --- a/docs/docs/chat/model-setup.mdx +++ b/docs/docs/chat/model-setup.mdx @@ -18,16 +18,16 @@ For the best overall Chat experience, you will want to use a 400B+ parameter mod ### Claude Sonnet 3.5 from Anthropic -Our current top recommendation is Claude Sonnet 3.5 from [Anthropic](../customize/model-providers/top-level/anthropic.md). +Our current top recommendation is Claude Sonnet 3.5 from [Anthropic](../customize/model-providers/top-level/anthropic.mdx). ```yaml title="Package or config.yaml" models: - - title: Claude 3.5 Sonnet + - name: Claude 3.5 Sonnet provider: anthropic model: claude-3-5-sonnet-latest - apiKeySecret: ANTHROPIC_API_KEY + apiKey: ${{ secrets.ANTHROPIC_API_KEY }} ``` @@ -46,7 +46,7 @@ Our current top recommendation is Claude Sonnet 3.5 from [Anthropic](../customiz ### Llama 3.1 405B from Meta -If you prefer to use an open-weight model, then Llama 3.1 405B from Meta is your best option right now. You will need to decide if you use it through a SaaS model provider (e.g. [Together](../customize/model-providers/more/together.md) or [Groq](../customize/model-providers/more/groq.md)) or self-host it (e.g. using [vLLM](../customize/model-providers//more/vllm.md) or [Ollama](../customize/model-providers/top-level/ollama.md)). +If you prefer to use an open-weight model, then Llama 3.1 405B from Meta is your best option right now. You will need to decide if you use it through a SaaS model provider (e.g. [Together](../customize/model-providers/more/together.mdx) or [Groq](../customize/model-providers/more/groq.mdx)) or self-host it (e.g. using [vLLM](../customize/model-providers//more/vllm.mdx) or [Ollama](../customize/model-providers/top-level/ollama.mdx)). @@ -54,35 +54,35 @@ If you prefer to use an open-weight model, then Llama 3.1 405B from Meta is your ```yaml title="Package or config.yaml" models: - - title: "Llama 3.1 405B" - provider: "together" - model: "llama3.1-405b" - apiKeySecret: "TOGETHER_API_KEY" + - name: "Llama 3.1 405B" + provider: "together" + model: "llama3.1-405b" + apiKey: ${{ secrets.TOGETHER_API_KEY }} ``` ```yaml title="Package or config.yaml" models: - - title: "Llama 3.1 405B" - provider: "groq" - model: "llama3.1-405b" - apiKeySecret: "GROQ_API_KEY" + - name: "Llama 3.1 405B" + provider: "groq" + model: "llama3.1-405b" + apiKey: ${{ secrets.GROQ_API_KEY }} ``` ```yaml title="Package or config.yaml" models: - - title: "Llama 3.1 405B" - provider: "vllm" - model: "llama3.1-405b" + - name: "Llama 3.1 405B" + provider: "vllm" + model: "llama3.1-405b" ``` ```yaml title="Package or config.yaml" models: - - title: "Llama 3.1 405B" - provider: "ollama" - model: "llama3.1:405b" + - name: "Llama 3.1 405B" + provider: "ollama" + model: "llama3.1:405b" ``` @@ -141,16 +141,16 @@ If you prefer to use an open-weight model, then Llama 3.1 405B from Meta is your ### GPT-4o from OpenAI -If you prefer to use a model from [OpenAI](../customize/model-providers/top-level/openai.md), then we recommend GPT-4o. +If you prefer to use a model from [OpenAI](../customize/model-providers/top-level/openai.mdx), then we recommend GPT-4o. ```yaml title="Package or config.yaml" models: - - title: GPT-4o - provider: openai - model: '' - apiKey: [OPENAI_API_KEY] + - name: GPT-4o + provider: openai + model: '' + apiKey: ${{ secrets.OPENAI_API_KEY }} ``` @@ -169,28 +169,28 @@ If you prefer to use a model from [OpenAI](../customize/model-providers/top-leve ### Gemini 1.5 Pro from Google -If you prefer to use a model from [Google](../customize/model-providers/top-level/gemini.md), then we recommend Gemini 1.5 Pro. +If you prefer to use a model from [Google](../customize/model-providers/top-level/gemini.mdx), then we recommend Gemini 1.5 Pro. ```yaml title="Package or config.yaml" models: - - title: Gemini 1.5 Pro + - name: Gemini 1.5 Pro provider: gemini model: gemini-1.5-pro-latest - apiKey: [GEMINI_API_KEY] + apiKey: ${{ secrets.GEMINI_API_KEY }} ``` ```json title="config.json (Deprecated)" - "models": [ + "models": [ { - "title": "Gemini 1.5 Pro", - "provider": "gemini", - "model": "gemini-1.5-pro-latest", - "apiKey": "[GEMINI_API_KEY]" + "title": "Gemini 1.5 Pro", + "provider": "gemini", + "model": "gemini-1.5-pro-latest", + "apiKey": "[GEMINI_API_KEY]" } - ] + ] ``` @@ -201,7 +201,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](../customize/model-providers/top-level/ollama.md) or [LM Studio](../customize/model-providers/more/lmstudio.md)). +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](../customize/model-providers/top-level/ollama.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)). @@ -209,17 +209,17 @@ If your local machine can run an 8B parameter model, then we recommend running L ```yaml title="Package or config.yaml" models: - - title: Llama 3.1 8B - provider: ollama - model: llama3.1:8b + - name: Llama 3.1 8B + provider: ollama + model: llama3.1:8b ``` ```yaml title="Package or config.yaml" models: - - title: Llama 3.1 8B - provider: lmstudio - model: llama3.1:8b + - name: Llama 3.1 8B + provider: lmstudio + model: llama3.1:8b ``` @@ -254,7 +254,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](../customize/model-providers/top-level/ollama.md) or [LM Studio](../customize/model-providers/more/lmstudio.md)). +If your local machine can run a 16B parameter model, then we recommend running DeepSeek Coder 2 16B (e.g. using [Ollama](../customize/model-providers/top-level/ollama.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)). @@ -262,17 +262,17 @@ If your local machine can run a 16B parameter model, then we recommend running D ```yaml title="Package or config.yaml" models: - - title: DeepSeek Coder 2 16B - provider: ollama - model: deepseek-coder-v2:16b + - name: DeepSeek Coder 2 16B + provider: ollama + model: deepseek-coder-v2:16b ``` ```yaml title="Package or config.yaml" models: - - title: DeepSeek Coder 2 16B - provider: lmstudio - model: deepseek-coder-v2:16b + - name: DeepSeek Coder 2 16B + provider: lmstudio + model: deepseek-coder-v2:16b ``` diff --git a/docs/docs/customize/context-providers.mdx b/docs/docs/customize/context-providers.mdx index 667b055f9..cd7c5a5e7 100644 --- a/docs/docs/customize/context-providers.mdx +++ b/docs/docs/customize/context-providers.mdx @@ -15,7 +15,7 @@ As an example, say you are working on solving a new GitHub Issue. You type '@Iss ## Built-in Context Providers -To use any of the built-in context providers, open `config.json` and add it to the `contextProviders` list. +You can add any built-in context-providers in your config file as shown below: ### `@File` @@ -151,7 +151,7 @@ Reference the contents from any documentation site. Note that this will only enable the `@Docs` context provider. -To use it, you need to add a documentation site to your `config.json`. See the [docs](../customize/deep-dives/docs.md) page for more information. +To use it, you need to add a documentation site to your config file. See the [docs](../customize/deep-dives/docs.md) page for more information. ### `@Open` @@ -231,7 +231,7 @@ Reference the most relevant snippets from your codebase. -Read more about indexing and retrieval [here](../customize/deep-dives/codebase.md). +Read more about indexing and retrieval [here](../customize/deep-dives/codebase.mdx). ### `@Folder` @@ -279,8 +279,6 @@ Reference the results of codebase search, just like the results you would get fr This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). -This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). - ### `@Url` Reference the markdown converted contents of a given URL. @@ -492,7 +490,7 @@ You'll then be able to type "@" and see "MCP" in the context providers dropdown. ### Prompt Files -See [Prompt Files](/customize/deep-dives/prompt-files). Prompt files are not added directly to the config file; prompt files are parsed and injected into the config automatically, to be used like other context providers. +See [Prompt Files](/customize/deep-dives/prompt-file.mdx). Prompt files are not added directly to the config file; prompt files are parsed and injected into the config automatically, to be used like other context providers. ### `@Issue` diff --git a/docs/docs/customize/deep-dives/autocomplete.mdx b/docs/docs/customize/deep-dives/autocomplete.mdx index 5dba5d800..d6d3755ef 100644 --- a/docs/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/docs/customize/deep-dives/autocomplete.mdx @@ -8,7 +8,7 @@ import TabItem from "@theme/TabItem"; ### Setting up with Codestral (recommended) -If you want to have the best autocomplete experience, we recommend using Codestral, which is available through the [Mistral API](https://console.mistral.ai/). To do this, obtain an API key and add it to your `config.json`: +If you want to have the best autocomplete experience, we recommend using Codestral, which is available through the [Mistral API](https://console.mistral.ai/). To do this, obtain an API key and add it to your config: @@ -17,7 +17,7 @@ If you want to have the best autocomplete experience, we recommend using Codestr - name: Codestral provider: mistral model: codestral-latest - apiKeySecret: CODESTRAL_API_KEY + apiKey: ${{ secrets.CODESTRAL_API_KEY }} roles: - autocomplete ``` diff --git a/docs/docs/customize/deep-dives/codebase.mdx b/docs/docs/customize/deep-dives/codebase.mdx index 994cb848d..dfed9cda9 100644 --- a/docs/docs/customize/deep-dives/codebase.mdx +++ b/docs/docs/customize/deep-dives/codebase.mdx @@ -11,7 +11,7 @@ import TabItem from "@theme/TabItem"; Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally using `transformers.js` and stored locally in `~/.continue/index`. :::info[`transformers.js cannot be used in JetBrains`] -Currently, `transformers.js` cannot be used in JetBrains IDEs. However, you can select a differet embeddings model from [the list here](../model-types/embeddings.md). +Currently, `transformers.js` cannot be used in JetBrains IDEs. However, you can select a differet embeddings model from [the list here](../model-types/embeddings.mdx). ::: Currently, the codebase retrieval feature is available as the "codebase" and "folder" context providers. You can use them by typing `@Codebase` or `@Folder` in the input box, and then asking a question. The contents of the input box will be compared with the embeddings from the rest of the codebase (or folder) to determine relevant files. @@ -41,7 +41,7 @@ Here are use cases where it is not useful: ## Configuration -There are a few options that let you configure the behavior of the codebase context provider. These can be set in `config.json`, and are the same for the codebase, docs, and folder context providers: +There are a few options that let you configure the behavior of the `@codebase` context provider, which are the same for the `@folder` context provider: diff --git a/docs/docs/customize/deep-dives/configuration.md b/docs/docs/customize/deep-dives/configuration.md index 6182807d6..504bf4d09 100644 --- a/docs/docs/customize/deep-dives/configuration.md +++ b/docs/docs/customize/deep-dives/configuration.md @@ -5,27 +5,32 @@ keywords: [config, settings, customize] # Configuration -Continue can be deeply customized. User-level configuration is stored and can be edited in your home directory in [`config.json`](#configjson): +## YAML Config -- `~/.continue/config.json` (MacOS / Linux) -- `%USERPROFILE%\.continue\config.json` (Windows) +Continue can be deeply customized. User-level configuration is stored and can be edited in your home directory in `config.yaml`: -To open `config.json`, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options suggested as you type, or check the reference below. +- `~/.continue/config.yaml` (MacOS / Linux) +- `%USERPROFILE%\.continue\config.yaml` (Windows) -When you save `config.json`, Continue will automatically refresh to take into account your changes. `config.json` is automatically created the first time you use Continue. `config.json` is automatically generated if it doesn't exist. +To open your configuration file, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options suggested as you type, or check the reference below. -In the vast majority of cases, you will only need to edit `config.json`. However, Continue offers two additional ways to customize configuration: +When you save a config file from the IDE, Continue will automatically refresh to take into account your changes. A config file is automatically created the first time you use Continue, and always automatically generated with default values if it doesn't exist. -- [`.continuerc.json`](#continuercjson) - Workspace-level configuration. If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. This can be set to merge with _or_ override the user-level `config.json` +See the full reference for `config.yaml` [here](../../reference.md). + +## Deprecated configuration methods + +:::info +View the `config.json` migration guide [here](../../yaml-migration.md) +::: + +- [`config.json`](../../json-reference.md) - The original configuration format which is stored in a file at the same location as `config.yaml` +- [`.continuerc.json`](#continuercjson) - Workspace-level configuration - [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema: - `~/.continue/config.ts` (MacOS / Linux) - `%USERPROFILE%\.continue\config.ts` (Windows) -## `config.json` - -See the full reference for `config.json` [here](../../json-reference.md). - -## `.continuerc.json` +### `.continuerc.json` The format of `.continuerc.json` is the same as `config.json`, plus one _additional_ property `mergeBehavior`, which can be set to either "merge" or "overwrite". If set to "merge" (the default), `.continuerc.json` will be applied on top of `config.json` (arrays and objects are merged). If set to "overwrite", then every top-level property of `.continuerc.json` will overwrite that property from `config.json`. @@ -40,7 +45,7 @@ Example } ``` -## `config.ts` +### `config.ts` To programatically extend `config.json`, you can place a `config.ts` script in same directory as `config.json` and export a `modifyConfig` function, like: diff --git a/docs/docs/customize/deep-dives/docs.md b/docs/docs/customize/deep-dives/docs.md index e519f3d30..79d2735b3 100644 --- a/docs/docs/customize/deep-dives/docs.md +++ b/docs/docs/customize/deep-dives/docs.md @@ -71,7 +71,7 @@ The [configuration schema for docs](https://github.com/continuedev/continue/blob ## Configuration -As with [@Codebase context provider configuration](https://docs.continue.dev/customize/deep-dives/codebase#configuration), you can adjust the behavior of the docs context provider with the `nRetrieve`, `nFinal`, and `useReranking` +As with [@Codebase context provider configuration](../deep-dives/codebase.mdx#configuration), you can adjust the behavior of the docs context provider with the `nRetrieve`, `nFinal`, and `useReranking` ```json title="config.json (Deprecated)" { diff --git a/docs/docs/customize/model-providers/more/SambaNova.mdx b/docs/docs/customize/model-providers/more/SambaNova.mdx index ffaf4b53d..31147e252 100644 --- a/docs/docs/customize/model-providers/more/SambaNova.mdx +++ b/docs/docs/customize/model-providers/more/SambaNova.mdx @@ -5,17 +5,28 @@ import TabItem from "@theme/TabItem"; The SambaNova Cloud is a cloud platform for running large AI models with the world record Llama 3.1 70B/405B performance. You can follow the instructions in [this blog post](https://sambanova.ai/blog/accelerating-coding-with-sambanova-cloud?ref=blog.continue.dev) to configure your setup. -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "SambaNova Llama 3.1 405B", - "provider": "sambanova", - "model": "llama3.1-405b", - "apiKey": "YOUR_API_KEY" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: SambaNova Llama 3.1 405B + provider: sambanova + model: llama3.1-405b + apiKey: ${{ secrets.SAMBANOVA_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "SambaNova Llama 3.1 405B", + "provider": "sambanova", + "model": "llama3.1-405b", + "apiKey": "SAMBANOVA_API_KEY" + } + ] + ``` + + [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/SambaNova.ts) diff --git a/docs/docs/customize/model-providers/more/asksage.mdx b/docs/docs/customize/model-providers/more/asksage.mdx index fcccdd750..eb8608e88 100644 --- a/docs/docs/customize/model-providers/more/asksage.mdx +++ b/docs/docs/customize/model-providers/more/asksage.mdx @@ -9,21 +9,33 @@ To get an Ask Sage API key login to the Ask Sage platform (If you don't have an ## Configuration -To use the Ask Sage models, the following configuration is required to the `config.json` file: +To use the Ask Sage models, you can use the following -```json title="config.json (Deprecated)" -{ + + + ```yaml title="Package or config.yaml" + models: + - name: GPT-4 gov + provider: askSage + apiKey: ${{ secrets.ASK_SAGE_API_KEY }} + apiBase: https://api.asksage.ai/server/ + model: gpt4-gov + ``` + + + ```json title="config.json (Deprecated)" "models": [ { "apiKey": "YOUR_API_KEY", - "apiBase": "https://api.asksage.ai/server/", // apiBase will be the same for all models, but will vary based on tenant. + "apiBase": "https://api.asksage.ai/server/", "model": "gpt4-gov", "title": "GPT-4 gov", "provider": "askSage" } ] -} -``` + ``` + + The `apiBase` will be listed on the Ask Sage platform when you generate an `API key`. You will see context as shown below: @@ -51,26 +63,26 @@ Ask Sage documentation is not available with Continue.Dev, so if you have any qu The current Models available provided by Ask Sage are: -| Index | Model | Added | Status | -| ----- | --------------------- | ----- | ------ | -| 1 | GPT-4 Gov | Yes | ✅ | -| 2 | GPT-4o Gov | Yes | ✅ | -| 3 | GPT-4o-mini Gov | Yes | ✅ | -| 4 | GPT-3.5-Turbo Gov | Yes | ✅ | -| 5 | GPT-4o | Yes | ✅ | -| 6 | GPT-4o-mini | Yes | ✅ | -| 7 | GPT-4 | Yes | ✅ | -| 8 | GPT-4-32K | Yes | ✅ | -| 9 | GPT-o1 | Yes | ✅ | -| 10 | GPT-o1-mini | Yes | ✅ | -| 11 | GPT-3.5-turbo | Yes | ✅ | -| 12 | Calude 3.5 Sonnet Gov | Yes | ✅ | -| 13 | Calude 3 Opus | Yes | ✅ | -| 14 | Calude 3 Sonet | Yes | ✅ | -| 15 | Calude 3.5 Sonnet | Yes | ✅ | -| 16 | Grok (xAI) | Yes | ✅ | -| 17 | Groq Llama 3.3 | Yes | ✅ | -| 18 | Groq 70B | Yes | ✅ | -| 19 | Gemini Pro | Yes | ✅ | -| 20 | llama 3 | Yes | ✅ | -| 21 | Mistral Large | Yes | ✅ | +| Index | Model | Added | +| ----- | --------------------- | ----- | +| 1 | GPT-4 Gov | ✅ | +| 2 | GPT-4o Gov | ✅ | +| 3 | GPT-4o-mini Gov | ✅ | +| 4 | GPT-3.5-Turbo Gov | ✅ | +| 5 | GPT-4o | ✅ | +| 6 | GPT-4o-mini | ✅ | +| 7 | GPT-4 | ✅ | +| 8 | GPT-4-32K | ✅ | +| 9 | GPT-o1 | ✅ | +| 10 | GPT-o1-mini | ✅ | +| 11 | GPT-3.5-turbo | ✅ | +| 12 | Calude 3.5 Sonnet Gov | ✅ | +| 13 | Calude 3 Opus | ✅ | +| 14 | Calude 3 Sonet | ✅ | +| 15 | Calude 3.5 Sonnet | ✅ | +| 16 | Grok (xAI) | ✅ | +| 17 | Groq Llama 3.3 | ✅ | +| 18 | Groq 70B | ✅ | +| 19 | Gemini Pro | ✅ | +| 20 | llama 3 | ✅ | +| 21 | Mistral Large | ✅ | diff --git a/docs/docs/customize/model-providers/more/cerebras.mdx b/docs/docs/customize/model-providers/more/cerebras.mdx index f9ccb88cc..9375c974f 100644 --- a/docs/docs/customize/model-providers/more/cerebras.mdx +++ b/docs/docs/customize/model-providers/more/cerebras.mdx @@ -9,15 +9,26 @@ Cerebras Inference uses specialized silicon to provides fast inference. 2. Create and copy the API key for use in Continue. 3. Update your Continue config file: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Cerebras Llama 3.1 70B", - "provider": "cerebras", - "model": "llama3.1-70b", - "apiKey": "YOUR_API_KEY" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Cerebras Llama 3.1 70B + provider: cerebras + model: llama3.1-70b + apiKey: ${{ secrets.CEREBRAS_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Cerebras Llama 3.1 70B", + "provider": "cerebras", + "model": "llama3.1-70b", + "apiKey": "YOUR_API_KEY" + } + ] + ``` + + diff --git a/docs/docs/customize/model-providers/more/cloudflare.mdx b/docs/docs/customize/model-providers/more/cloudflare.mdx index 7d3058548..5388e2a6a 100644 --- a/docs/docs/customize/model-providers/more/cloudflare.mdx +++ b/docs/docs/customize/model-providers/more/cloudflare.mdx @@ -3,44 +3,77 @@ import TabItem from "@theme/TabItem"; # Cloudflare Workers AI -Cloudflare Workers AI can be used for both chat and tab autocompletion in Continue. To setup Cloudflare Workers AI, add the following to your `config.json` file: +Cloudflare Workers AI can be used for both chat and tab autocompletion in Continue. Here is an example of Cloudflare Workers AI configuration: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "accountId": "YOUR CLOUDFLARE ACCOUNT ID", - "apiKey": "YOUR CLOUDFLARE API KEY", - "contextLength": 2400, - "completionOptions": { - "maxTokens": 500 + + + ```yaml title="config.yaml" + models: + - name: Llama 3 8B + provider: cloudflare + accountId: YOUR CLOUDFLARE ACCOUNT ID + apiKey: ${{ secrets.CLOUDFARE_API_KEY }} + model: "@cf/meta/llama-3-8b-instruct" + contextLength: 2400 + defaultCompletionOptions: + maxTokens: 500 + roles: + - chat + - name: DeepSeek Coder 6.7b Instruct + provider: cloudflare + accountId: YOUR CLOUDFLARE ACCOUNT ID + apiKey: ${{ secrets.CLOUDFARE_API_KEY }} + model: "@hf/thebloke/deepseek-coder-6.7b-instruct-awq" + contextLength: 2400 + defaultCompletionOptions: + maxTokens: 500 + roles: + - chat + - name: DeepSeek 7b + provider: cloudflare + accountId: YOUR CLOUDFLARE ACCOUNT ID + apiKey: ${{ secrets.CLOUDFARE_API_KEY }} + model: "@hf/thebloke/deepseek-coder-6.7b-base-awq" + roles: + - autocomplete + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama 3 8B", + "provider": "cloudflare", + "accountId": "YOUR CLOUDFLARE ACCOUNT ID", + "apiKey": "YOUR CLOUDFLARE API KEY", + "contextLength": 2400, + "completionOptions": { + "maxTokens": 500 + }, + "model": "@cf/meta/llama-3-8b-instruct" }, - "model": "@cf/meta/llama-3-8b-instruct", // This can be the name of any model supported by Workers AI - "provider": "cloudflare", - "title": "Llama 3 8B" - }, - { - "accountId": "YOUR CLOUDFLARE ACCOUNT ID", - "apiKey": "YOUR CLOUDFLARE API KEY", - "contextLength": 2400, - "completionOptions": { - "maxTokens": 500 - }, - "model": "@hf/thebloke/deepseek-coder-6.7b-instruct-awq", - "provider": "cloudflare", - "title": "DeepSeek Coder 6.7b Instruct" - } - ... + { + "title": "DeepSeek Coder 6.7b Instruct", + "provider": "cloudflare", + "accountId": "YOUR CLOUDFLARE ACCOUNT ID", + "apiKey": "YOUR CLOUDFLARE API KEY", + "contextLength": 2400, + "completionOptions": { + "maxTokens": 500 + }, + "model": "@hf/thebloke/deepseek-coder-6.7b-instruct-awq" + } + ], "tabAutocompleteModel": { + "title": "DeepSeek 7b", + "provider": "cloudflare", "accountId": "YOUR CLOUDFLARE ACCOUNT ID", "apiKey": "YOUR CLOUDFLARE API KEY", - "model": "@hf/thebloke/deepseek-coder-6.7b-base-awq", - "provider": "cloudflare", - "title": "DeepSeek 7b" - }, - ] -} -``` + "model": "@hf/thebloke/deepseek-coder-6.7b-base-awq" + } + ``` + + Visit the [Cloudflare dashboard](https://dash.cloudflare.com/) to [create an API key](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/). diff --git a/docs/docs/customize/model-providers/more/cohere.mdx b/docs/docs/customize/model-providers/more/cohere.mdx index dcdd39b01..966964f53 100644 --- a/docs/docs/customize/model-providers/more/cohere.mdx +++ b/docs/docs/customize/model-providers/more/cohere.mdx @@ -9,18 +9,29 @@ Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/a We recommend configuring **Command-R Plus** as your chat model. -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Cohere", - "provider": "cohere", - "model": "command-r-plus", - "apiKey": "YOUR_API_KEY" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Cohere + provider: cohere + model: command-r-plus + apiKey: ${{ secrets.COHERE_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Cohere", + "provider": "cohere", + "model": "command-r-plus", + "apiKey": "YOUR_API_KEY" + } + ] + ``` + + ## Autocomplete model @@ -32,28 +43,54 @@ Cohere currently does not offer any autocomplete models. We recommend configuring **embed-english-v3.0** as your embeddings model. -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "cohere", - "model": "embed-english-v3.0", - "apiKey": "" - } -} -``` + + + ```yaml title="config.yaml" + models: + - name: Cohere Embed + provider: cohere + model: embed-english-v3.0 + apiKey: ${{ secrets.COHERE_API_KEY }} + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "cohere", + "model": "embed-english-v3.0", + "apiKey": "" + } + ``` + + ## Reranking model We recommend configuring **rerank-english-v3.0** as your reranking model. -```json title="config.json (Deprecated)" -{ - "reranker": { - "name": "cohere", - "params": { - "model": "rerank-english-v3.0", - "apiKey": "" + + + ```yaml title="config.yaml" + models: + - name: Cohere Reranker + provider: cohere + model: rerank-english-v3.0 + apiKey: ${{ secrets.COHERE_API_KEY }} + roles: + - rerank + ``` + + + ```json title="config.json (Deprecated)" + "reranker": { + "name": "cohere", + "params": { + "model": "rerank-english-v3.0", + "apiKey": "" + } } - } -} -``` + ``` + + diff --git a/docs/docs/customize/model-providers/more/deepinfra.mdx b/docs/docs/customize/model-providers/more/deepinfra.mdx index 418ff15f9..51e3943e7 100644 --- a/docs/docs/customize/model-providers/more/deepinfra.mdx +++ b/docs/docs/customize/model-providers/more/deepinfra.mdx @@ -5,17 +5,28 @@ import TabItem from "@theme/TabItem"; [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: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "provider": "deepinfra", - "title": "DeepInfra", - "model": "mistralai/Mixtral-8x7B-Instruct-v0.1", - "apiKey": "" - } - ] -} -``` + + + ```yaml title="config.yaml" + models: + - name: DeepInfra + provider: deepinfra + model: mistralai/Mixtral-8x7B-Instruct-v0.1 + apiKey: ${{ secrets.DEEP_INFRA_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "provider": "deepinfra", + "title": "DeepInfra", + "model": "mistralai/Mixtral-8x7B-Instruct-v0.1", + "apiKey": "" + } + ] + ``` + + [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts) diff --git a/docs/docs/customize/model-providers/more/flowise.mdx b/docs/docs/customize/model-providers/more/flowise.mdx index 91516ee12..d6abf9ee5 100644 --- a/docs/docs/customize/model-providers/more/flowise.mdx +++ b/docs/docs/customize/model-providers/more/flowise.mdx @@ -5,17 +5,28 @@ import TabItem from "@theme/TabItem"; [Flowise](https://flowiseai.com/) is a low-code/no-code drag & drop tool with the aim to make it easy for people to visualize and build LLM apps. Continue can then be configured to use the `Flowise` LLM class, like the example here: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "provider": "flowise", - "title": "Flowise", - "model": "", - "apiBase": "" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Flowise + provider: flowise + model: + apiBase: + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "provider": "flowise", + "title": "Flowise", + "model": "", + "apiBase": "" + } + ] + ``` + + [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Flowise.ts) diff --git a/docs/docs/customize/model-providers/more/free-trial.mdx b/docs/docs/customize/model-providers/more/free-trial.mdx index b5fd710f8..ddc16d5e4 100644 --- a/docs/docs/customize/model-providers/more/free-trial.mdx +++ b/docs/docs/customize/model-providers/more/free-trial.mdx @@ -10,8 +10,8 @@ The `"free-trial"` provider lets new users quickly try out the best experience i While the Continue extension is always free to use, we cannot support infinite free LLM usage for all of our users. You will eventually need to either: -1. Select an open-source model to use for free [locally](../top-level/ollama.md), or -2. Add your own API key for [Anthropic](../top-level/anthropic.md) or [another LLM provider](/customize/model-providers) +1. Select an open-source model to use for free [locally](../top-level/ollama.mdx), or +2. Add your own API key for [Anthropic](../top-level/anthropic.mdx) or [another LLM provider](../../model-providers/) ## FAQ about the trial diff --git a/docs/docs/customize/model-providers/more/function-network.mdx b/docs/docs/customize/model-providers/more/function-network.mdx index b48f80f97..751fdccb6 100644 --- a/docs/docs/customize/model-providers/more/function-network.mdx +++ b/docs/docs/customize/model-providers/more/function-network.mdx @@ -20,18 +20,31 @@ To get an API key, login to the Function Network Developer Platform. If you don' Function Network supports a number of models for chat. We recommend using LLama 3.1 70b or Qwen2.5-Coder-32B-Instruct. -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama 3.1 70b", - "provider": "function-network", - "model": "meta/llama-3.1-70b-instruct", - "apiKey": "YOUR_API_KEY" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Llama 3.1 70b + provider: function-network + model: meta/llama-3.1-70b-instruct + apiKey: ${{ secrets.FUNCTION_NETWORK_API_KEY }} + roles: + - chat + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama 3.1 70b", + "provider": "function-network", + "model": "meta/llama-3.1-70b-instruct", + "apiKey": "YOUR_API_KEY" + } + ] + ``` + + [Click here](https://docs.function.network/models-supported/chat-and-code-completion) to see a list of chat model providers. @@ -39,30 +52,56 @@ Function Network supports a number of models for chat. We recommend using LLama Function Network supports a number of models for autocomplete. We recommend using Llama 3.1 8b or Qwen2.5-Coder-1.5B. -```json title="config.json (Deprecated)" -{ - "tabAutocompleteModel": { - "title": "Deepseek Coder 6.7b", - "provider": "function-network", - "model": "thebloke/deepseek-coder-6.7b-base-awq", - "apiKey": "YOUR_API_KEY" - } -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Deepseek Coder 6.7b + provider: function-network + model: thebloke/deepseek-coder-6.7b-base-awq + apiKey: ${{ secrets.FUNCTION_NETWORK_API_KEY }} + roles: + - autocomplete + ``` + + + ```json title="config.json (Deprecated)" + "tabAutocompleteModel": { + "title": "Deepseek Coder 6.7b", + "provider": "function-network", + "model": "thebloke/deepseek-coder-6.7b-base-awq", + "apiKey": "YOUR_API_KEY" + } + ``` + + ## Embeddings model Function Network supports a number of models for embeddings. We recommend using baai/bge-base-en-v1.5. -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "function-network", - "model": "baai/bge-base-en-v1.5", - "apiKey": "YOUR_API_KEY" - } -} -``` + + + ```yaml title="config.yaml" + models: + - name: BGE Base En + provider: function-network + model: baai/bge-base-en-v1.5 + apiKey: ${{ secrets.FUNCTION_NETWORK_API_KEY }} + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "function-network", + "model": "baai/bge-base-en-v1.5", + "apiKey": "YOUR_API_KEY" + } + ``` + + [Click here](https://docs.function.network/models-supported/embeddings) to see a list of embeddings model providers. diff --git a/docs/docs/customize/model-providers/more/groq.mdx b/docs/docs/customize/model-providers/more/groq.mdx index 13f9bbc87..4282b1293 100644 --- a/docs/docs/customize/model-providers/more/groq.mdx +++ b/docs/docs/customize/model-providers/more/groq.mdx @@ -8,15 +8,28 @@ Groq provides the fastest available inference for open-source language models, i 1. Obtain an API key [here](https://console.groq.com/keys) 2. Update your Continue config file like this: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama 3.1 405b", - "provider": "groq", - "model": "llama3.1-405b", - "apiKey": "" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Llama 3.1 405b + provider: groq + model: llama3.1-405b + apiKey: ${{ secrets.GROQ_API_KEY }} + roles: + - chat + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama 3.1 405b", + "provider": "groq", + "model": "llama3.1-405b", + "apiKey": "" + } + ] + ``` + + diff --git a/docs/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx b/docs/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx index ae08459e0..08b60c1cc 100644 --- a/docs/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx +++ b/docs/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx @@ -12,7 +12,7 @@ Hugging Face Inference Endpoints are an easy way to setup instances of open-sour - name: Hugging Face Inference API provider: huggingface-inference-api model: MODEL_NAME - apiKeySecret: HF_TOKEN + apiKey: ${{ secrets.HF_API_KEY }} apiBase: HF_URL_BASE ``` diff --git a/docs/docs/customize/model-providers/more/ipex_llm.mdx b/docs/docs/customize/model-providers/more/ipex_llm.mdx index c711a81ac..2413aa6ce 100644 --- a/docs/docs/customize/model-providers/more/ipex_llm.mdx +++ b/docs/docs/customize/model-providers/more/ipex_llm.mdx @@ -9,35 +9,54 @@ import TabItem from "@theme/TabItem"; IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to [this guide](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html) from IPEX-LLM official documentation about how to install and run Ollama serve accelerated by IPEX-LLM on Intel GPU. You can then configure Continue to use the IPEX-LLM accelerated `"ollama"` provider as follows: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "IPEX-LLM", - "provider": "ollama", - "model": "AUTODETECT" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: IPEX-LLM + provider: ollama + model: AUTODETECT + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "IPEX-LLM", + "provider": "ollama", + "model": "AUTODETECT" + } + ] + ``` + + If you would like to reach the Ollama service from another machine, make sure you set or export the environment variable `OLLAMA_HOST=0.0.0.0` before executing the command `ollama serve`. Then, in the Continue configuration, set `'apiBase'` to correspond with the IP address / port of the remote machine. That is, Continue can be configured to be: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "IPEX-LLM", - "provider": "ollama", - "model": "AUTODETECT", - "apiBase": "http://your-ollama-service-ip:11434" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: IPEX-LLM + provider: ollama + model: AUTODETECT + apiBase: http://your-ollama-service-ip:11434 + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "IPEX-LLM", + "provider": "ollama", + "model": "AUTODETECT", + "apiBase": "http://your-ollama-service-ip:11434" + } + ] + ``` + + :::tip - If you would like to preload the model before your first conversation with that model in Continue, you could refer to [here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model) for more information. - ::: diff --git a/docs/docs/customize/model-providers/more/kindo.mdx b/docs/docs/customize/model-providers/more/kindo.mdx index 745ec3019..cb0c87922 100644 --- a/docs/docs/customize/model-providers/more/kindo.mdx +++ b/docs/docs/customize/model-providers/more/kindo.mdx @@ -7,34 +7,58 @@ Kindo offers centralized control over your organization's AI operations, ensurin ## Config Example -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Claude 3.5 Sonnet", - "provider": "kindo", - "model": "claude-3-5-sonnet", - "apiKey": "" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Claude 3.5 Sonnet + provider: kindo + model: claude-3-5-sonnet + apiKey: ${{ secrets.KINDO_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Claude 3.5 Sonnet", + "provider": "kindo", + "model": "claude-3-5-sonnet", + "apiKey": "" + } + ] + ``` + + ## Tab Autocomplete Config Example -```json title="config.json (Deprecated)" -{ - "tabAutocompleteModel": [ - { - "title": "WhiteRabbitNeo", - "provider": "kindo", - "model": "/models/WhiteRabbitNeo-33B-DeepSeekCoder", - "apiKey": "", - "template": "none" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: WhiteRabbitNeo + provider: kindo + model: /models/WhiteRabbitNeo-33B-DeepSeekCoder + apiKey: ${{ secrets.KINDO_API_KEY }} + roles: + - autocomplete + ``` + + + ```json title="config.json (Deprecated)" + "tabAutocompleteModel": [ + { + "title": "WhiteRabbitNeo", + "provider": "kindo", + "model": "/models/WhiteRabbitNeo-33B-DeepSeekCoder", + "apiKey": "", + "template": "none" + } + ] + ``` + + ## Security diff --git a/docs/docs/customize/model-providers/more/llamacpp.mdx b/docs/docs/customize/model-providers/more/llamacpp.mdx index 12f2264d8..b8d43a830 100644 --- a/docs/docs/customize/model-providers/more/llamacpp.mdx +++ b/docs/docs/customize/model-providers/more/llamacpp.mdx @@ -11,17 +11,28 @@ Run the llama.cpp server binary to start the API server. If running on a remote After it's up and running, change `~/.continue/config.json` to look like this: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama CPP", - "provider": "llama.cpp", - "model": "MODEL_NAME", - "apiBase": "http://localhost:8080" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Llama CPP + provider: llama.cpp + model: MODEL_NAME + apiBase: http://localhost:8080 + ``` + + + ```json title="config.json (Deprecated)" + "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) diff --git a/docs/docs/customize/model-providers/more/llamafile.mdx b/docs/docs/customize/model-providers/more/llamafile.mdx index 58df64c23..4563bf630 100644 --- a/docs/docs/customize/model-providers/more/llamafile.mdx +++ b/docs/docs/customize/model-providers/more/llamafile.mdx @@ -5,16 +5,26 @@ import TabItem from "@theme/TabItem"; A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contained binary that can run an open-source LLM. You can configure this provider in your config.json as follows: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llamafile", - "provider": "llamafile", - "model": "mistral-7b" - } - ] -} -``` + + + ```yaml title="config.yaml" + models: + - name: Llamafile + provider: llamafile + model: mistral-7b + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llamafile", + "provider": "llamafile", + "model": "mistral-7b" + } + ] + ``` + + [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Llamafile.ts) diff --git a/docs/docs/customize/model-providers/more/lmstudio.mdx b/docs/docs/customize/model-providers/more/lmstudio.mdx index 6bca26aa9..b3d5d31b2 100644 --- a/docs/docs/customize/model-providers/more/lmstudio.mdx +++ b/docs/docs/customize/model-providers/more/lmstudio.mdx @@ -5,43 +5,77 @@ import TabItem from "@theme/TabItem"; [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: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "LM Studio", - "provider": "lmstudio", - "model": "llama2-7b" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: LM Studio + provider: lmstudio + model: llama2-7b + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "LM Studio", + "provider": "lmstudio", + "model": "llama2-7b" + } + ] + ``` + + ### 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) -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "lmstudio", - "model": "nomic-ai/nomic-embed-text-v1.5-GGUF" - } -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Nomic Embed Text + provider: lmstudio + model: nomic-ai/nomic-embed-text-v1.5-GGUF + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "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: -```json title="config.json (Deprecated)" -{ - "title": "LM Studio", - "model": "codestral", - "provider": "lmstudio", - "apiBase": "http://x.x.x.x:1234/v1/" -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Nomic Embed Text + provider: lmstudio + model: nomic-ai/nomic-embed-text-v1.5-GGUF + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "lmstudio", + "model": "nomic-ai/nomic-embed-text-v1.5-GGUF" + } + ``` + + This `apiBase` will now be used instead of the default `http://localhost:1234/v1`. diff --git a/docs/docs/customize/model-providers/more/moonshot.mdx b/docs/docs/customize/model-providers/more/moonshot.mdx index 0a6f5381e..e9e9d4f1a 100644 --- a/docs/docs/customize/model-providers/more/moonshot.mdx +++ b/docs/docs/customize/model-providers/more/moonshot.mdx @@ -10,20 +10,31 @@ import TabItem from "@theme/TabItem"; To use Moonshot AI models, you need to: 1. Get an API key from [Moonshot AI Platform](https://platform.moonshot.cn/) -2. Add the following configuration to your `config.json`: +2. Add the following configuration: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Moonshot", - "provider": "moonshot", - "model": "moonshot-v1-8k", - "apiKey": "YOUR_API_KEY" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Moonshot + provider: moonshot + model: moonshot-v1-8k + apiKey: apiKey: ${{ secrets.MOONSHOT_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Moonshot", + "provider": "moonshot", + "model": "moonshot-v1-8k", + "apiKey": "YOUR_API_KEY" + } + ] + ``` + + ## Available Models @@ -45,20 +56,35 @@ Moonshot AI currently provides the following models: Here's a complete configuration example: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Moonshot-8K", - "provider": "moonshot", - "model": "moonshot-v1-8k", - "apiKey": "YOUR_API_KEY", - "completionOptions": { - "temperature": 0.7, - "topP": 0.95, - "maxTokens": 2048 + + + ```yaml title="Package or config.yaml" + models: + - name: Moonshot-8K + provider: moonshot + model: moonshot-v1-8k + apiKey: apiKey: ${{ secrets.MOONSHOT_API_KEY }} + defaultCompletionOptions: + temperature: 0.7 + topP: 0.95 + maxTokens: 2048 + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Moonshot-8K", + "provider": "moonshot", + "model": "moonshot-v1-8k", + "apiKey": "YOUR_API_KEY", + "completionOptions": { + "temperature": 0.7, + "topP": 0.95, + "maxTokens": 2048 + } } - } - ] -} -``` + ] + ``` + + diff --git a/docs/docs/customize/model-providers/more/msty.mdx b/docs/docs/customize/model-providers/more/msty.mdx index 77d9a1056..b741a314d 100644 --- a/docs/docs/customize/model-providers/more/msty.mdx +++ b/docs/docs/customize/model-providers/more/msty.mdx @@ -5,18 +5,27 @@ import TabItem from "@theme/TabItem"; [Msty](https://msty.app/) is an application for Windows, Mac, and Linux that makes it really easy to run online as well as local open-source models, including Llama-2, DeepSeek Coder, etc. No need to fidget with your terminal, run a command, or anything. Just download the app from the website, click a button, and you are up and running. Continue can then be configured to use the `Msty` LLM class: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Msty", - "provider": "msty", - "model": "deepseek-coder:6.7b", - "completionOptions": {} - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Msty + provider: msty + model: deepseek-coder:6.7b + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Msty", + "provider": "msty", + "model": "deepseek-coder:6.7b", + } + ] + ``` + + ## Completion Options @@ -33,21 +42,34 @@ In addition to the model type, you can also configure some of the parameters tha If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like this: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Msty", - "provider": "msty", - "model": "deepseek-coder:6.7b", - "requestOptions": { - "headers": { - "Authorization": "Bearer xxx" + + + ```yaml title="Package or config.yaml" + models: + - name: Msty + provider: msty + model: deepseek-coder:6.7b + requestOptions: + headers: + Authorization: Bearer xxx + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Msty", + "provider": "msty", + "model": "deepseek-coder:6.7b", + "requestOptions": { + "headers": { + "Authorization": "Bearer xxx" + } } } - } - ] -} -``` + ] + ``` + + [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Msty.ts) diff --git a/docs/docs/customize/model-providers/more/nebius.mdx b/docs/docs/customize/model-providers/more/nebius.mdx index ec32edd23..5c010d38c 100644 --- a/docs/docs/customize/model-providers/more/nebius.mdx +++ b/docs/docs/customize/model-providers/more/nebius.mdx @@ -11,29 +11,53 @@ Available models can be found on the [Nebius AI Studio models page](https://stud ## Chat model -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama 3.1 405b", - "provider": "nebius", - "model": "llama3.1-405b", - "apiKey": "[API_KEY]" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Llama 3.1 405b + provider: nebius + model: llama3.1-405b + apiKey: ${{ secrets.NEBIUS_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama 3.1 405b", + "provider": "nebius", + "model": "llama3.1-405b", + "apiKey": "[API_KEY]" + } + ] + ``` + + ## Embeddings model Available models can be found on the [Nebius AI Studio embeddings page](https://studio.nebius.ai/models/embedding) -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "nebius", - "model": "BAAI/bge-en-icl", - "apiKey": "[API_KEY]" - } -} -``` + + + ```yaml title="config.yaml" + models: + - name: BAAI Embedder + provider: nebius + model: BAAI/bge-en-icl + apiKey: ${{ secrets.NEBIUS_API_KEY }} + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "nebius", + "model": "BAAI/bge-en-icl", + "apiKey": "[API_KEY]" + } + ``` + + diff --git a/docs/docs/customize/model-providers/more/novita.mdx b/docs/docs/customize/model-providers/more/novita.mdx index 799a4cf62..1fb2b2644 100644 --- a/docs/docs/customize/model-providers/more/novita.mdx +++ b/docs/docs/customize/model-providers/more/novita.mdx @@ -5,17 +5,28 @@ import TabItem from "@theme/TabItem"; [Novita AI](https://novita.ai?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) offers an affordable, reliable, and simple inference platform with scalable [LLM API](https://novita.ai/docs/model-api/reference/introduction.html), empowering developers to build AI applications. Try the [Novita AI Llama 3 API Demo](https://novita.ai/model-api/product/llm-api/playground/meta-llama-llama-3.1-70b-instruct?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) today!. You can sign up [here](https://novita.ai/user/login?&redirect=/&utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), copy your API key on the [Key Management](https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), and then hit the play button on any model from the [Novita AI Models list](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link). Change `~/.continue/config.json` to look like this: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama 3.1 8B", - "provider": "novita", - "model": "meta-llama/llama-3.1-8b-instruct", - "apiKey": "YOUR_API_KEY" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Llama 3.1 8B + provider: novita + model: meta-llama/llama-3.1-8b-instruct + apiKey: ${{ secrets.NOVITA_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama 3.1 8B", + "provider": "novita", + "model": "meta-llama/llama-3.1-8b-instruct", + "apiKey": "YOUR_API_KEY" + } + ] + ``` + + [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Novita.ts) diff --git a/docs/docs/customize/model-providers/more/nvidia.mdx b/docs/docs/customize/model-providers/more/nvidia.mdx index fde522cea..b60c99a4e 100644 --- a/docs/docs/customize/model-providers/more/nvidia.mdx +++ b/docs/docs/customize/model-providers/more/nvidia.mdx @@ -13,18 +13,29 @@ import TabItem from "@theme/TabItem"; We recommend configuring **Nemotron-4-340B-Instruct** as your chat model. -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Nemotron-4-340B-Instruct", - "provider": "nvidia", - "model": "nvidia-nemotron-4-340b-instruct", - "apiKey": "[API_KEY]" - } - ] -} -``` + + + ```yaml title="config.yaml" + models: + - name: Nemotron-4-340B-Instruct + provider: nvidia + model: nvidia-nemotron-4-340b-instruct + apiKey: ${{ secrets.NVIDIA_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Nemotron-4-340B-Instruct", + "provider": "nvidia", + "model": "nvidia-nemotron-4-340b-instruct", + "apiKey": "[API_KEY]" + } + ] + ``` + + ## Autocomplete model @@ -36,18 +47,31 @@ NVIDIA currently does not offer any autocomplete models. We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings model. -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "nvidia", - "model": "nvidia/nv-embedqa-mistral-7b-v2", - "apiKey": "[API_KEY]" - } -} -``` + + + ```yaml title="config.yaml" + models: + - name: Nvidia Embedder + provider: nvidia + model: nvidia/nv-embedqa-mistral-7b-v2 + apiKey: ${{ secrets.NVIDIA_API_KEY }} + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "nvidia", + "model": "nvidia/nv-embedqa-mistral-7b-v2", + "apiKey": "[API_KEY]" + } + ``` + + ## Reranking model NVIDIA currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. diff --git a/docs/docs/customize/model-providers/more/openrouter.mdx b/docs/docs/customize/model-providers/more/openrouter.mdx index 7f01c463a..c112cda36 100644 --- a/docs/docs/customize/model-providers/more/openrouter.mdx +++ b/docs/docs/customize/model-providers/more/openrouter.mdx @@ -7,37 +7,64 @@ OpenRouter is a unified interface for commercial and open-source models, giving Change `~/.continue/config.json` to look like the following. -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "OpenRouter LLaMA 70 8B", - "provider": "openrouter", - "model": "meta-llama/llama-3-70b-instruct", - "apiBase": "https://openrouter.ai/api/v1", - "apiKey": "..." - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: OpenRouter LLaMA 70 8B + provider: openrouter + model: meta-llama/llama-3-70b-instruct + apiBase: https://openrouter.ai/api/v1 + apiKey: ${{ secrets.OPEN_ROUTER_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "OpenRouter LLaMA 70 8B", + "provider": "openrouter", + "model": "meta-llama/llama-3-70b-instruct", + "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: -```json title="config.json (Deprecated)" -{ - "models": [ - { - ... - "requestOptions": { - "extraBodyProperties": { - "transforms": [] + + + ```yaml title="Package or config.yaml" + models: + - name: Example Model + provider: exampleProvider + model: example-model + requestOptions: + extraBodyProperties: + transforms: [] + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Example Model", + "provider": "exampleProvider", + "model": "example-model", + "requestOptions": { + "extraBodyProperties": { + "transforms": [] + } + } } - } - } - ] -} -``` + ] + ``` + + Learn more about available settings [here](https://openrouter.ai/docs). diff --git a/docs/docs/customize/model-providers/more/replicatellm.mdx b/docs/docs/customize/model-providers/more/replicatellm.mdx index c87b152a3..f226b082e 100644 --- a/docs/docs/customize/model-providers/more/replicatellm.mdx +++ b/docs/docs/customize/model-providers/more/replicatellm.mdx @@ -5,18 +5,29 @@ import TabItem from "@theme/TabItem"; Replicate is a great option for newly released language models or models that you've deployed through their platform. Sign up for an account [here](https://replicate.ai/), copy your API key, and then select any model from the [Replicate Streaming List](https://replicate.com/collections/streaming-language-models). Change `~/.continue/config.json` to look like this: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Replicate CodeLLama", - "provider": "replicate", - "model": "codellama-13b", - "apiKey": "YOUR_API_KEY" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Replicate CodeLLama + provider: replicate + model: codellama-13b + apiKey: ${{ secrets.REPLICATE_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Replicate CodeLLama", + "provider": "replicate", + "model": "codellama-13b", + "apiKey": "REPLICATE_API_KEY" + } + ] + ``` + + If you don't specify the `model` parameter, it will default to `replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781`. diff --git a/docs/docs/customize/model-providers/more/sagemaker.mdx b/docs/docs/customize/model-providers/more/sagemaker.mdx index c39b5bc7f..9a25b3990 100644 --- a/docs/docs/customize/model-providers/more/sagemaker.mdx +++ b/docs/docs/customize/model-providers/more/sagemaker.mdx @@ -5,24 +5,42 @@ import TabItem from "@theme/TabItem"; SageMaker can be used for both chat and embedding models. Chat models are supported for endpoints deployed with [LMI](https://docs.djl.ai/docs/serving/serving/docs/lmi/index.html), and embedding models are supported for endpoints deployed with [HuggingFace TEI](https://huggingface.co/blog/sagemaker-huggingface-embedding) -To setup SageMaker as a chat model provider, add the following to your `config.json` file: +Here is an example Sagemaker configuration setup: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "deepseek-6.7b-instruct", + + + ```yaml title="config.yaml" + models: + - name: deepseek-6.7b-instruct + provider: sagemaker + model: lmi-model-deepseek-coder-xxxxxxx + region: us-west-2 + roles: + - chat + - name: mxbai-embed + provider: sagemaker + model: mxbai-embed-large-v1-endpoint + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "deepseek-6.7b-instruct", + "provider": "sagemaker", + "model": "lmi-model-deepseek-coder-xxxxxxx", + "region": "us-west-2" + } + ], + "embeddingsProvider": { "provider": "sagemaker", - "model": "lmi-model-deepseek-coder-xxxxxxx", - "region": "us-west-2" + "model": "mxbai-embed-large-v1-endpoint" } - ], - "embeddingsProvider": { - "provider": "sagemaker", - "model": "mxbai-embed-large-v1-endpoint" - } -} -``` + ``` + + The value in model should be the SageMaker endpoint name you deployed. diff --git a/docs/docs/customize/model-providers/more/scaleway.mdx b/docs/docs/customize/model-providers/more/scaleway.mdx index 3f0d8ac54..46681134b 100644 --- a/docs/docs/customize/model-providers/more/scaleway.mdx +++ b/docs/docs/customize/model-providers/more/scaleway.mdx @@ -16,18 +16,29 @@ Read the [quickstart documentation here](https://www.scaleway.com/en/docs/ai-dat We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model. [Click here](https://www.scaleway.com/en/docs/ai-data/generative-apis/reference-content/supported-models/) to see the list of available chat models. -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Qwen2.5-Coder-32B-Instruct", - "provider": "scaleway", - "model": "qwen2.5-coder-32b-instruct", - "apiKey": "[API_KEY]" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Qwen2.5-Coder-32B-Instruct + provider: scaleway + model: qwen2.5-coder-32b-instruct + apiKey: ${{ secrets.SCALEWAY_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Qwen2.5-Coder-32B-Instruct", + "provider": "scaleway", + "model": "qwen2.5-coder-32b-instruct", + "apiKey": "[API_KEY]" + } + ] + ``` + + ## Autocomplete model @@ -39,12 +50,25 @@ Scaleway currently does not offer any autocomplete models. We recommend configuring **BGE-Multilingual-Gemma2** as your embeddings model. -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "scaleway", - "model": "bge-multilingual-gemma2", - "apiKey": "[API_KEY]" - } -} -``` + + + ```yaml title="config.yaml" + models: + - name: BGE Multilingual Gemma2 + provider: scaleway + model: bge-multilingual-gemma2 + apiKey: ${{ secrets.SCALEWAY_API_KEY }} + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "scaleway", + "model": "bge-multilingual-gemma2", + "apiKey": "[API_KEY]" + } + ``` + + diff --git a/docs/docs/customize/model-providers/more/siliconflow.mdx b/docs/docs/customize/model-providers/more/siliconflow.mdx index d5814d567..2dba25ec8 100644 --- a/docs/docs/customize/model-providers/more/siliconflow.mdx +++ b/docs/docs/customize/model-providers/more/siliconflow.mdx @@ -13,33 +13,67 @@ You can get an API key from the [Silicon Cloud](https://cloud.siliconflow.cn/acc We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model. -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Qwen", - "provider": "siliconflow", - "model": "Qwen/Qwen2.5-Coder-32B-Instruct", - "apiKey": "[API_KEY]" - } - ] -} -``` + + + ```yaml title="config.yaml" + models: + - name: Qwen + provider: siliconflow + model: Qwen/Qwen2.5-Coder-32B-Instruct + apiKey: ${{ secrets.SILICONFLOW_API_KEY }} + roles: + - chat + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Qwen", + "provider": "siliconflow", + "model": "Qwen/Qwen2.5-Coder-32B-Instruct", + "apiKey": "[API_KEY]" + } + ] + ``` + + ## Autocomplete model We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete model. -```json title="config.json (Deprecated)" -{ - "tabAutocompleteModel": { - "title": "Qwen", - "provider": "siliconflow", - "model": "Qwen/Qwen2.5-Coder-7B-Instruct", - "apiKey": "[API_KEY]" - } -} -``` + + + ```yaml title="config.yaml" + models: + - name: Qwen + provider: siliconflow + model: Qwen/Qwen2.5-Coder-32B-Instruct + apiKey: ${{ secrets.SILICONFLOW_API_KEY }} + roles: + - autocomplete + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Qwen", + "provider": "siliconflow", + "model": "Qwen/Qwen2.5-Coder-32B-Instruct", + "apiKey": "[API_KEY]" + } + ] + "tabAutocompleteModel": { + "title": "Qwen", + "provider": "siliconflow", + "model": "Qwen/Qwen2.5-Coder-7B-Instruct", + "apiKey": "[API_KEY]" + } + ``` + + ## Embeddings model diff --git a/docs/docs/customize/model-providers/more/textgenwebui.mdx b/docs/docs/customize/model-providers/more/textgenwebui.mdx index ea9c626b5..a61230bf2 100644 --- a/docs/docs/customize/model-providers/more/textgenwebui.mdx +++ b/docs/docs/customize/model-providers/more/textgenwebui.mdx @@ -3,17 +3,28 @@ import TabItem from "@theme/TabItem"; # TextGenWebUI -TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, and then configure it in your `config.json` like this: +TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, and then configure it like this: -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Text Generation WebUI", - "provider": "text-gen-webui", - "apiBase": "http://localhost:5000/v1", - "model": "MODEL_NAME" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Text Generation WebUI + provider: text-gen-webui + apiBase: http://localhost:5000/v1 + model: MODEL_NAME + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Text Generation WebUI", + "provider": "text-gen-webui", + "apiBase": "http://localhost:5000/v1", + "model": "MODEL_NAME" + } + ] + ``` + + diff --git a/docs/docs/customize/model-providers/more/together.mdx b/docs/docs/customize/model-providers/more/together.mdx index 095005bf5..2e776da1c 100644 --- a/docs/docs/customize/model-providers/more/together.mdx +++ b/docs/docs/customize/model-providers/more/together.mdx @@ -12,7 +12,7 @@ The Together API is a cloud platform for running large AI models. You can sign u - name: Together Qwen2.5 Coder provider: together model: Qwen/Qwen2.5-Coder-32B-Instruct - apiKeySecret: TOGETHER_API_KEY + apiKey: ${{ secrets.TOGETHER_API_KEY }} ``` diff --git a/docs/docs/customize/model-providers/more/vllm.mdx b/docs/docs/customize/model-providers/more/vllm.mdx index 3bbf89707..ec962347a 100644 --- a/docs/docs/customize/model-providers/more/vllm.mdx +++ b/docs/docs/customize/model-providers/more/vllm.mdx @@ -13,50 +13,87 @@ vllm serve meta-llama/Meta-Llama-3.1-8B-Instruct We recommend configuring **Llama3.1 8B** as your chat model. -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama3.1 8B Instruct", - "provider": "vllm", - "model": "meta-llama/Meta-Llama-3.1-8B-Instruct", - "apiBase": "http:///v1" - } - ] -} -``` + + + ```yaml title="config.yaml" + models: + - name: Llama3.1 8B Instruct + provider: vllm + model: meta-llama/Meta-Llama-3.1-8B-Instruct + apiBase: http:///v1 + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama3.1 8B Instruct", + "provider": "vllm", + "model": "meta-llama/Meta-Llama-3.1-8B-Instruct", + "apiBase": "http:///v1" + } + ] + ``` + + ## Autocomplete model We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model. -```json title="config.json (Deprecated)" -{ - "tabAutocompleteModel": { - "title": "Qwen2.5-Coder 1.5B", - "provider": "vllm", - "model": "Qwen/Qwen2.5-Coder-1.5B" - "apiBase": "http:///v1" - } -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Qwen2.5-Coder 1.5B + provider: vllm + model: Qwen/Qwen2.5-Coder-1.5B + apiBase: http:///v1 + roles: + - autocomplete + ``` + + + ```json title="config.json (Deprecated)" + "tabAutocompleteModel": { + "title": "Qwen2.5-Coder 1.5B", + "provider": "vllm", + "model": "Qwen/Qwen2.5-Coder-1.5B", + "apiBase": "http:///v1" + } + ``` + + ## Embeddings model We recommend configuring **Nomic Embed Text** as your embeddings model. -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "vllm", - "model": "nomic-ai/nomic-embed-text-v1" - "apiBase": "http:///v1" - } -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: VLLM Nomad Embed Text + provider: vllm + model: nomic-ai/nomic-embed-text-v1 + apiBase: http:///v1 + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "vllm", + "model": "nomic-ai/nomic-embed-text-v1", + "apiBase": "http:///v1" + } + ``` + + ## Reranking model -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. -The continue implementation uses [OpenAI](../top-level/openai.md) under the hood. [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Vllm.ts) +The continue implementation uses [OpenAI](../top-level/openai.mdx) under the hood. [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Vllm.ts) diff --git a/docs/docs/customize/model-providers/more/watsonx.mdx b/docs/docs/customize/model-providers/more/watsonx.mdx index 428e7f0d3..f468af6e1 100644 --- a/docs/docs/customize/model-providers/more/watsonx.mdx +++ b/docs/docs/customize/model-providers/more/watsonx.mdx @@ -41,100 +41,184 @@ To authenticate to your watsonx.ai Software instance with Continue, you can use ## Configuration -Add the following configuration to your `config.json` file to use the watsonx provider. +Add the following configuration: -```json title="~/.continue/config.json" -{ - "models": [ - { - "model": "model ID", - "title": "watsonx - Model Name", - "provider": "watsonx", - "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com", - "projectId": "PROJECT_ID", - "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD", - "apiVersion": "2024-03-14" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: watsonx - Model Name + provider: watsonx + model: model ID + apiBase: https://us-south.ml.cloud.ibm.com + projectId: PROJECT_ID + apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD + apiVersion: 2024-03-14 + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "model": "model ID", + "title": "watsonx - Model Name", + "provider": "watsonx", + "apiBase": "https://us-south.ml.cloud.ibm.com", + "projectId": "PROJECT_ID", + "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD", + "apiVersion": "2024-03-14" + } + ] + ``` + + `apiVersion` is optional and defaults to the latest version. If you are using a custom deployment endpoint, set `deploymentID` to the model's deployment ID. You can find it in the watsonx.ai Prompt Lab UI by selecting the corresponding model and opening the `` tab on the right, which will display the endpoint's URL containing the deployment ID. -```json title="~/.continue/config.json" -{ - "models": [ - { - "model": "model ID", - "title": "watsonx - Model Name", - "provider": "watsonx", - "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com", - "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD", - "apiVersion": "2024-03-14", - "deploymentId": "DEPLOYMENT_ID" - } - ] -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: watsonx - Model Name + provider: watsonx + model: model ID + apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com + apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD + apiVersion: 2024-03-14 + deploymentId: DEPLOYMENT_ID + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "model": "model ID", + "title": "watsonx - Model Name", + "provider": "watsonx", + "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com", + "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD", + "apiVersion": "2024-03-14", + "deploymentId": "DEPLOYMENT_ID" + } + ] + ``` + + ### Configuration Options Make sure to specify a template name, such as `granite` or `llama3`, and to set the `contextLength` to the model's context window size. You can also configure generation parameters, such as temperature, topP, topK, frequency penalty, and stop sequences: -```json title="~/.continue/config.json" -{ - "models": [ - { - "model": "ibm/granite-20b-code-instruct", - "title": "Granite Code 20b", - "provider": "watsonx", - "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com", - "projectId": "PROJECT_ID", - "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD", - "apiVersion": "2024-03-14", - "template": "granite", - "contextLength": 8000, - "completionOptions": { - "temperature": 0.1, - "topP": 0.3, - "topK": 20, - "maxTokens": 2000, - "frequencyPenalty": 1.1, - "stop": ["Question:", "\n\n\n"] + + + ```yaml title="config.yaml" + models: + - name: Granite Code 20b + provider: watsonx + model: ibm/granite-20b-code-instruct + apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com + projectId: PROJECT_ID + apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD + apiVersion: 2024-03-14 + template: granite + contextLength: 8000 + defaultCompletionOptions: + temperature: 0.1 + topP: 0.3 + topK: 20 + maxTokens: 2000 + frequencyPenalty: 1.1 + stop: + - Question: + - "\n\n\n" + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "model": "ibm/granite-20b-code-instruct", + "title": "Granite Code 20b", + "provider": "watsonx", + "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com", + "projectId": "PROJECT_ID", + "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD", + "apiVersion": "2024-03-14", + "template": "granite", + "contextLength": 8000, + "completionOptions": { + "temperature": 0.1, + "topP": 0.3, + "topK": 20, + "maxTokens": 2000, + "frequencyPenalty": 1.1, + "stop": ["Question:", "\n\n\n"] + } } - } - ] -} -``` + ] + ``` + + ## Tab Auto Complete Model Granite models are recommended for tab auto complete. The configuration is similar to that of the chat models: -```json title="~/.continue/config.json" -{ - "tabAutocompleteModel": { - "model": "ibm/granite-8b-code-instruct", - "title": "Granite Code 8b", - "provider": "watsonx", - "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com", - "projectId": "PROJECT_ID", - "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD", - "apiVersion": "2024-03-14", - "contextLength": 4000 - } -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Granite Code 8b + provider: watsonx + model: ibm/granite-8b-code-instruct + apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com + projectId: PROJECT_ID + apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD + apiVersion: 2024-03-14 + roles: + - autocomplete + ``` + + + ```json title="config.json (Deprecated)" + "tabAutocompleteModel": { + "model": "ibm/granite-8b-code-instruct", + "title": "Granite Code 8b", + "provider": "watsonx", + "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com", + "projectId": "PROJECT_ID", + "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD", + "apiVersion": "2024-03-14", + "contextLength": 4000 + } + ``` + + ## Embeddings Model To view the list of available embeddings models, visit [this page](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-embed.html?context=wx&pos=2#ibm-provided). -```json title="~/.continue/config.json -{ + + + ```yaml title="config.yaml" + models: + - name: Watsonx Embedder + provider: watsonx + model: ibm/slate-30m-english-rtrvr-v2 + apiBase: https://us-south.ml.cloud.ibm.com + projectId: PROJECT_ID + apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD + apiVersion: 2024-03-14 + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" "embeddingsProvider": { "provider": "watsonx", "model": "ibm/slate-30m-english-rtrvr-v2", @@ -143,5 +227,6 @@ To view the list of available embeddings models, visit [this page](https://datap "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD", "apiVersion": "2024-03-14" } -} -``` + ``` + + diff --git a/docs/docs/customize/model-providers/top-level/anthropic.mdx b/docs/docs/customize/model-providers/top-level/anthropic.mdx index 8ef4ebb64..6cfc9d06c 100644 --- a/docs/docs/customize/model-providers/top-level/anthropic.mdx +++ b/docs/docs/customize/model-providers/top-level/anthropic.mdx @@ -14,18 +14,29 @@ You can get an API key from the [Anthropic console](https://console.anthropic.co We recommend configuring **Claude 3.5 Sonnet** as your chat model. -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Claude 3.5 Sonnet", - "provider": "anthropic", - "model": "claude-3-5-sonnet-latest", - "apiKey": "[API_KEY]" - } - ] -} -``` + + + ```yaml title="config.yaml" + models: + - name: Claude 3.5 Sonnet + provider: anthropic + model: claude-3-5-sonnet-latest + apiKey: ${{ secrets.ANTHROPIC_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Claude 3.5 Sonnet", + "provider": "anthropic", + "model": "claude-3-5-sonnet-latest", + "apiKey": "[API_KEY]" + } + ] + ``` + + ## Autocomplete model @@ -37,13 +48,13 @@ Anthropic currently does not offer any autocomplete models. Anthropic currently does not offer any embeddings models. -[Click here](../../model-types/embeddings.md) to see a list of embeddings model providers. +[Click here](../../model-types/embeddings.mdx) to see a list of embeddings model providers. ## Reranking model Anthropic currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. ## Prompt caching @@ -51,11 +62,25 @@ Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/do To enable caching of the system message and the turn-by-turn conversation, update your your model configuration as following: -```json title="config.json (Deprecated)" -{ + + + ```yaml title="Package or config.yaml" + models: + - name: Anthropic + provider: anthropic + model: claude-3-5-sonnet-latest + apiKey: ${{ secrets.ANTHROPIC_API_KEY }} + roles: + - chat + cacheBehavior: + cacheSystemMessage: true + cacheConversation: true + ``` + + + ```json title="config.json (Deprecated)" "models": [ { - // Enable prompt caching "cacheBehavior": { "cacheSystemMessage": true, "cacheConversation": true @@ -66,5 +91,6 @@ To enable caching of the system message and the turn-by-turn conversation, updat "apiKey": "[API_KEY]" } ] -} -``` + ``` + + diff --git a/docs/docs/customize/model-providers/top-level/azure.mdx b/docs/docs/customize/model-providers/top-level/azure.mdx index 111460b73..79e4c7522 100644 --- a/docs/docs/customize/model-providers/top-level/azure.mdx +++ b/docs/docs/customize/model-providers/top-level/azure.mdx @@ -9,60 +9,101 @@ import TabItem from "@theme/TabItem"; Azure AI Foundry is a cloud-based service that provides access to models from OpenAI, Mistral AI, and others, integrated with the security and enterprise features of the Microsoft Azure platform. To get started, create an Azure AI Foundry resource in the [Azure portal](https://portal.azure.com). :::info - For details on OpenAI model setup, see [Azure OpenAI Service configuration](#general-model-configuration). - ::: ## Chat model We recommend configuring **GPT-4o** as your chat model. -```json title="config.json (Deprecated)" -"models": [{ - "title": "GPT-4o", - "provider": "azure", - "model": "gpt-4o", - "apiBase": "", - "deployment": "", - "apiKey": "" // If you use subscription key, try using Azure gateway to rename it apiKey -}] -``` + + + ```yaml title="config.yaml" + models: + - name: GPT-4o + provider: azure + model: gpt-4o + apiBase: + deployment: + apiKey: ${{ secrets.AZURE_API_KEY }} # If you use subscription key, try using Azure gateway to rename it apiKey + ``` + + + ```json title="config.json (Deprecated)" + "models": [{ + "title": "GPT-4o", + "provider": "azure", + "model": "gpt-4o", + "apiBase": "", + "deployment": "", + "apiKey": "" // If you use subscription key, try using Azure gateway to rename it apiKey + }] + ``` + + ## Autocomplete model We recommend configuring **Codestral** as your autocomplete model. -```json title="config.json (Deprecated)" -{ - "tabAutocompleteModel": { - "title": "Codestral", - "provider": "mistral", - "model": "codestral-latest" - } -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Codestral + provider: mistral + model: codestral-latest + roles: + - autocomplete + ``` + + + ```json title="config.json (Deprecated)" + "tabAutocompleteModel": { + "title": "Codestral", + "provider": "mistral", + "model": "codestral-latest" + } + ``` + + ## Embeddings model We recommend configuring **text-embedding-3-large** as your embeddings model. -```json title="config.json (Deprecated)" -"embeddingsProvider": { - "provider": "openai", - "model": "text-embedding-3-large", - "apiBase": "", - "deployment": "", - "apiType": "azure", - "apiKey": "" -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Text Embedding-3 Large + provider: openai + model: text-embedding-3-large + apiBase: + deployment: + apiType: azure + apiKey: ${{ secrets.AZURE_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "openai", + "model": "text-embedding-3-large", + "apiBase": "", + "deployment": "", + "apiType": "azure", + "apiKey": "" + } + ``` + + ## Reranking model Azure OpenAI currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking models. +[Click here](../../model-types/reranking.mdx) to see a list of reranking models. ## Privacy @@ -82,14 +123,30 @@ To find this information in _Azure AI Foundry_, first select the model that you For example, a Target URI of `https://just-an-example.openai.azure.com/openai/deployments/gpt-4o-july/chat/completions?api-version=2023-03-15-preview` would map to the following: -```json title="config.json (Deprecated)" -{ - "title": "GPT-4o Azure", - "model": "gpt-4o", - "provider": "openai", - "apiBase": "https://just-an-example.openai.azure.com", - "deployment": "gpt-4o-july", - "apiVersion": "2023-03-15-preview", - "apiKey": "" -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: GPT-4o Azure + model: gpt-4o + provider: openai + apiBase: https://just-an-example.openai.azure.com + deployment: gpt-4o-july + apiVersion: 2023-03-15-preview + apiKey: ${{ secrets.AZURE_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + { + "title": "GPT-4o Azure", + "model": "gpt-4o", + "provider": "openai", + "apiBase": "https://just-an-example.openai.azure.com", + "deployment": "gpt-4o-july", + "apiVersion": "2023-03-15-preview", + "apiKey": "" + } + ``` + + diff --git a/docs/docs/customize/model-providers/top-level/bedrock.mdx b/docs/docs/customize/model-providers/top-level/bedrock.mdx index cf6edf0e4..be716081e 100644 --- a/docs/docs/customize/model-providers/top-level/bedrock.mdx +++ b/docs/docs/customize/model-providers/top-level/bedrock.mdx @@ -161,8 +161,6 @@ To setup Bedrock using custom imported models, add the following to your config modelArn: arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX region: us-west-2 profile: bedrock - roles: - - chat ``` diff --git a/docs/docs/customize/model-providers/top-level/deepseek.mdx b/docs/docs/customize/model-providers/top-level/deepseek.mdx index f6c1701f1..703959473 100644 --- a/docs/docs/customize/model-providers/top-level/deepseek.mdx +++ b/docs/docs/customize/model-providers/top-level/deepseek.mdx @@ -21,7 +21,7 @@ We recommend configuring **DeepSeek Chat** as your chat model. - name: DeepSeek Chat provider: deepseek model: deepseek-chat - apiKey: [API_KEY] + apiKey: ${{ secrets.DEEPSEEK_API_KEY }} ``` @@ -68,10 +68,10 @@ We recommend configuring **DeepSeek Coder** as your autocomplete model. DeepSeek currently does not offer any embeddings models. -[Click here](../../model-types/embeddings.md) to see a list of embeddings model providers. +[Click here](../../model-types/embeddings.mdx) to see a list of embeddings model providers. ## Reranking model DeepSeek currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. diff --git a/docs/docs/customize/model-providers/top-level/gemini.mdx b/docs/docs/customize/model-providers/top-level/gemini.mdx index 490c00996..eaf4e981d 100644 --- a/docs/docs/customize/model-providers/top-level/gemini.mdx +++ b/docs/docs/customize/model-providers/top-level/gemini.mdx @@ -21,9 +21,7 @@ We recommend configuring **Gemini 1.5 Pro** as your chat model. - name: Gemini 1.5 Pro provider: gemini model: gemini-1.5-pro-latest - apiKey: "[API_KEY]" - roles: - - chat + apiKey: ${{ secrets.GEMINI_API_KEY }} ``` @@ -57,7 +55,7 @@ We recommend configuring **text-embedding-004** as your embeddings model. - name: Gemini Embeddings provider: gemini model: models/text-embedding-004 - apiKey: "[API_KEY]" + apiKey: ${{ secrets.GEMINI_API_KEY }} roles: - embed ``` @@ -77,4 +75,4 @@ We recommend configuring **text-embedding-004** as your embeddings model. Gemini currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. diff --git a/docs/docs/customize/model-providers/top-level/mistral.mdx b/docs/docs/customize/model-providers/top-level/mistral.mdx index 158b8169f..4a86454eb 100644 --- a/docs/docs/customize/model-providers/top-level/mistral.mdx +++ b/docs/docs/customize/model-providers/top-level/mistral.mdx @@ -21,7 +21,7 @@ We recommend configuring **Mistral Large** as your chat model. - name: Mistral Large provider: mistral model: mistral-large-latest - apiKeySecret: MISTRAL_API_KEY + apiKey: MISTRAL_API_KEY roles: - chat ``` @@ -79,7 +79,7 @@ We recommend configuring **Mistral Embed** as your embeddings model. - name: Mistral Embed provider: mistral model: mistral-embed - apiKeySecret: MISTRAL_API_KEY + apiKey: MISTRAL_API_KEY apiBase: https://api.mistral.ai/v1 roles: - embed @@ -101,4 +101,4 @@ We recommend configuring **Mistral Embed** as your embeddings model. Mistral currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. diff --git a/docs/docs/customize/model-providers/top-level/ollama.mdx b/docs/docs/customize/model-providers/top-level/ollama.mdx index 6052372f0..b3da6a978 100644 --- a/docs/docs/customize/model-providers/top-level/ollama.mdx +++ b/docs/docs/customize/model-providers/top-level/ollama.mdx @@ -89,7 +89,7 @@ We recommend configuring **Nomic Embed Text** as your embeddings model. Ollama currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. ## Using a remote instance @@ -99,7 +99,7 @@ To configure a remote instance of Ollama, add the `"apiBase"` property to your m ```yaml title="Package or config.yaml" models: - - title: Llama3.1 8B + - name: Llama3.1 8B provider: ollama model: llama3.1:8b apiBase: http://:11434 diff --git a/docs/docs/customize/model-providers/top-level/openai.mdx b/docs/docs/customize/model-providers/top-level/openai.mdx index c4338e036..e057cbd1f 100644 --- a/docs/docs/customize/model-providers/top-level/openai.mdx +++ b/docs/docs/customize/model-providers/top-level/openai.mdx @@ -21,7 +21,7 @@ We recommend configuring **GPT-4o** as your chat model. - name: GPT-4o provider: openai model: gpt-4o - apiKeySecret: OPENAI_KEY + apiKey: ${{ secrets.HUGGINGFACE_TEI_API_KEY }} ``` @@ -57,7 +57,7 @@ We recommend configuring **text-embedding-3-large** as your embeddings model. - name: OpenAI Embeddings provider: openai model: text-embedding-3-large - apiKey: + apiKey: ${{ secrets.HUGGINGFACE_TEI_API_KEY }} roles: - embed ``` @@ -79,7 +79,7 @@ We recommend configuring **text-embedding-3-large** as your embeddings model. OpenAI currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. ## OpenAI compatible servers / APIs @@ -109,9 +109,7 @@ If you are using an OpenAI compatible server / API, you can change the `apiBase` provider: openai model: MODEL_NAME apiBase: http://localhost:8000/v1 - apiKeySecret: EMPTY - roles: - - chat + apiKey: ${{ secrets.CUSTOM_API_KEY }} ``` @@ -121,7 +119,7 @@ If you are using an OpenAI compatible server / API, you can change the `apiBase` "title": "OpenAI-compatible server / API", "provider": "openai", "model": "MODEL_NAME", - "apiKey": "EMPTY", + "apiKey": "CUSTOM_API_KEY", "apiBase": "http://localhost:8000/v1" } ] diff --git a/docs/docs/customize/model-providers/top-level/vertexai.mdx b/docs/docs/customize/model-providers/top-level/vertexai.mdx index 6146e1ce3..07be57891 100644 --- a/docs/docs/customize/model-providers/top-level/vertexai.mdx +++ b/docs/docs/customize/model-providers/top-level/vertexai.mdx @@ -21,7 +21,7 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model. - name: Claude 3.5 Sonnet provider: vertexai model: claude-3-5-sonnet-20240620 - projectId: [PROJECT_ID] + projectId: region: us-east5 ``` @@ -51,7 +51,7 @@ We recommend configuring **Codestral** or **code-gecko** as your autocomplete mo - name: Codestral (Vertex AI) provider: vertexai model: codestral - projectId: [PROJECT_ID] + projectId: region: us-central1 roles: - autocomplete @@ -81,7 +81,7 @@ We recommend configuring **text-embedding-004** as your embeddings model. - name: Text Embedding-004 provider: vertexai model: text-embedding-004 - projectId: [PROJECT_ID] + projectId: region: us-central1 roles: - embed @@ -103,4 +103,4 @@ We recommend configuring **text-embedding-004** as your embeddings model. Vertex AI currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. diff --git a/docs/docs/customize/model-providers/top-level/xAI.mdx b/docs/docs/customize/model-providers/top-level/xAI.mdx index 130ffa775..fea7b261d 100644 --- a/docs/docs/customize/model-providers/top-level/xAI.mdx +++ b/docs/docs/customize/model-providers/top-level/xAI.mdx @@ -21,7 +21,7 @@ We recommend configuring **grok-beta** as your chat model. - name: Grok Beta provider: xAI model: grok-beta - apiKey: + apiKey: ${{ secrets.GROK_API_KEY }} ``` @@ -31,7 +31,7 @@ We recommend configuring **grok-beta** as your chat model. "title": "Grok Beta", "provider": "xAI", "model": "grok-beta", - "apiKey": "[API_KEY]" + "apiKey": "" } ] ``` @@ -48,10 +48,10 @@ xAI currently does not offer any autocomplete models. xAI currently does not offer any embeddings models. -[Click here](../../model-types/embeddings.md) to see a list of embeddings model providers. +[Click here](../../model-types/embeddings.mdx) to see a list of embeddings model providers. ## Reranking model xAI currently does not offer any reranking models. -[Click here](../../model-types/reranking.md) to see a list of reranking model providers. +[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers. diff --git a/docs/docs/customize/model-types/autocomplete.md b/docs/docs/customize/model-types/autocomplete.md index d85920605..4b14775d1 100644 --- a/docs/docs/customize/model-types/autocomplete.md +++ b/docs/docs/customize/model-types/autocomplete.md @@ -11,6 +11,6 @@ In Continue, these models are used to display inline [Autocomplete](../../autoco ## Recommended Autocomplete models -If you have the ability to use any model, we recommend `Codestral` with [Mistral](../model-providers/top-level/mistral.md#autocomplete-model) or [Vertex AI](../model-providers/top-level/vertexai.md#autocomplete-model). +If you have the ability to use any model, we recommend `Codestral` with [Mistral](../model-providers/top-level/mistral.mdx#autocomplete-model) or [Vertex AI](../model-providers/top-level/vertexai.mdx#autocomplete-model). -If you want to run a model locally, we recommend `Qwen2.5-Coder 1.5B` with [Ollama](../model-providers/top-level/ollama.md#autocomplete-model). +If you want to run a model locally, we recommend `Qwen2.5-Coder 1.5B` with [Ollama](../model-providers/top-level/ollama.mdx#autocomplete-model). diff --git a/docs/docs/customize/model-types/chat.md b/docs/docs/customize/model-types/chat.md index fb6a91f15..447021251 100644 --- a/docs/docs/customize/model-types/chat.md +++ b/docs/docs/customize/model-types/chat.md @@ -9,10 +9,10 @@ A "chat model" is an LLM that is trained to respond in a conversational format. ## Recommended Chat models -If you have the ability to use any model, we recommend [Claude 3.5 Sonnet](../model-providers/top-level/anthropic.md). +If you have the ability to use any model, we recommend [Claude 3.5 Sonnet](../model-providers/top-level/anthropic.mdx). Otherwise, some of the next best options are: -- [GPT-4o](../model-providers/top-level/openai.md) -- [Gemini 1.5 Pro](../model-providers/top-level/gemini.md) +- [GPT-4o](../model-providers/top-level/openai.mdx) +- [Gemini 1.5 Pro](../model-providers/top-level/gemini.mdx) - [Llama3.1 405B](../tutorials/llama3.1.md) diff --git a/docs/docs/customize/model-types/embeddings.mdx b/docs/docs/customize/model-types/embeddings.mdx index 66fcf9a20..3f3d76dda 100644 --- a/docs/docs/customize/model-types/embeddings.mdx +++ b/docs/docs/customize/model-types/embeddings.mdx @@ -7,7 +7,7 @@ sidebar_position: 3 An "embeddings model" is trained to convert a piece of text into a vector, which can later be rapidly compared to other vectors to determine similarity between the pieces of text. Embeddings models are typically much smaller than LLMs, and will be extremely fast and cheap in comparison. -In Continue, embeddings are generated during indexing and then used by [@Codebase](../deep-dives/codebase.md) to perform similarity search over your codebase. +In Continue, embeddings are generated during indexing and then used by [@Codebase](../deep-dives/codebase.mdx) to perform similarity search over your codebase. :::info[Default model (VS Code only)] `transformers.js` is used as a default embeddings model in VS Code. In JetBrains, there currently is no default. @@ -21,83 +21,118 @@ The free trial supports embeddings (provider: `free-trial`) If you have the ability to use any model, we recommend `voyage-code-3`, which is listed below along with the rest of the options for embeddings models. -If you want to generate embeddings locally, we recommend using `nomic-embed-text` with [Ollama](../model-providers/top-level/ollama.md#embeddings-model). +If you want to generate embeddings locally, we recommend using `nomic-embed-text` with [Ollama](../model-providers/top-level/ollama.mdx#embeddings-model). ### Voyage AI After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this: -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "voyage", - "model": "voyage-code-3", - "apiKey": "" - } -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Voyage Code 3 + provider: voyage + model: voyage-code-3 + apiKey: ${{ secrets.VOYAGE_API_KEY }} + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "voyage", + "model": "voyage-code-3", + "apiKey": "" + } + ``` + + ### Ollama -See [here](../model-providers/top-level/ollama.md#embeddings-model) for instructions on how to use Ollama for embeddings. +See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instructions on how to use Ollama for embeddings. ### Transformers.js (currently VS Code only) [Transformers.js](https://huggingface.co/docs/transformers.js/index) is a JavaScript port of the popular [Transformers](https://huggingface.co/transformers/) library. It allows embeddings to be calculated entirely locally. The model used is `all-MiniLM-L6-v2`, which is shipped alongside the Continue extension. -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "transformers.js" - } -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: default-transformers + provider: transformers.js + roles: + - embed + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "transformers.js" + } + ``` + + ### Text Embeddings Inference [Hugging Face Text Embeddings Inference](https://huggingface.co/docs/text-embeddings-inference/en/index) enables you to host your own embeddings endpoint. You can configure embeddings to use your endpoint as follows: -```json title="config.json (Deprecated)" -{ - "embeddingsProvider": { - "provider": "huggingface-tei", - "apiBase": "http://localhost:8080" - } -} -``` + + + ```yaml title="Package or config.yaml" + models: + - name: Huggingface TEI Embedder + provider: huggingface-tei + apiBase: http://localhost:8080 + roles: [embed] + ``` + + + ```json title="config.json (Deprecated)" + "embeddingsProvider": { + "provider": "huggingface-tei", + "apiBase": "http://localhost:8080" + } + ``` + + ### OpenAI -See [here](../model-providers/top-level/openai.md#embeddings-model) for instructions on how to use OpenAI for embeddings. +See [here](../model-providers/top-level/openai.mdx#embeddings-model) for instructions on how to use OpenAI for embeddings. ### Cohere -See [here](../model-providers/more/cohere.md#embeddings-model) for instructions on how to use Cohere for embeddings. +See [here](../model-providers/more/cohere.mdx#embeddings-model) for instructions on how to use Cohere for embeddings. ### Gemini -See [here](../model-providers/top-level/gemini.md#embeddings-model) for instructions on how to use Gemini for embeddings. +See [here](../model-providers/top-level/gemini.mdx#embeddings-model) for instructions on how to use Gemini for embeddings. ### Vertex -See [here](../model-providers/top-level/vertexai.md#embeddings-model) for instructions on how to use Vertex for embeddings. +See [here](../model-providers/top-level/vertexai.mdx#embeddings-model) for instructions on how to use Vertex for embeddings. ### Mistral -See [here](../model-providers/top-level/mistral.md#embeddings-model) for instructions on how to use Mistral for embeddings. +See [here](../model-providers/top-level/mistral.mdx#embeddings-model) for instructions on how to use Mistral for embeddings. ### NVIDIA -See [here](../model-providers/more/nvidia.md#embeddings-model) for instructions on how to use NVIDIA for embeddings. +See [here](../model-providers/more/nvidia.mdx#embeddings-model) for instructions on how to use NVIDIA for embeddings. ### Bedrock -See [here](../model-providers/top-level/bedrock.md#embeddings-model) for instructions on how to use Bedrock for embeddings. +See [here](../model-providers/top-level/bedrock.mdx#embeddings-model) for instructions on how to use Bedrock for embeddings. ### WatsonX -See [here](../model-providers/more/watsonx.md#embeddings-model) for instructions on how to use WatsonX for embeddings. +See [here](../model-providers/more/watsonx.mdx#embeddings-model) for instructions on how to use WatsonX for embeddings. ### LMStudio -See [here](../model-providers/more/lmstudio.md#embeddings-model) for instructions on how to use LMStudio for embeddings. +See [here](../model-providers/more/lmstudio.mdx#embeddings-model) for instructions on how to use LMStudio for embeddings. diff --git a/docs/docs/customize/model-types/reranking.mdx b/docs/docs/customize/model-types/reranking.mdx index ef2622105..b824a2220 100644 --- a/docs/docs/customize/model-types/reranking.mdx +++ b/docs/docs/customize/model-types/reranking.mdx @@ -10,7 +10,7 @@ import TabItem from "@theme/TabItem"; A "reranking model" is trained to take two pieces of text (often a user question and a document) and return a relevancy score between 0 and 1, estimating how useful the document will be in answering the question. Rerankers are typically much smaller than LLMs, and will be extremely fast and cheap in comparison. -In Continue, reranking is used by [@Codebase](../deep-dives/codebase.md) in order to select the most relevant code snippets after vector search. +In Continue, reranking is used by [@Codebase](../deep-dives/codebase.mdx) in order to select the most relevant code snippets after vector search. ## Recommended reranking models @@ -26,7 +26,7 @@ Voyage AI offers the best reranking model for code with their `rerank-2` model. models: - name: My Voyage Reranker provider: voyage - apiKey: + apiKey: ${{ secrets.VOYAGE_API_KEY }} model: rerank-2 roles: - rerank @@ -56,7 +56,7 @@ See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rer - name: Cohere Reranker provider: cohere model: rerank-english-v3.0 - apiKey: + apiKey: ${{ secrets.COHERE_API_KEY }} roles: - rerank ``` @@ -114,7 +114,7 @@ The `"modelTitle"` field must match one of the models in your "models" array in - name: Huggingface-tei Reranker provider: huggingface-tei apiBase: http://localhost:8080 - apiKey: + apiKey: ${{ secrets.HUGGINGFACE_TEI_API_KEY }} roles: - rerank ``` diff --git a/docs/docs/customize/overview.md b/docs/docs/customize/overview.md index 83e479132..fdbd1a61e 100644 --- a/docs/docs/customize/overview.md +++ b/docs/docs/customize/overview.md @@ -6,36 +6,36 @@ keywords: [customize, configure, config] Continue can be deeply customized. For example you might: -- **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](/customize/model-providers). -- **Select different model providers for each Compose feature**. Different Continue features can use different model providers. We call these _model types_. For example, you can use a different model provider for chat than you do for autocomplete. Learn more about [model types](/customize/model-types) . -- **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/context-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/slash-commands). -- **Call external tools and functions**. Unchain your LLM with the power of _Tools_. You can call any external tool or function from your prompts. Currently only available with Anthropic. Learn more about [Tools](/customize/tools). +- **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](../customize/model-providers/). +- **Select different model providers for each Compose feature**. Different Continue features can use different model providers. We call these _model types_. For example, you can use a different model provider for chat than you do for autocomplete. Learn more about [model types](../customize/model-types/) . +- **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/context-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/slash-commands). +- **Call external tools and functions**. Unchain your LLM with the power of _Tools_. You can call any external tool or function from your prompts. Currently only available with Anthropic. Learn more about [Tools](/customize/tools). -Whatever you choose, you'll probably start by editing `config.json`. +Whatever you choose, you'll probably start by editing `config.yaml`. ## Editing config.json -Most custom configuration is done by editing `config.json`. This file is a JSON file that allows you to customize Continue to your liking. It is found at: +Most custom configuration is done by editing `config.yaml` (or Deprecated `config.json`). This is a YAML file that allows you to customize Continue to your liking. It is found at: -- MacOS and Linux: `~/.continue/config.json` -- Windows: `%USERPROFILE%\.continue\config.json` +- MacOS and Linux: `~/.continue/config.yaml` +- Windows: `%USERPROFILE%\.continue\config.yaml` -You can easily access `config.json` from the Continue Chat sidebar. Open the sidebar by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) and click the "gear" icon in the bottom right corner. +You can easily access config file from the Continue Chat sidebar. Open the sidebar by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) and click the "gear" icon in the bottom right corner. ![configure-continue](/img/configure-continue.png) -When editing this file, you can see the available options suggested as you type, or you can check the [full reference](./deep-dives/configuration.md). +When editing this file, you can see the available options suggested as you type, or you can check the [full reference](./deep-dives/configuration.mdx). :::info -`config.json` is created the first time you use Continue. If you'd like to reset your configuration to the default, you can delete this file and Continue will automatically recreate it with the default settings. +A configuration file is created the first time you use Continue. If you'd like to reset your configuration to the default, you can delete this file and Continue will automatically recreate it with the default settings. ::: :::info -When you save `config.json`, Continue will automatically refresh to take into account your changes. +When you save a configuration file from the IDE, Continue will automatically refresh to take into account your changes. ::: @@ -45,6 +45,6 @@ If you'd like to scope certain settings to a particular workspace, you can add a ## Programmatic configuration -`config.json` can handle the vast majority of necessary configuration, so we recommend using it whenever possible. However, if you need to programmatically configure Continue, you can use `config.ts`, which is located at `~/.continue/config.ts` (MacOS / Linux) or `%USERPROFILE%\.continue\config.ts` (Windows). +`config.yaml` or `config.json` can handle the vast majority of necessary configuration, so we recommend using it whenever possible. However, if you need to programmatically configure Continue, you can use `config.ts`, which is located at `~/.continue/config.ts` (MacOS / Linux) or `%USERPROFILE%\.continue\config.ts` (Windows). For examples of how to use `config.ts`, see [writing custom slash commands](./tutorials/build-your-own-slash-command.md#custom-slash-commands) or [writing custom context providers](./tutorials/build-your-own-context-provider.md). diff --git a/docs/docs/customize/slash-commands.mdx b/docs/docs/customize/slash-commands.mdx index 79cede310..661501097 100644 --- a/docs/docs/customize/slash-commands.mdx +++ b/docs/docs/customize/slash-commands.mdx @@ -8,7 +8,7 @@ import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; :::info -Slash commands can currently only be added using [`config.json`](../json-reference.md), which has been deprecated in favor of the [`YAML Config Format`](../reference.md). We recommend looking into [Prompt Files](../customize/deep-dives//prompt-files.md) to achieve similar functionality. +Slash commands can currently only be added using [`config.json`](../json-reference.md), which has been deprecated in favor of the [`YAML Config Format`](../reference.md). We recommend looking into [Prompt Files](../customize/deep-dives/prompt-files.md) to achieve similar functionality. ::: Slash commands are shortcuts that can be activated by typing '/' and selecting from the dropdown. For example, the built-in '/edit' slash command lets you stream edits directly into your editor. diff --git a/docs/docs/customize/tools.mdx b/docs/docs/customize/tools.mdx index 8f94462b1..6fac7f651 100644 --- a/docs/docs/customize/tools.mdx +++ b/docs/docs/customize/tools.mdx @@ -24,7 +24,7 @@ To let you balance speed and safety, each tool can be set to 1 of 3 modes: ### Custom tools -Currently custom tools can be configured using the [Model Context Protocol](https://modelcontextprotocol.io/introduction), a standard proposed by Anthropic to unify prompts, context, and tool use. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then configure your `config.json` like this: +Currently custom tools can be configured using the [Model Context Protocol](https://modelcontextprotocol.io/introduction), a standard proposed by Anthropic to unify prompts, context, and tool use. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then configure your [config](../customize/deep-dives/configuration.md) like this: diff --git a/docs/docs/customize/tutorials/build-your-own-context-provider.md b/docs/docs/customize/tutorials/build-your-own-context-provider.md index 48ec810e9..53c40f910 100644 --- a/docs/docs/customize/tutorials/build-your-own-context-provider.md +++ b/docs/docs/customize/tutorials/build-your-own-context-provider.md @@ -2,6 +2,10 @@ title: Build your own context provider --- +:::info +Custom context providers are added through `~/config.ts`, which has been deprecated in favor of the [`YAML Config Format`](../reference.md). We recommend looking into [Prompt Files](../deep-dives/prompt-files.md) and [MCP Servers](../context-providers.mdx#modelcontextprotocol) to achieve similar functionality. +::: + ## Introductory Example To write your own context provider, you just have to implement the `CustomContextProvider` @@ -69,7 +73,7 @@ export function modifyConfig(config: Config): Config { } ``` -No modification in `config.json` is necessary. +This is automatically appended to your configuration. ## Custom Context Providers with Submenu or Query diff --git a/docs/docs/customize/tutorials/custom-code-rag.md b/docs/docs/customize/tutorials/custom-code-rag.mdx similarity index 86% rename from docs/docs/customize/tutorials/custom-code-rag.md rename to docs/docs/customize/tutorials/custom-code-rag.mdx index 653ada9c4..82f41b396 100644 --- a/docs/docs/customize/tutorials/custom-code-rag.md +++ b/docs/docs/customize/tutorials/custom-code-rag.mdx @@ -1,6 +1,9 @@ +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + # Custom code RAG -While Continue comes with [@Codebase](../deep-dives/codebase.md) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this. +While Continue comes with [@Codebase](../deep-dives/codebase.mdx) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this. ## Step 1: Choose an embeddings model @@ -122,19 +125,36 @@ async def create_item(item: ContextProviderInput): return context_items ``` -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 `config.json`: +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: -```json title="config.json (Deprecated)" -{ - "name": "http", - "params": { - "url": "https://myserver.com/retrieve", - "title": "http", - "description": "Custom HTTP Context Provider", - "displayTitle": "My Custom Context" - } -} -``` + + + ```yaml title="config.yaml" + context: + - uses: http + with: + url: https://myserver.com/retrieve + name: http + description: Custom HTTP Context Provider + displayTitle: My Custom Context + ``` + + + ```json title="config.json (Deprecated)" + "contextProviders": [ + { + "name": "http", + "params": { + "url": "https://myserver.com/retrieve", + "title": "http", + "description": "Custom HTTP Context Provider", + "displayTitle": "My Custom Context" + } + } + ] + ``` + + ## Step 7 (Bonus): Set up reranking diff --git a/docs/docs/customize/tutorials/how-to-self-host-a-model.md b/docs/docs/customize/tutorials/how-to-self-host-a-model.md deleted file mode 100644 index bd4093402..000000000 --- a/docs/docs/customize/tutorials/how-to-self-host-a-model.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: How to self-host a model ---- - -You can deploy a model in your [AWS](https://github.com/continuedev/deploy-os-code-llm#aws), [GCP](https://github.com/continuedev/deploy-os-code-llm#gcp), [Azure](https://github.com/continuedev/deploy-os-code-llm#azure), [Lambda](https://lambdalabs.com/), or [other clouds](https://github.com/continuedev/deploy-os-code-llm#others-2) using: - -- [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi) -- [vLLM](https://github.com/continuedev/deploy-os-code-llm#vllm) -- [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot) -- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) (OpenAI compatible API) -- [Lambda](https://github.com/continuedev/deploy-os-code-llm#lambda) - -## Self-hosting an open-source model - -For many cases, either Continue will have a built-in provider or the API you use will be OpenAI-compatible, in which case you can use the "openai" provider and change the "baseUrl" to point to the server. - -However, if neither of these are the case, you will need to wire up a new LLM object. - -## Authentication - -Basic authentication can be done with any provider using the `apiKey` field: - -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Ollama", - "provider": "ollama", - "model": "llama2-7b", - "apiKey": "xxx" - } - ] -} -``` - -This translates to the header `"Authorization": "Bearer xxx"`. - -If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like in this example with Ollama: - -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Ollama", - "provider": "ollama", - "model": "llama2-7b", - "requestOptions": { - "headers": { - "X-Auth-Token": "xxx" - } - } - } - ] -} -``` - -Similarly if your model requires a Certificate for authentication, you may use the `requestOptions.clientCertificate` property like in the example below: - -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Ollama", - "provider": "ollama", - "model": "llama2-7b", - "requestOptions": { - "clientCertificate": { - "cert": "C:\tempollama.pem", - "key": "C:\tempollama.key", - "passphrase": "c0nt!nu3" - } - } - } - ] -} -``` diff --git a/docs/docs/customize/tutorials/how-to-self-host-a-model.mdx b/docs/docs/customize/tutorials/how-to-self-host-a-model.mdx new file mode 100644 index 000000000..3652cd43c --- /dev/null +++ b/docs/docs/customize/tutorials/how-to-self-host-a-model.mdx @@ -0,0 +1,118 @@ +--- +title: How to self-host a model +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +You can deploy a model in your [AWS](https://github.com/continuedev/deploy-os-code-llm#aws), [GCP](https://github.com/continuedev/deploy-os-code-llm#gcp), [Azure](https://github.com/continuedev/deploy-os-code-llm#azure), [Lambda](https://lambdalabs.com/), or [other clouds](https://github.com/continuedev/deploy-os-code-llm#others-2) using: + +- [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi) +- [vLLM](https://github.com/continuedev/deploy-os-code-llm#vllm) +- [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot) +- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) (OpenAI compatible API) +- [Lambda](https://github.com/continuedev/deploy-os-code-llm#lambda) + +## Self-hosting an open-source model + +For many cases, either Continue will have a built-in provider or the API you use will be OpenAI-compatible, in which case you can use the "openai" provider and change the "baseUrl" to point to the server. + +However, if neither of these are the case, you will need to wire up a new LLM object. + +## Authentication + +Basic authentication can be done with any provider using the `apiKey` field: + + + + ```yaml title="Package or config.yaml" + models: + - name: Ollama + provider: ollama + model: llama2-7b + apiKey: xxx + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "llama2-7b", + "apiKey": "xxx" + } + ] + ``` + + + +This translates to the header `"Authorization": "Bearer xxx"`. + +If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like in this example with Ollama: + + + + ```yaml title="Package or config.yaml" + models: + - name: Ollama + provider: ollama + model: llama2-7b + requestOptions: + headers: + X-Auth-Token: xxx + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "llama2-7b", + "requestOptions": { + "headers": { + "X-Auth-Token": "xxx" + } + } + } + ] + ``` + + + +Similarly if your model requires a Certificate for authentication, you may use the `requestOptions.clientCertificate` property like in the example below: + + + + ```yaml title="config.yaml" + models: + - name: Ollama + provider: ollama + model: llama2-7b + requestOptions: + clientCertificate: + cert: C:\tempollama.pem + key: C:\tempollama.key + passphrase: c0nt!nu3 + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "llama2-7b", + "requestOptions": { + "clientCertificate": { + "cert": "C:\\tempollama.pem", + "key": "C:\\tempollama.key", + "passphrase": "c0nt!nu3" + } + } + } + ] + ``` + + diff --git a/docs/docs/customize/tutorials/llama3.1.md b/docs/docs/customize/tutorials/llama3.1.md deleted file mode 100644 index 038055265..000000000 --- a/docs/docs/customize/tutorials/llama3.1.md +++ /dev/null @@ -1,134 +0,0 @@ ---- -title: Using Llama 3.1 with Continue -description: How to use Llama 3.1 with Continue -keywords: [llama, meta, togetherai, novita, ollama, replicate] ---- - -Continue makes it easy to code with the latest open-source models, including the entire Llama 3.1 family of models. Llama 3.2 models are also supported but not recommended for chat, because they are specifically designed to be small or multi-modal. - -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](../overview.md). - -Below we share some of the easiest ways to get up and running, depending on your use-case. - -## 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: - -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama 3.1 8b", - "provider": "ollama", - "model": "llama3.1-8b" - } - ] -} -``` - -## Groq - -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: - -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama 3.1 405b", - "provider": "groq", - "model": "llama3.1-405b", - "apiKey": "" - } - ] -} -``` - -## 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: - -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama 3.1 405b", - "provider": "together", - "model": "llama3.1-405b", - "apiKey": "" - } - ] -} -``` - -## 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: - -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Llama 3.1 405b", - "provider": "replicate", - "model": "llama3.1-405b", - "apiKey": "" - } - ] -} -``` - -## SambaNova - -SambaNova Cloud provides world record Llama3.1 70B/405B serving. - -1. Create an account [here](https://cloud.sambanova.ai/) -2. Copy your API key -3. Update your Continue config file like this: - -```json title="~/.continue/config.json" -{ - "models": [ - { - "title": "SambaNova Llama 3.1 405B", - "provider": "sambanova", - "model": "llama3.1-405b", - "apiKey": "YOUR_API_KEY" - } - ] -} -``` - -## Cerebras Inference - -Cerebras Inference uses specialized silicon to provides fast inference for the Llama3.1 8B/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: - -```json title="config.json (Deprecated)" -{ - "models": [ - { - "title": "Cerebras Llama 3.1 70B", - "provider": "cerebras", - "model": "llama3.1-70b", - "apiKey": "YOUR_API_KEY" - } - ] -} -``` diff --git a/docs/docs/customize/tutorials/llama3.1.mdx b/docs/docs/customize/tutorials/llama3.1.mdx new file mode 100644 index 000000000..ed6a7bf18 --- /dev/null +++ b/docs/docs/customize/tutorials/llama3.1.mdx @@ -0,0 +1,202 @@ +--- +title: Using Llama 3.1 with Continue +description: How to use Llama 3.1 with Continue +keywords: [llama, meta, togetherai, novita, ollama, replicate] +--- + +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + +Continue makes it easy to code with the latest open-source models, including the entire Llama 3.1 family of models. Llama 3.2 models are also supported but not recommended for chat, because they are specifically designed to be small or multi-modal. + +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](../overview.md). + +Below we share some of the easiest ways to get up and running, depending on your use-case. + +## 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 title="Package or config.yaml" + models: + - name: Llama 3.1 8b + provider: ollama + model: llama3.1-8b + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama 3.1 8b", + "provider": "ollama", + "model": "llama3.1-8b" + } + ] + ``` + + + +## Groq + +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 title="config.yaml" + models: + - name: Llama 3.1 405b + provider: groq + model: llama3.1-405b + apiKey: ${{ secrets.GROQ_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama 3.1 405b", + "provider": "groq", + "model": "llama3.1-405b", + "apiKey": "" + } + ] + ``` + + + +## 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 title="Package or config.yaml" + models: + - name: Llama 3.1 405b + provider: together + model: llama3.1-405b + apiKey: ${{ secrets.TOGETHER_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama 3.1 405b", + "provider": "together", + "model": "llama3.1-405b", + "apiKey": "" + } + ] + ``` + + + +## 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 title="Package or config.yaml" + models: + - name: Llama 3.1 405b + provider: replicate + model: llama3.1-405b + apiKey: ${{ secrets.REPLICATE_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Llama 3.1 405b", + "provider": "replicate", + "model": "llama3.1-405b", + "apiKey": "" + } + ] + ``` + + + +## SambaNova + +SambaNova Cloud provides world record Llama3.1 70B/405B serving. + +1. Create an account [here](https://cloud.sambanova.ai/) +2. Copy your API key +3. Update your Continue config file like this: + + + + ```yaml title="config.yaml" + models: + - name: SambaNova Llama 3.1 405B + provider: sambanova + model: llama3.1-405b + apiKey: ${{ secrets.SAMBA_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "SambaNova Llama 3.1 405B", + "provider": "sambanova", + "model": "llama3.1-405b", + "apiKey": "SAMBA_API_KEY" + } + ] + ``` + + + +## Cerebras Inference + +Cerebras Inference uses specialized silicon to provides fast inference for the Llama3.1 8B/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 title="Package or config.yaml" + models: + - name: Cerebras Llama 3.1 70B + provider: cerebras + model: llama3.1-70b + apiKey: ${{ secrets.ANTHROPIC_API_KEY }} + ``` + + + ```json title="config.json (Deprecated)" + "models": [ + { + "title": "Cerebras Llama 3.1 70B", + "provider": "cerebras", + "model": "llama3.1-70b", + "apiKey": "" + } + ] + ``` + + diff --git a/docs/docs/customize/tutorials/running-continue-without-internet.md b/docs/docs/customize/tutorials/running-continue-without-internet.md index c945f8c43..81ecbc7c3 100644 --- a/docs/docs/customize/tutorials/running-continue-without-internet.md +++ b/docs/docs/customize/tutorials/running-continue-without-internet.md @@ -9,4 +9,4 @@ Continue can be run even on an air-gapped computer if you use a local model. Onl 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 `~/.continue/config.json` and set `"allowAnonymousTelemetry": false`. This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../../telemetry.md). 3. Also in `config.json`, set the default model to a local model. You can available options [here](../model-providers/). -4. Restart VS Code to ensure that the changes to `config.json` take effect. +4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect. diff --git a/docs/docs/customize/tutorials/set-up-codestral.md b/docs/docs/customize/tutorials/set-up-codestral.mdx similarity index 59% rename from docs/docs/customize/tutorials/set-up-codestral.md rename to docs/docs/customize/tutorials/set-up-codestral.mdx index 426a0037f..026948f8a 100644 --- a/docs/docs/customize/tutorials/set-up-codestral.md +++ b/docs/docs/customize/tutorials/set-up-codestral.mdx @@ -4,6 +4,9 @@ description: How to set up Codestral keywords: [codestral, mistral, model setup] --- +import Tabs from "@theme/Tabs"; +import TabItem from "@theme/TabItem"; + ![mistral x continue](../../../static/img/mistral-x-continue.png) **Here is a step-by-step guide on how to set up Codestral with Continue using the Mistral AI API:** @@ -14,11 +17,25 @@ keywords: [codestral, mistral, model setup] 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`, replace `[API_KEY]` with your Mistral API key below and add it to your `config.json` file: +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: -```json title="config.json (Deprecated)" -{ - "models": [ + + + ```yaml title="config.yaml" + models: + - name: Codestral + provider: mistral + model: codestral-latest + apiKey: ${{ secrets.CODESTRAL_API_KEY }} + apiBase: https://codestral.mistral.ai/v1 + roles: + - chat + - autocomplete + ``` + + + ```json title="config.json (Deprecated)" + "models": [ { "title": "Codestral", "provider": "mistral", @@ -26,16 +43,17 @@ keywords: [codestral, mistral, model setup] "apiKey": "[API_KEY]", "apiBase": "https://codestral.mistral.ai/v1" } - ], - "tabAutocompleteModel": { - "title": "Codestral", - "provider": "mistral", - "model": "codestral-latest", - "apiKey": "[API_KEY]", - "apiBase": "https://codestral.mistral.ai/v1" - } -} -``` + ], + "tabAutocompleteModel": { + "title": "Codestral", + "provider": "mistral", + "model": "codestral-latest", + "apiKey": "[API_KEY]", + "apiBase": "https://codestral.mistral.ai/v1" + } + ``` + + 5. If you run into any issues or have any questions, please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ) diff --git a/docs/docs/edit/how-it-works.md b/docs/docs/edit/how-it-works.md index 19f107782..453d1e98f 100644 --- a/docs/docs/edit/how-it-works.md +++ b/docs/docs/edit/how-it-works.md @@ -11,4 +11,4 @@ The model response is then streamed directly back to the highlighted range in yo If you accept the diff, we remove the previously highlighted lines, and if you reject the diff, we remove the proposed changes. -If you would like to view the exact prompt that is sent to the model during an edit, you can [view this in the prompt logs](troubleshooting.md#check-the-logs). +If you would like to view the exact prompt that is sent to the model during an edit, you can [view this in the prompt logs](../troubleshooting.mdx#check-the-logs). diff --git a/docs/docs/edit/how-to-customize.mdx b/docs/docs/edit/how-to-customize.mdx index 677a38642..d7ebf4e77 100644 --- a/docs/docs/edit/how-to-customize.mdx +++ b/docs/docs/edit/how-to-customize.mdx @@ -20,7 +20,7 @@ You can configure a particular model to be used for Edit: model: claude-3-5-sonnet-latest roles: - edit - apiKeySecret: ANTHOPIC_API_KEY + apiKey: ${{ secrets.ANTHROPIC_API_KEY }} ``` diff --git a/docs/docs/edit/model-setup.md b/docs/docs/edit/model-setup.md index 64f5f69d6..ad884b334 100644 --- a/docs/docs/edit/model-setup.md +++ b/docs/docs/edit/model-setup.md @@ -5,6 +5,6 @@ description: How to set up an Edit model keywords: [edit, cmd l, model] --- -By default, Edit uses the [same model as Chat](chat/model-setup.mdx) since we recommend a similar, 400B+ parameter model or one of the frontier model for code edits. +By default, Edit uses the [same model as Chat](../chat/model-setup.mdx) since we recommend a similar, 400B+ parameter model or one of the frontier model for code edits. You can configure a different model to be used for edits by updating your [configuration](../reference.md). diff --git a/docs/docs/json-reference.md b/docs/docs/json-reference.md index 4faceb9a9..8b6f9e7f2 100644 --- a/docs/docs/json-reference.md +++ b/docs/docs/json-reference.md @@ -5,7 +5,7 @@ keywords: [config, config_schema.json, json] --- :::info -`config.json` has been deprecated in favor of the [`YAML Config Format`](./yaml-reference). See the [migration guide](./yaml-migration). +`config.json` has been deprecated in favor of the [`YAML Config Format`](./reference). See the [migration guide](./yaml-migration). ::: Below are details for each property that can be set in `config.json`. The config schema code is found in [`extensions/vscode/config_schema.json`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json). @@ -27,7 +27,7 @@ Each model has specific configuration options tailored to its provider and funct - `contextLength`: Maximum context length of the model, typically in tokens (default: 2048). - `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. - `template`: Chat template to format messages. Auto-detected for most models but can be overridden. See intelliJ suggestions. -- `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. [Customization Guide](https://docs.continue.dev/model-setup/configuration#customizing-the-edit-prompt). +- `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. [Customization Guide](/model-setup/configuration#customizing-the-edit-prompt). - `completionOptions`: Model-specific completion options, same format as top-level [`completionOptions`](#completionoptions), which they override. - `systemMessage`: A system message that will precede responses from the LLM. - `requestOptions`: Model-specific HTTP request options, same format as top-level [`requestOptions`](#requestoptions), which they override. diff --git a/docs/docs/reference.md b/docs/docs/reference.md index 3b86fb248..c2c34b09f 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -116,7 +116,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/context-providers) +More information about usage/params for each context provider can be found [here](/customize/context-providers.mdx) **Properties:** diff --git a/docs/docs/telemetry.md b/docs/docs/telemetry.md index d4fc97840..58be882e1 100644 --- a/docs/docs/telemetry.md +++ b/docs/docs/telemetry.md @@ -26,24 +26,14 @@ The following usage information is collected and reported: ## How to Opt Out -You can disable anonymous telemetry by modifying the `config.json` file located in the `~/.continue` directory. This file typically includes the following entry: - -```json title="config.json (Deprecated)" -{ - "allowAnonymousTelemetry": true -} -``` - -To opt out, change the value of `allowAnonymousTelemetry` to `false`. Alternatively, you can disable telemetry through your VS Code settings by unchecking the "Continue: Telemetry Enabled" box. - -### Steps to Disable Telemetry via Configuration File +### Via `config.json` File 1. Open the `~/.continue/config.json` file in your text editor. -2. Locate the `"allowAnonymousTelemetry"` setting. +2. Locate and/or add the `"allowAnonymousTelemetry"` setting. 3. Change the value from `true` to `false`. 4. Save the file. -### Steps to Disable Telemetry via VS Code Settings +### Via VS Code Settings 1. Open VS Code. 2. Navigate to `File` > `Preferences` > `Settings` (or use the keyboard shortcut ctrl + , on Windows/Linux or cmd + , on macOS). diff --git a/docs/docs/troubleshooting.mdx b/docs/docs/troubleshooting.mdx index 3b2713323..4b0e35941 100644 --- a/docs/docs/troubleshooting.mdx +++ b/docs/docs/troubleshooting.mdx @@ -88,7 +88,7 @@ If your keyboard shortcuts are not resolving, you may have other commands that a #### Configure Certificates -If you're seeing a `fetch failed` error and your network requires custom certificates, you will need to configure them in `config.json`. In each of the objects in the `"models"` array, add `requestOptions.caBundlePath` like this: +If you're seeing a `fetch failed` error and your network requires custom certificates, you will need to configure them in your config file. In each of the objects in the `"models"` array, add `requestOptions.caBundlePath` like this: diff --git a/docs/docs/yaml-migration.md b/docs/docs/yaml-migration.md index f6a70bc64..79a3906fa 100644 --- a/docs/docs/yaml-migration.md +++ b/docs/docs/yaml-migration.md @@ -37,11 +37,10 @@ Add all model configurations in `config.json`, including models in `models`, `ta - `inlineEdit` -> e.g. `roles: [chat, edit]` - `applyCodeBlock` -> e.g. `roles: [chat, apply]` -Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](/yaml-reference#requestoptions) +Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](/reference#requestoptions) -Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with minor changes. See [YAML Continue Config Reference](/yaml-reference#completionoptions) +Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with minor changes. See [YAML Continue Config Reference](/reference#completionoptions) - **Before** @@ -103,7 +102,7 @@ models: - name: GPT-4 provider: openai model: gpt-4 - apiKey: + apiKey: ${{ secrets.OPENAI_KEY }} defaultCompletionOptions: temperature: 0.5 maxTokens: 2000 @@ -113,7 +112,7 @@ models: - name: My Voyage Reranker provider: voyage - apiKey: + apiKey: ${{ secrets.VOYAGE_KEY }} roles: - rerank @@ -125,7 +124,7 @@ models: - name: My Ada Embedder provider: openai - apiKey: + apiKey: ${{ secrets.ADA_API_KEY }} roles: - embed @@ -139,7 +138,7 @@ models: apiBase: http://3.3.3.3/v1 requestOptions: headers: - X-Auth-Token: + X-Auth-Token: ${{ secrets.CUSTOM_API_KEY }} roles: - chat - apply @@ -325,13 +324,16 @@ mcpServers: ## Deprecated configuration options -The following top-level fields from `config.json` have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI +The following top-level fields are not yet supported in the YAML config file, and you will need to stick with `config.json` to use them for now - Slash commands (JSON `slashCommands`) - top-level `requestOptions` - top-level `completionOptions` - `tabAutocompleteOptions` - `analytics` + +The following top-level fields from `config.json` have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI + - `customCommands` - `disableSessionTitles` - `experimental` @@ -342,4 +344,4 @@ The following top-level fields from `config.json` have been deprecated. Most UI- ## New Configuration options -The YAML configuration format offers new configuration options not available in the JSON format. See the [YAML Config Reference](/yaml-reference) for more information. +The YAML configuration format offers new configuration options not available in the JSON format. See the [YAML Config Reference](./reference) for more information.