Skip to content

Commit dcf07a0

Browse files
authored
Merge pull request #7626 from shloimy-wiesel/fix/autocomplete-yaml-transform-flag
fix: Add missing transform option to YAML autocomplete configuration
2 parents 5e0001c + cc01c9b commit dcf07a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/reference.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ The `models` section defines the language models used in your configuration. Mod
251251
- `modelTimeout`: Model timeout for autocomplete requests in milliseconds.
252252
- `maxSuffixPercentage`: Maximum percentage of prompt allocated for suffix.
253253
- `prefixPercentage`: Percentage of input allocated for prefix.
254+
- `transform`: If `false`, disables trimming of multiline completions. Defaults to `true`. Useful for models that generate better multiline completions without transformations.
254255
- `template`: Custom template for autocomplete using Mustache syntax. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables.
255256
- `onlyMyCode`: Only includes code within the repository for context.
256257
- `useCache`: If `true`, enables caching for completions.

packages/config-yaml/src/schemas/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export const autocompleteOptionsSchema = z.object({
121121
modelTimeout: z.number().optional(),
122122
maxSuffixPercentage: z.number().optional(),
123123
prefixPercentage: z.number().optional(),
124+
transform: z.boolean().optional(),
124125
template: z.string().optional(),
125126
onlyMyCode: z.boolean().optional(),
126127
useCache: z.boolean().optional(),

0 commit comments

Comments
 (0)