chat_gpt_sdk icon indicating copy to clipboard operation
chat_gpt_sdk copied to clipboard

Uploaded image must be a png and less than 4 mb - ERROR

Open intellign opened this issue 1 year ago • 2 comments

Can anyone help? I've been stuck on this for days... I even tried converting the path to base64 but nothing work... by the way the file is png, less than 1MB and is a square.

These suggestion didn't help either: https://community.openai.com/t/using-image-url-in-images-edits-request/27247/3

` void variation(File image, String name) async { final request = Variation(image: EditFile(image.path, name)); final response = await openAI.editor.variation(request);

print(response.data?.last?.url); } `

intellign avatar Jul 07 '23 04:07 intellign

@intellign you try convert to argb png

redevrx avatar Jul 10 '23 02:07 redevrx

@redevrx how I do convert to argb png?

intellign avatar Jul 19 '23 19:07 intellign