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
{{ message }}
Repository navigation
images().edit() rejects image with 400 “expected file but got string” #452
I’m trying to call openAIClient.images().edit(...) in the Java SDK, but I keep getting: 400: Invalid type for 'image': expected one of an array of files or file, but got a string instead.
I’ve tried a few different ways to pass the image, but so far no luck. For example, here’s a minimal repro:
Activity
danielfariati commentedon Apr 25, 2025
Ok, it isn't a bug... If anyone encounter this also, you have to set a filename... So doing something like this works: