diff --git a/docs/reference.mdx b/docs/reference.mdx index 0f498f583..8da668f9f 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -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. diff --git a/packages/config-yaml/src/schemas/models.ts b/packages/config-yaml/src/schemas/models.ts index 0b9b8202d..9f5a9e96e 100644 --- a/packages/config-yaml/src/schemas/models.ts +++ b/packages/config-yaml/src/schemas/models.ts @@ -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(),