From 508229feedb18efe2a38330f98033c1488ec3d88 Mon Sep 17 00:00:00 2001 From: shloimy-wiesel <144027408+shloimy-wiesel@users.noreply.github.com> Date: Mon, 8 Sep 2025 00:46:43 -0700 Subject: [PATCH 1/2] fix: Add missing transform option to YAML autocomplete configuration --- packages/config-yaml/src/schemas/models.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/config-yaml/src/schemas/models.ts b/packages/config-yaml/src/schemas/models.ts index d5af3bfaa..62b3b29f1 100644 --- a/packages/config-yaml/src/schemas/models.ts +++ b/packages/config-yaml/src/schemas/models.ts @@ -118,6 +118,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(), From 4c7e520b18ee2c429c8be94ef0c41a61ba83bf88 Mon Sep 17 00:00:00 2001 From: shloimy-wiesel <144027408+shloimy-wiesel@users.noreply.github.com> Date: Mon, 8 Sep 2025 22:22:33 -0700 Subject: [PATCH 2/2] docs: Add transform option to config.yaml reference documentation --- docs/reference.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference.mdx b/docs/reference.mdx index e67d5dad9..899fb2fd5 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.