Elffuss BraidHub

kikocis/continue public

main · 1.5 KiBRawPermalink
1---
2title: Intro to Roles
3description: Apply model role
4keywords: [apply, model, role]
5sidebar_position: 0
6sidebar_label: Introduction
7---
8
9Models in Continue can be configured to be used for various roles in the extension.
10
11- [`chat`](./chat.mdx): Used for chat conversations in the extension sidebar
12- [`autocomplete`](./autocomplete): Used for autocomplete code suggestions in the editor
13- [`edit`](./edit.mdx): Used to generate code based on edit prompts
14- [`apply`](./apply.mdx): Used to decide how to apply edits to a file
15- [`embed`](./embeddings.mdx): Used to generate embeddings used for vector search (@Codebase and @Docs context providers)
16- [`rerank`](./reranking.mdx): Used to rerank results from vector search
17
18These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](/reference#models) for more details.
19
20<Info>
21 For recommendations on which models work best for each role, see our [comprehensive model recommendations](/customization/models#recommended-models).
22</Info>
23
24## Selecting model roles
25
26You can control which of the models in your agent for a given role will be currently used for that role. Above the main input, click the 3 dots and then the cube icon to expand the `Models` section. Then you can use the dropdowns to select an active model for each role.
27
28![Settings Active Models Section](/images/settings-model-roles.png)
29
30<Info>
31 `roles` are not explicitly defined within `config.json` (deprecated) - they
32 are infered by the top level keys like `embeddingsProvider`
33</Info>