Skip to content

Commit dcd92dd

Browse files
committed
Reduce max image upload size to 1MB
Changed the maxSizeInMB parameter for image uploads from 3MB to 1MB in the OpenAI endpoint schema to enforce stricter file size limits.
1 parent 91fd2cb commit dcd92dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/server/endpoints/openai/endpointOai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const endpointOAIParametersSchema = z.object({
4040
"image/jpeg",
4141
],
4242
preferredMimeType: "image/jpeg",
43-
maxSizeInMB: 3,
43+
maxSizeInMB: 1,
4444
maxWidth: 1024,
4545
maxHeight: 1024,
4646
}),

0 commit comments

Comments
 (0)