sign in etc.

This commit is contained in:
Dallin Romney 2025-02-25 16:45:14 -08:00
parent f80c4ec62b
commit 26e2d1bd4b
13 changed files with 42 additions and 37 deletions

View file

@ -5,20 +5,6 @@ keywords: [customize]
sidebar_position: 5
---
Continue offers a handful of parameters in [`config.json`](../json-reference.md) that can be tuned to find the perfect balance between suggestion quality and system performance for your specific needs and hardware capabilities:
```json title="config.json"
{
"tabAutocompleteOptions": {
"maxPromptTokens": 400,
"prefixPercentage": 0.5,
"multilineCompletions": "always"
}
}
```
- `maxPromptTokens`: Sets the maximum number of tokens for the prompt, balancing context and speed.
- `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").
Continue offers a handful of settings to customize autocomplete behavior. For the most part, these options can be found in the [User Settings Page](../customize/settings.md).
For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx).

View file

@ -3,14 +3,17 @@ title: Autocomplete
keywords: [autocomplete]
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
### 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:
<Tabs groupId="config-example">
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
[Mistral Codestral model block](https://hub.continue.dev/mistral/codestral)
</TabItem>
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
models:
@ -41,7 +44,7 @@ If you want to have the best autocomplete experience, we recommend using Codestr
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:
```bash
ollama run qwen2.5-coder:1.5b-base
ollama run qwen2.5-coder:1.5b
```
Once it has been downloaded, you should begin to see completions in VS Code.
@ -50,13 +53,16 @@ Once it has been downloaded, you should begin to see completions in VS Code.
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):
<Tabs groupId="config-example">
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
[Qwen 2.5 Coder 1.5B model block](https://hub.continue.dev/lmstudio/qwen2.5-coder-1.5b)
</TabItem>
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
models:
- name: Tab Autocomplete Model
provider: ollama
model: qwen2.5-coder:1.5b-base
model: qwen2.5-coder:1.5b
apiBase: https://<my endpoint>
roles:
- autocomplete
@ -68,7 +74,7 @@ All of the configuration options available for chat models are available to use
"tabAutocompleteModel": {
"title": "Tab Autocomplete Model",
"provider": "ollama",
"model": "qwen2.5-coder:1.5b-base",
"model": "qwen2.5-coder:1.5b",
"apiBase": "https://<my endpoint>"
}
}

View file

@ -13,3 +13,5 @@ When editing code, Chat and Edit model output often doesn't clearly align with e
Generally speaking, models proficient in editing can also be used for applying code.
Explore apply models in [the hub](https://hub.continue.dev/explore/models?roles=apply).
{/* HUB_TODO recommended apply models? */}

View file

@ -7,10 +7,8 @@ sidebar_position: 2
An "autocomplete model" is an LLM that is trained on a special format called fill-in-the-middle (FIM). This format is designed to be given the prefix and suffix of a code file and predict what goes between. This task is very specific, which on one hand means that the models can be smaller (even a 3B parameter model can perform well). On the other hand, this means that Chat models, though larger, will often perform poorly even with extensive prompting.
In Continue, autocomplete models are used to display inline [Autocomplete](../../autocomplete/how-to-use-it.md) suggestions as you type. Autocomplete models are designated using the `autocomplete` role.
In Continue, autocomplete models are used to display inline [Autocomplete](../../autocomplete/how-to-use-it.md) suggestions as you type. Autocomplete models are designated by adding the `autocomplete` to the model's `roles` in `config.yaml`.
## Recommended Autocomplete models
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.mdx#autocomplete-model).
Visit the [Autocomplete Deep Dive](../deep-dives/autocomplete.mdx) for recommended models and more details.

View file

@ -7,11 +7,11 @@ 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), [Edit](../../edit/how-to-use-it.md), and [Actions](../../actions/how-to-use-it.md).
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.5 Sonnet](../model-providers/top-level/anthropic.mdx).
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:

View file

@ -10,7 +10,7 @@ import Tabs from "@theme/Tabs";
It's often useful to select a different model to respond to Edit prompts than for chat prompts, as Edits are often more code-specific and may require less conversational readability.
Continue offers an `edit` model role to specify models to be used for `edit`. If no edit models are specified, the selected `chat` model is used.
In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used.
Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit).
{/* HUB_TODO */}
{/* HUB_TODO recommended edit models? */}

View file

@ -12,8 +12,10 @@ An "embeddings model" is trained to convert a piece of text into a vector, which
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.
You can add `embed` to a model's `roles` to specify that it can be used to embed.
:::info[Built-in model (VS Code only)]
`transformers.js` is used as a built-in embeddings model in VS Code. In JetBrains, there currently is no built-in embedder.
:::
## Recommended embedding models
@ -87,8 +89,11 @@ See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instruc
[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:
<Tabs groupId="config-example">
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
[HuggingFace Text Embedder Block](https://hub.continue.dev/)
{/* HUB_TODO block doesn't exist */}
</TabItem>
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
models:

View file

@ -24,7 +24,7 @@ These roles can be specified for a `config.yaml` model block using `roles`. See
You can control which of the models in your assistant for a given role will be currently used for that role. Visit the [Settings page](../settings.md) and go to the **Active Models** section.
![Settings Active Models Section](/img/hub/settings-model-roles.png)
![Settings Active Models Section](/img/settings-model-roles.png)
:::info
Note that `roles` do not exist within `config.json` - they are infered by the top level keys like `embeddingsProvider`

View file

@ -57,7 +57,7 @@ See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rer
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
[Cohere Reranker English v3](https://hub.continue.dev/)
{/* HUB_TODO */}
{/* HUB_TODO block doesn't exist */}
</TabItem>
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
@ -92,7 +92,7 @@ If you only have access to a single LLM, then you can use it as a reranker. This
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
[GPT-4o LLM Reranker Block](https://hub.continue.dev/)
{/* HUB_TODO */}
{/* HUB_TODO block doesn't exist */}
</TabItem>
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"

View file

@ -9,6 +9,7 @@ keywords: [install, installation, getting started, vs code, jetbrains]
1. Click `Install` on the [Continue extension page in the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue)
2. This will open the Continue extension page in VS Code, where you will need to click `Install` again
3. The Continue logo will appear on the left sidebar. For a better experience, move Continue to the right sidebar
4. [Sign in to the hub](#signing-in) to get started with your first assistant.
![move-to-right-sidebar](/img/move-to-right-sidebar.gif)
@ -21,9 +22,16 @@ If you have any problems, see the [troubleshooting guide](../troubleshooting.mdx
1. Open your JetBrains IDE and open **Settings** using <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>S</kbd>
2. Select **Plugins** on the sidebar and search for "Continue" in the marketplace
3. Click `Install`, which will cause the Continue logo to show up on the right toolbar
4. [Sign in to the hub](#signing-in) to get started with your first assistant.
![jetbrains-getting-started.png](/img/jetbrains-getting-started.png)
:::info[Troubleshooting]
If you have any problems, see the [troubleshooting guide](../troubleshooting.mdx) or ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ)
:::
## Signing in
Click "Get started" to sign in to the hub and start using assistants.
![Hub Onboarding in the Extension](/img/hub/hub-onboarding-card.png)

View file

@ -133,7 +133,7 @@ The `models` section defines the language models used in your configuration. Mod
- `name` (**required**): A unique name to identify the model within your configuration.
- `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`).
- `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`).
- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`.
- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is not currently used.
- `defaultCompletionOptions`: Default completion options for model settings.
**Properties:**

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View file

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB