Reduce max image upload size to 1MB
Browse filesChanged 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:
|
| 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 |
}),
|