victor HF Staff commited on
Commit
9e09cb3
·
1 Parent(s): f7b33d7

Reduce max image dimensions in OAI parameters schema

Browse files

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.

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: 2048,
45
- maxHeight: 2048,
46
  }),
47
  })
48
  .default({}),
 
41
  ],
42
  preferredMimeType: "image/jpeg",
43
  maxSizeInMB: 3,
44
+ maxWidth: 1024,
45
+ maxHeight: 1024,
46
  }),
47
  })
48
  .default({}),