autocomplete
to the model’s roles
in config.yaml
.
Recommended Autocomplete models
Model role | Best open models | Best closed models | Notes |
---|---|---|---|
Autocomplete | Closed models are slightly better than open models |
Prompt templating
You can customize the prompt template used when autocomplete happens by setting thepromptTemplates.autocomplete
property in your model configuration. Continue uses Handlebars syntax for templating.
Available variables for the apply template:
{{{prefix}}}
- the code before your cursor{{{suffix}}}
- the code after your cursor{{{filename}}}
- the name of the file your cursor currently is{{{reponame}}}
- the name of the folder where the codebase is{{{language}}}
- the name of the programming language in full (ex. Typescript)