Reduce max image dimensions in OAI parameters schema
Browse filesLowered the maxWidth and maxHeight for images from 2048 to 1024 in the endpointOAIParametersSchema. This change restricts the allowed image size for uploads, possibly to improve performance or comply with new requirements.
src/lib/server/endpoints/openai/endpointOai.ts
CHANGED
|
@@ -41,8 +41,8 @@ export const endpointOAIParametersSchema = z.object({
|
|
| 41 |
],
|
| 42 |
preferredMimeType: "image/jpeg",
|
| 43 |
maxSizeInMB: 3,
|
| 44 |
-
maxWidth:
|
| 45 |
-
maxHeight:
|
| 46 |
}),
|
| 47 |
})
|
| 48 |
.default({}),
|
|
|
|
| 41 |
],
|
| 42 |
preferredMimeType: "image/jpeg",
|
| 43 |
maxSizeInMB: 3,
|
| 44 |
+
maxWidth: 1024,
|
| 45 |
+
maxHeight: 1024,
|
| 46 |
}),
|
| 47 |
})
|
| 48 |
.default({}),
|