diff --git a/.vscode/settings.json b/.vscode/settings.json index c55d9798c..9f3f17f98 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -43,7 +43,8 @@ "extensions/vscode/e2e/storage": true, "extensions/vscode/e2e/vsix": true, "extensions/.continue-debug": true, - "extensions/cli/dist/**": true + "extensions/cli/dist/**": true, + "packages/config-yaml/dist/**": true // "sync/**": true }, "editor.formatOnSave": true, diff --git a/packages/config-yaml/src/schemas/models.ts b/packages/config-yaml/src/schemas/models.ts index d5af3bfaa..0b9b8202d 100644 --- a/packages/config-yaml/src/schemas/models.ts +++ b/packages/config-yaml/src/schemas/models.ts @@ -37,8 +37,11 @@ export const modelCapabilitySchema = z.union([ z.literal("tool_use"), z.literal("image_input"), z.literal("next_edit"), + z.string(), // Needed for forwards compatibility, see https://github.com/continuedev/continue/pull/7676 ]); -export type ModelCapability = z.infer; + +// not ideal but lose type suggestions if use z.infer because of the string fallback +export type ModelCapability = "tool_use" | "image_input" | "next_edit"; export const completionOptionsSchema = z.object({ contextLength: z.number().optional(),