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.
Use model roles.
config.yaml
Model Recommendations
Model role | Best open models | Best closed models | Notes |
---|---|---|---|
Chat Edit | Closed and open models have pretty similar performance |
Prompt templating
You can customize the prompt template used for editing code by setting thepromptTemplates.edit
property in your model configuration. Continue uses Handlebars syntax for templating.
Available variables for the edit template:
{{{userInput}}}
- The user’s edit request/instruction{{{language}}}
- The programming language of the code{{{codeToEdit}}}
- The code that’s being edited{{{prefix}}}
- Content before the edit area{{{suffix}}}
- Content after the edit area{{{supportsCompletions}}}
- Whether the model supports completions API{{{supportsPrefill}}}
- Whether the model supports prefill capability