Skip to content

Commit 9e1e37a

Browse files
committed
add nullable to schema
1 parent 45e4542 commit 9e1e37a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export const MessageGenerationInfoSchema = z.object({
6565
id: z.string(),
6666
name: z.string(),
6767
systemMessage: z.string().optional(),
68-
model: z.string().optional(),
69-
temperature: z.number().min(0).max(1).optional(),
68+
model: z.string().optional().nullable(),
69+
temperature: z.number().min(0).max(1).optional().nullable(),
7070
}),
7171
z.object({
7272
type: z.literal('custom'),

0 commit comments

Comments
 (0)