victor HF Staff commited on
Commit
f96e789
·
1 Parent(s): 950b9ea

Reduce max image upload size to 1MB

Browse files

Changed the maxSizeInMB parameter for image uploads from 3MB to 1MB in the OpenAI endpoint schema to enforce stricter file size limits.

src/lib/server/endpoints/openai/endpointOai.ts CHANGED
@@ -40,7 +40,7 @@ export const endpointOAIParametersSchema = z.object({
40
  "image/jpeg",
41
  ],
42
  preferredMimeType: "image/jpeg",
43
- maxSizeInMB: 3,
44
  maxWidth: 1024,
45
  maxHeight: 1024,
46
  }),
 
40
  "image/jpeg",
41
  ],
42
  preferredMimeType: "image/jpeg",
43
+ maxSizeInMB: 1,
44
  maxWidth: 1024,
45
  maxHeight: 1024,
46
  }),