| 1 | --- |
| 2 | title: "Relace" |
| 3 | --- |
| 4 | |
| 5 | Relace provides a fast apply model through their API that helps you reliably and almost instantly apply chat suggestions to your codebase. You can sign up and obtain an API key [here](https://app.relace.ai/settings/api-keys). Then, change your configuration file to look like this: |
| 6 | |
| 7 | <Tabs> |
| 8 | <Tab title="YAML"> |
| 9 | ```yaml title="Package or config.yaml" |
| 10 | models: |
| 11 | - name: Relace Fast Apply |
| 12 | provider: relace |
| 13 | model: Fast-Apply |
| 14 | apiKey: <YOUR_RELACE_API_KEY> |
| 15 | roles: |
| 16 | - apply |
| 17 | promptTemplates: |
| 18 | apply: "{{{ new_code }}}" |
| 19 | ``` |
| 20 | </Tab> |
| 21 | <Tab title="JSON"> |
| 22 | ```json title="config.json" |
| 23 | { |
| 24 | "models": [ |
| 25 | { |
| 26 | "title": "Relace Fast Apply", |
| 27 | "provider": "relace", |
| 28 | "model": "Fast-Apply", |
| 29 | "apiKey": "<YOUR_RELACE_API_KEY>" |
| 30 | } |
| 31 | ] |
| 32 | } |
| 33 | ``` |
| 34 | </Tab> |
| 35 | </Tabs> |
| 36 | |
| 37 | [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Relace.ts) |