Elffuss BraidHub

kikocis/continue public

Merge pull request #7676 from continuedev/dallin/con-3853-next-edit-union

fix: HOTFIX string fallback for config yaml model capability
Changeset672c3e053fed7690ab5c9923e6230f9046456d0f9fb6186a6d8c91c7f80ff136
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-09-09 21:37 -07:00
CommitterGitHub <noreply@github.com> · 2025-09-09 21:37 -07:00
Parentsd3a66b9ab40e, 282e0c4c7843

Browse the files at this changeset

2 files changed

modified .vscode/settings.json +2 −1
@@ -43,7 +43,8 @@
4343 "extensions/vscode/e2e/storage": true,
4444 "extensions/vscode/e2e/vsix": true,
4545 "extensions/.continue-debug": true,
46- "extensions/cli/dist/**": true
46+ "extensions/cli/dist/**": true,
47+ "packages/config-yaml/dist/**": true
4748 // "sync/**": true
4849 },
4950 "editor.formatOnSave": true,
modified packages/config-yaml/src/schemas/models.ts +4 −1
@@ -37,8 +37,11 @@
3737 z.literal("tool_use"),
3838 z.literal("image_input"),
3939 z.literal("next_edit"),
40+ z.string(), // Needed for forwards compatibility, see https://github.com/continuedev/continue/pull/7676
4041 ]);
41-export type ModelCapability = z.infer<typeof modelCapabilitySchema>;
42+
43+// not ideal but lose type suggestions if use z.infer because of the string fallback
44+export type ModelCapability = "tool_use" | "image_input" | "next_edit";
4245
4346 export const completionOptionsSchema = z.object({
4447 contextLength: z.number().optional(),