Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ The `models` section defines the language models used in your configuration. Mod
- `modelTimeout`: Model timeout for autocomplete requests in milliseconds.
- `maxSuffixPercentage`: Maximum percentage of prompt allocated for suffix.
- `prefixPercentage`: Percentage of input allocated for prefix.
- `transform`: If `false`, disables trimming of multiline completions. Defaults to `true`. Useful for models that generate better multiline completions without transformations.
- `template`: Custom template for autocomplete using Mustache syntax. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables.
- `onlyMyCode`: Only includes code within the repository for context.
- `useCache`: If `true`, enables caching for completions.
Expand Down
1 change: 1 addition & 0 deletions packages/config-yaml/src/schemas/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const autocompleteOptionsSchema = z.object({
modelTimeout: z.number().optional(),
maxSuffixPercentage: z.number().optional(),
prefixPercentage: z.number().optional(),
transform: z.boolean().optional(),
template: z.string().optional(),
onlyMyCode: z.boolean().optional(),
useCache: z.boolean().optional(),
Expand Down
Loading