Elffuss BraidHub

kikocis/continue public

fix: z.string fallback for model capability
Changesetf9f2874144731e6b92bf99e21f9782e61a203c4052f9035e979cc3489523c86c
AuthorDallin Romney <dallinromney@gmail.com> · 2025-09-09 18:21 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-09-09 18:21 -07:00
Parents8c097bfc78a4

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 +5 −1
@@ -37,8 +37,12 @@
3737 z.literal("tool_use"),
3838 z.literal("image_input"),
3939 z.literal("next_edit"),
40+ z.string(),
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+
45+export type ModelCapability = "tool_use" | "image_input" | "next_edit";
4246
4347 export const completionOptionsSchema = z.object({
4448 contextLength: z.number().optional(),