Skip to content

Commit 5784460

Browse files
authored
chore: make language setting optional (#99)
1 parent 63d22ef commit 5784460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/store/validate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ const PresetSourceSchema = z.object({
1515

1616
export const PresetSchema = z.object({
1717
// Required fields
18-
language: z.enum(['zh', 'en']),
1918
vlmProvider: z.nativeEnum(VlmProvider),
2019
vlmBaseUrl: z.string().url(),
2120
vlmApiKey: z.string().min(1),
2221
vlmModelName: z.string().min(1),
2322

2423
// Optional fields
24+
language: z.enum(['zh', 'en']).optional(),
2525
screenshotScale: z.number().min(0.1).max(1).optional(),
2626
reportStorageBaseUrl: z.string().url().optional(),
2727
utioBaseUrl: z.string().url().optional(),

0 commit comments

Comments
 (0)