Skip to content

Commit a7dd390

Browse files
committed
increase message content size limit
1 parent 84ceb3c commit a7dd390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/routes/openai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const upload = multer({ storage })
2323

2424
const MessageSchema = z.object({
2525
role: z.enum(['system', 'user', 'assistant']),
26-
content: z.string().min(0).max(40_000),
26+
content: z.string().min(0).max(400_000),
2727
})
2828

2929
type MessageType = z.infer<typeof MessageSchema>

0 commit comments

Comments
 (0)