Skip to content

Commit 63d6073

Browse files
committed
Reduce max image dimensions in OAI parameters schema
Lowered 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.
1 parent 328a85f commit 63d6073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export const endpointOAIParametersSchema = z.object({
4141
],
4242
preferredMimeType: "image/jpeg",
4343
maxSizeInMB: 3,
44-
maxWidth: 2048,
45-
maxHeight: 2048,
44+
maxWidth: 1024,
45+
maxHeight: 1024,
4646
}),
4747
})
4848
.default({}),

0 commit comments

Comments
 (0)