You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invalid type for 'image': expected one of an array of files or file, but got a string instead.
What am I doing incorrectly here?
I've searched around and it seems others are having similar issues with different libraries, so this may be an open ai api issue not a ruby library issue. Ex: openai/openai-python#2341
The text was updated successfully, but these errors were encountered:
Playing around with the CLI a little and I found that the API complains about jpegs but allows me to use PNGs. The same PNG does not work from the ruby library though. This code works:
We relied too much on "application/octet-stream" when the service requires "text/plain" & the JPG's content_type.
I will have to check with a colleague to identify a fix for this, since I do not want to accidentally break other endpoints when I change the encoding behaviour. Please expect a fix early next week 👍
Hi,
I've been trying to use the images.edit api and having issues. When I submit a single file like this:
I get the error:
Invalid file 'image': unsupported mimetype ('application/octet-stream'). Supported file formats are 'image/jpeg', 'image/png', and 'image/webp',
If I wrap it in an array:
I get
Invalid type for 'image': expected one of an array of files or file, but got a string instead.
What am I doing incorrectly here?
I've searched around and it seems others are having similar issues with different libraries, so this may be an open ai api issue not a ruby library issue. Ex: openai/openai-python#2341
The text was updated successfully, but these errors were encountered: