diff --git a/docs/docs/actions/context-selection.md b/docs/docs/actions/context-selection.md index 4e154dcd3..90bc7c0d2 100644 --- a/docs/docs/actions/context-selection.md +++ b/docs/docs/actions/context-selection.md @@ -9,10 +9,6 @@ sidebar_position: 3 Slash commands can be combined with additional instructions, including [context providers](../customize/context-providers.mdx) or [highlighted code](../edit/context-selection#highlighted-code). -For example, with the “/edit” slash command you should describe the edit that you want the LLM to perform. - -Some slash commands will not acknowledge your input; for example, the “/share” slash command just creates a markdown copy of the current conversation, regardless of what else you may request it to do. - ## Quick actions Quick actions are always displayed above a class or function and will edit that class or function, but nothing outside of it. diff --git a/docs/docs/actions/how-it-works.mdx b/docs/docs/actions/how-it-works.mdx index 90bd4bb20..afacc3dbe 100644 --- a/docs/docs/actions/how-it-works.mdx +++ b/docs/docs/actions/how-it-works.mdx @@ -7,6 +7,6 @@ sidebar_position: 4 While many Actions are based on templated prompts and can be customized with .prompt files, there are a number that execute more complex code under the hood. -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.md). +Right click actions that generate inline diffs, use the same prompt and response processing logic as [Edit](../edit/how-it-works.md). To learn how other slash commands work, see the full reference [here](../customize/slash-commands.mdx). diff --git a/docs/docs/actions/how-to-use-it.md b/docs/docs/actions/how-to-use-it.md index 018a7c941..d69ec3851 100644 --- a/docs/docs/actions/how-to-use-it.md +++ b/docs/docs/actions/how-to-use-it.md @@ -14,43 +14,23 @@ Actions are shortcuts for common use cases. For example, you might want to revie ### Slash commands -The most common way to invoke an action is with a slash command. These are shortcuts that can be activated by typing '/' in a chat session (press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains)), and selecting from the dropdown. For example, the built-in '/edit' slash command lets you stream edits directly into your editor. +The most common way to invoke an action is with a slash command. These are shortcuts that can be activated by typing '/' in a chat session (press cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains)), and selecting from the dropdown. ![slash-commands](/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.mdx). +In YAML assistants, slash commands are generated from [`prompts` blocks](../hub/blocks/block-types.md#prompts). + +Learn more about slash commands [here](../customize/slash-commands.mdx). + +:::info +Important: For assistants, slash commands only come from `prompts` blocks. When using older `config.json` configuration, other slash commands like `/share` and `/cmd` are included by default. +::: ### Prompt files It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more. -The full .prompt file reference can be found [here](../customize/deep-dives/prompt-files.md). - -:::tip[Prompt library] -To assist you in getting started, [we've curated a small library of `.prompt` files](https://github.com/continuedev/prompt-file-examples). We encourage community contributions to this repository, so please consider opening up a pull request with your own prompts! -::: - -Below is a quick example of setting up a prompt file to write unit tests using Jest. - -1. Create a folder called `.prompts/` at the top level of your workspace. -2. Add a file called `test.prompt` to this folder. The name of this file will be the name of the slash command you will use to generate your prompt. -3. Write the following contents to `test.prompt` and save. - -```.prompt -{{{ input }}} - -Write unit tests for the above selected code, following each of these instructions: -- Use `jest` -- Properly set up and tear down -- Include important edge cases -- The tests should be complete and sophisticated -- Give the tests just as chat output, don't edit any file -- Don't explain how to set up `jest` -``` - -Now to use this prompt, you can highlight code and use cmd/ctrl + L to select it in the Continue sidebar. - -Then, type "/" to see the list of slash commands and choose the one called "test". Press enter and the LLM will respond given the instructions from your prompt file. +Learn more about prompt files [here](../customize/deep-dives/prompt-files.md) ### Other triggers for Actions (VS Code) diff --git a/docs/docs/actions/model-setup.md b/docs/docs/actions/model-setup.md index 7dd9a0213..81133787a 100644 --- a/docs/docs/actions/model-setup.md +++ b/docs/docs/actions/model-setup.md @@ -6,3 +6,5 @@ sidebar_position: 2 --- By default, Actions uses the same model as [Chat](chat/model-setup.mdx) since we recommend a similar, 400B+ parameter model or one of the frontier models for the complex instructions that will be carried out. + +You can also set specific models to be used for Edit and Apply actions. See the [Model roles](../customize/model-roles/intro.mdx) page for more details. diff --git a/docs/docs/autocomplete/model-setup.mdx b/docs/docs/autocomplete/model-setup.mdx index 8d2c162f6..1b67997a3 100644 --- a/docs/docs/autocomplete/model-setup.mdx +++ b/docs/docs/autocomplete/model-setup.mdx @@ -8,108 +8,8 @@ sidebar_position: 2 import TabItem from "@theme/TabItem"; import Tabs from "@theme/Tabs"; -:::info -This page recommends models and providers for Autocomplete. Read more about how to set up your `config.yaml` [here](../reference.md). -::: +For the best autocomplete experience we recommend Codestral from Mistral. -## Best overall experience +Add Codestral to your assistant from the hub [here](https://hub.continue.dev/mistral/codestral). Visit the [Mistral Platform](https://console.mistral.ai/codestral) to get a Codestral API key. -For the best Autocomplete experience, we recommend using Codestral through the [Mistral API](https://console.mistral.ai/). This model offers high-quality completions with an excellent understanding of code context: - - - - ```yaml title="config.yaml" - models: - - name: Codestral - provider: mistral - model: codestral-latest - apiKey: - roles: - - autocomplete - ``` - - - ```json title="config.json" - { - "tabAutocompleteModel": { - "title": "Codestral", - "provider": "mistral", - "model": "codestral-latest", - "apiKey": "" - } - } - ``` - - - -:::tip[Codestral API Key] -The API keys for Codestral and the general Mistral APIs are different. If you are using Codestral, you probably want a Codestral API key, but if you are sharing the key as a team or otherwise want to use `api.mistral.ai`, then make sure to set `"apiBase": "https://api.mistral.ai/v1"` in your `tabAutocompleteModel`. -::: - -## 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.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)). - - - - ```yaml title="config.yaml" - models: - - name: Qwen2.5-Coder 1.5B - model: qwen2.5-coder:1.5b-base - provider: ollama - roles: - - autocomplete - ``` - - - ```json title="config.json" - { - "tabAutocompleteModel": { - "title": "Qwen2.5-Coder 1.5B", - "model": "qwen2.5-coder:1.5b-base", - "provider": "ollama" - } - } - ``` - - - -Have more compute? Use `qwen2.5-coder:7b-base` for potentially higher-quality suggestions. - -:::note -For LM Studio users, navigate to the "My Models" section, find your desired model, and copy the path (e.g., `Qwen/Qwen2.5-Coder-1.5B-Instruct-GGUF/qwen2.5-coder-1.5b-instruct-q4_k_m.gguf`). Use this path as the `model` value in your configuration. -::: - -### Using a remote instance - -When using a remote instance you need to set the `"apiBase"` value in the configuration: - - - - ```yaml title="config.yaml" - models: - - name: Qwen2.5-Coder 1.5B - model: qwen2.5-coder:1.5b-base - provider: ollama - apiBase: http://:11434 - roles: - - autocomplete - ``` - - - ```json title="config.json" - { - "tabAutocompleteModel": { - "title": "Qwen2.5-Coder 1.5B", - "model": "qwen2.5-coder:1.5b-base", - "provider": "ollama", - "apiBase": "http://:11434" - } - } - ``` - - - -## Other experiences - -There are many more models and providers you can use with Autocomplete. Check them out [here](../customize/model-roles/autocomplete.md). You can also see more examples of Autocomplete configuration [here](../customize/deep-dives/autocomplete.mdx) +For more details about setup and recommended models, visit the [autocomplete deep dive](../customize/deep-dives/autocomplete.mdx). diff --git a/docs/docs/chat/model-setup.mdx b/docs/docs/chat/model-setup.mdx index 40430cdc4..903c5054e 100644 --- a/docs/docs/chat/model-setup.mdx +++ b/docs/docs/chat/model-setup.mdx @@ -8,356 +8,8 @@ sidebar_position: 2 import TabItem from "@theme/TabItem"; import Tabs from "@theme/Tabs"; -:::info -This page recommends models and providers for Chat. Read more about how to set up your config [here](../reference.md). -::: +For the best chat experience we recommend Claude 3.7 Sonnet from Anthropic. -## Best overall experience +Add Claude 3.7 Sonnet to your assistant from the hub [here](https://hub.continue.dev/anthropic/claude-3-7-sonnet). You can get an API key from the [Anthropic console](https://console.anthropic.com/settings/keys). -For the best overall Chat experience, you will want to use a 400B+ parameter model or one of the frontier models. - -### Claude Sonnet 3.5 from Anthropic - -Our current top recommendation is Claude Sonnet 3.5 from [Anthropic](../customize/model-providers/top-level/anthropic.mdx). - - - - ```yaml title="config.yaml" - models: - - name: Claude 3.5 Sonnet - provider: anthropic - model: claude-3-5-sonnet-latest - apiKey: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Claude 3.5 Sonnet", - "provider": "anthropic", - "model": "claude-3-5-sonnet-latest", - "apiKey": "" - } - ] - } - ``` - - - -### 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.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)). - - - - - - ```yaml title="config.yaml" - models: - - name: "Llama 3.1 405B" - provider: "together" - model: "llama3.1-405b" - apiKey: - ``` - - - ```yaml title="config.yaml" - models: - - name: "Llama 3.1 405B" - provider: "groq" - model: "llama3.1-405b" - apiKey: - ``` - - - ```yaml title="config.yaml" - models: - - name: "Llama 3.1 405B" - provider: "vllm" - model: "llama3.1-405b" - ``` - - - ```yaml title="config.yaml" - models: - - name: "Llama 3.1 405B" - provider: "ollama" - model: "llama3.1:405b" - ``` - - - - - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama 3.1 405B", - "provider": "together", - "model": "llama3.1-405b", - "apiKey": "" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama 3.1 405B", - "provider": "groq", - "model": "llama3.1-405b", - "apiKey": "" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama 3.1 405B", - "provider": "vllm", - "model": "llama3.1-405b" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama 3.1 405B", - "provider": "ollama", - "model": "llama3.1:405b" - } - ] - } - ``` - - - - - -### GPT-4o from OpenAI - -If you prefer to use a model from [OpenAI](../customize/model-providers/top-level/openai.mdx), then we recommend GPT-4o. - - - - ```yaml title="config.yaml" - models: - - name: GPT-4o - provider: openai - model: '' - apiKey: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "GPT-4o", - "provider": "openai", - "model": "", - "apiKey": "" - } - ] - } - ``` - - - -### Grok-2 from xAI - -If you prefer to use a model from [xAI](../customize/model-providers/top-level/xAI.mdx), then we recommend Grok-2. - - - - ```yaml title="config.yaml" - models: - - name: Grok-2 - provider: xAI - model: grok-2-latest - apiKey: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Grok-2", - "provider": "xAI", - "model": "grok-2-latest", - "apiKey": "" - } - ] - } - ``` - - - -### Gemini 1.5 Pro from Google - -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="config.yaml" - models: - - name: Gemini 1.5 Pro - provider: gemini - model: gemini-1.5-pro-latest - apiKey: - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Gemini 1.5 Pro", - "provider": "gemini", - "model": "gemini-1.5-pro-latest", - "apiKey": "" - } - ] - } - ``` - - - -## Local, offline experience - -For the best local, offline Chat experience, you will want to use a model that is large but fast enough on your machine. - -### 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.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)). - - - - - - ```yaml title="config.yaml" - models: - - name: Llama 3.1 8B - provider: ollama - model: llama3.1:8b - ``` - - - ```yaml title="config.yaml" - models: - - name: Llama 3.1 8B - provider: lmstudio - model: llama3.1:8b - ``` - - - - - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama 3.1 8B", - "provider": "ollama", - "model": "llama3.1:8b" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "Llama 3.1 8B", - "provider": "lmstudio", - "model": "llama3.1-8b" - } - ] - } - ``` - - - - - -### 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.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)). - - - - - - ```yaml title="config.yaml" - models: - - name: DeepSeek Coder 2 16B - provider: ollama - model: deepseek-coder-v2:16b - ``` - - - ```yaml title="config.yaml" - models: - - name: DeepSeek Coder 2 16B - provider: lmstudio - model: deepseek-coder-v2:16b - ``` - - - - - - - ```json title="config.json" - { - "models": [ - { - "title": "DeepSeek Coder 2 16B", - "provider": "ollama", - "model": "deepseek-coder-v2:16b", - "apiBase": "http://localhost:11434" - } - ] - } - ``` - - - ```json title="config.json" - { - "models": [ - { - "title": "DeepSeek Coder 2 16B", - "provider": "lmstudio", - "model": "deepseek-coder-v2:16b" - } - ] - } - ``` - - - - - -## Other experiences - -There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../customize/model-roles/chat.md) +For more details about setup and recommended models, see [here](../customize/model-roles/chat.mdx). diff --git a/docs/docs/customize/deep-dives/autocomplete.mdx b/docs/docs/customize/deep-dives/autocomplete.mdx index c0ea86222..12e9b5fb0 100644 --- a/docs/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/docs/customize/deep-dives/autocomplete.mdx @@ -39,6 +39,10 @@ If you want to have the best autocomplete experience, we recommend using Codestr +:::tip[Codestral API Key] +The API keys for Codestral and the general Mistral APIs are different. If you are using Codestral, you probably want a Codestral API key, but if you are sharing the key as a team or otherwise want to use `api.mistral.ai`, then make sure to set `"apiBase": "https://api.mistral.ai/v1"` in your `tabAutocompleteModel`. +::: + ### Setting up with Ollama (default) If you'd like to run your autocomplete model locally, we recommend using Ollama. To do this, first download the latest version of Ollama from [here](https://ollama.ai). Then, run the following command to download our recommended model: @@ -47,16 +51,42 @@ If you'd like to run your autocomplete model locally, we recommend using Ollama. ollama run qwen2.5-coder:1.5b ``` -Once it has been downloaded, you should begin to see completions in VS Code. - -### Setting up a custom model - -All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote Ollama instance you would edit your `config.json` like this (note that it is not inside the models array): +Then, add the model to your configuration: [Qwen 2.5 Coder 1.5B model block](https://hub.continue.dev/lmstudio/qwen2.5-coder-1.5b) + + ```yaml title="config.yaml" + models: + - name: Qwen 1.5b Autocomplete Model + provider: ollama + model: qwen2.5-coder:1.5b + roles: + - autocomplete + ``` + + + ```json title="config.json" + { + "tabAutocompleteModel": { + "title": "Qwen 1.5b Autocomplete Model", + "provider": "ollama", + "model": "qwen2.5-coder:1.5b", + } + } + ``` + + + +Once the model has been downloaded, you should begin to see completions in VS Code. + +### Setting up a custom model + +All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote Ollama instance you would edit your `config.json` like this (note that it is not inside the models array): + + ```yaml title="config.yaml" models: diff --git a/docs/docs/customize/model-roles/chat.md b/docs/docs/customize/model-roles/chat.md deleted file mode 100644 index c0401cd53..000000000 --- a/docs/docs/customize/model-roles/chat.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Chat Role -description: Chat model role -keywords: [chat, model, role] -sidebar_position: 1 ---- - -A "chat model" is an LLM that is trained to respond in a conversational format. Because they should be able to answer general questions and generate complex code, the best chat models are typically large, often 405B+ parameters. - -In Continue, these models are used for [Chat](../../chat/how-to-use-it.md) and [Actions](../../actions/how-to-use-it.md). The selected chat model will also be used for [Edit](../../edit/how-to-use-it.md) and [Apply](./apply.mdx) if no `edit` or `apply` models are specified, respectively. - -## Recommended Chat models - -If you have the ability to use any model, we recommend [Claude 3.7 Sonnet](../model-providers/top-level/anthropic.mdx). - -Otherwise, some of the next best options are: - -- [GPT-4o](../model-providers/top-level/openai.mdx) -- [Grok-2](../model-providers/top-level/xAI.mdx) -- [Gemini 1.5 Pro](../model-providers/top-level/gemini.mdx) -- [Llama3.1 405B](../tutorials/llama3.1.mdx) diff --git a/docs/docs/customize/model-roles/chat.mdx b/docs/docs/customize/model-roles/chat.mdx new file mode 100644 index 000000000..f88a8cc9f --- /dev/null +++ b/docs/docs/customize/model-roles/chat.mdx @@ -0,0 +1,362 @@ +--- +title: Chat Role +description: Chat model role +keywords: [chat, model, role] +sidebar_position: 1 +--- + +A "chat model" is an LLM that is trained to respond in a conversational format. Because they should be able to answer general questions and generate complex code, the best chat models are typically large, often 405B+ parameters. + +In Continue, these models are used for [Chat](../../chat/how-to-use-it.md) and [Actions](../../actions/how-to-use-it.md). The selected chat model will also be used for [Edit](../../edit/how-to-use-it.md) and [Apply](./apply.mdx) if no `edit` or `apply` models are specified, respectively. + +## Recommended Chat models + +## Best overall experience + +For the best overall Chat experience, you will want to use a 400B+ parameter model or one of the frontier models. + +### Claude Sonnet 3.5 from Anthropic + +Our current top recommendation is Claude Sonnet 3.5 from [Anthropic](../customize/model-providers/top-level/anthropic.mdx). + + + + ```yaml title="config.yaml" + models: + - name: Claude 3.5 Sonnet + provider: anthropic + model: claude-3-5-sonnet-latest + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Claude 3.5 Sonnet", + "provider": "anthropic", + "model": "claude-3-5-sonnet-latest", + "apiKey": "" + } + ] + } + ``` + + + +### 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.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)). + + + + + + ```yaml title="config.yaml" + models: + - name: "Llama 3.1 405B" + provider: "together" + model: "llama3.1-405b" + apiKey: + ``` + + + ```yaml title="config.yaml" + models: + - name: "Llama 3.1 405B" + provider: "groq" + model: "llama3.1-405b" + apiKey: + ``` + + + ```yaml title="config.yaml" + models: + - name: "Llama 3.1 405B" + provider: "vllm" + model: "llama3.1-405b" + ``` + + + ```yaml title="config.yaml" + models: + - name: "Llama 3.1 405B" + provider: "ollama" + model: "llama3.1:405b" + ``` + + + + + + + ```json title="config.json" + { + "models": [ + { + "title": "Llama 3.1 405B", + "provider": "together", + "model": "llama3.1-405b", + "apiKey": "" + } + ] + } + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Llama 3.1 405B", + "provider": "groq", + "model": "llama3.1-405b", + "apiKey": "" + } + ] + } + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Llama 3.1 405B", + "provider": "vllm", + "model": "llama3.1-405b" + } + ] + } + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Llama 3.1 405B", + "provider": "ollama", + "model": "llama3.1:405b" + } + ] + } + ``` + + + + + +### GPT-4o from OpenAI + +If you prefer to use a model from [OpenAI](../customize/model-providers/top-level/openai.mdx), then we recommend GPT-4o. + + + + ```yaml title="config.yaml" + models: + - name: GPT-4o + provider: openai + model: '' + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "GPT-4o", + "provider": "openai", + "model": "", + "apiKey": "" + } + ] + } + ``` + + + +### Grok-2 from xAI + +If you prefer to use a model from [xAI](../customize/model-providers/top-level/xAI.mdx), then we recommend Grok-2. + + + + ```yaml title="config.yaml" + models: + - name: Grok-2 + provider: xAI + model: grok-2-latest + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Grok-2", + "provider": "xAI", + "model": "grok-2-latest", + "apiKey": "" + } + ] + } + ``` + + + +### Gemini 1.5 Pro from Google + +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="config.yaml" + models: + - name: Gemini 1.5 Pro + provider: gemini + model: gemini-1.5-pro-latest + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Gemini 1.5 Pro", + "provider": "gemini", + "model": "gemini-1.5-pro-latest", + "apiKey": "" + } + ] + } + ``` + + + +## Local, offline experience + +For the best local, offline Chat experience, you will want to use a model that is large but fast enough on your machine. + +### 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.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)). + + + + + + ```yaml title="config.yaml" + models: + - name: Llama 3.1 8B + provider: ollama + model: llama3.1:8b + ``` + + + ```yaml title="config.yaml" + models: + - name: Llama 3.1 8B + provider: lmstudio + model: llama3.1:8b + ``` + + + + + + + ```json title="config.json" + { + "models": [ + { + "title": "Llama 3.1 8B", + "provider": "ollama", + "model": "llama3.1:8b" + } + ] + } + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Llama 3.1 8B", + "provider": "lmstudio", + "model": "llama3.1-8b" + } + ] + } + ``` + + + + + +### 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.mdx) or [LM Studio](../customize/model-providers/more/lmstudio.mdx)). + + + + + + ```yaml title="config.yaml" + models: + - name: DeepSeek Coder 2 16B + provider: ollama + model: deepseek-coder-v2:16b + ``` + + + ```yaml title="config.yaml" + models: + - name: DeepSeek Coder 2 16B + provider: lmstudio + model: deepseek-coder-v2:16b + ``` + + + + + + + ```json title="config.json" + { + "models": [ + { + "title": "DeepSeek Coder 2 16B", + "provider": "ollama", + "model": "deepseek-coder-v2:16b", + "apiBase": "http://localhost:11434" + } + ] + } + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "DeepSeek Coder 2 16B", + "provider": "lmstudio", + "model": "deepseek-coder-v2:16b" + } + ] + } + ``` + + + + + +## Other experiences + +There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../customize/model-roles/chat.mdx) diff --git a/docs/docs/customize/model-roles/intro.mdx b/docs/docs/customize/model-roles/intro.mdx index e09f057ff..3c3a6476e 100644 --- a/docs/docs/customize/model-roles/intro.mdx +++ b/docs/docs/customize/model-roles/intro.mdx @@ -11,7 +11,7 @@ import Tabs from "@theme/Tabs"; Models in Continue can be configured to be used for various roles in the extension. -- [`chat`](./chat.md): Used for chat conversations in the extension sidebar +- [`chat`](./chat.mdx): Used for chat conversations in the extension sidebar - [`autocomplete`](./autocomplete.md): Used for autocomplete code suggestions in the editor - [`edit`](./edit.mdx): Used to generate code based on edit prompts - [`apply`](./apply.mdx): Used to decide how to apply edits to a file diff --git a/docs/docs/edit/model-setup.md b/docs/docs/edit/model-setup.md index ad884b334..606bd0654 100644 --- a/docs/docs/edit/model-setup.md +++ b/docs/docs/edit/model-setup.md @@ -7,4 +7,6 @@ keywords: [edit, cmd l, model] By default, Edit uses the [same model as Chat](../chat/model-setup.mdx) since we recommend a similar, 400B+ parameter model or one of the frontier model for code edits. -You can configure a different model to be used for edits by updating your [configuration](../reference.md). +Visit [the hub](https://hub.continue.dev/explore/models?roles=edit) to explore Edit models. + +You can configure a different model to be used for edits by updating your [configuration](../customize/model-roles/edit.mdx). diff --git a/docs/static/img/hub/hub-onboarding-card.png b/docs/static/img/hub/hub-onboarding-card.png index 8fc2798f5..8c75631fe 100644 Binary files a/docs/static/img/hub/hub-onboarding-card.png and b/docs/static/img/hub/hub-onboarding-card.png differ