I’m generating S3 pre-signed URL for files that have been uploaded to S3, So far I’ve checked that the image has been pushed to S3 correctly, with the correct content type and content disposition, by default these images are private, however, I’m generating pre-signed URL to send as image URL to chat API, but I’m always getting The following error
{"message"=>"Invalid image.", "type"=>"invalid_request_error", "param"=>nil, "code"=>"invalid_image"}}
Here is the API request payload:
[
{
type: 'image_url',
image_url: {
url: "pre_s3_signed_url"
}
},
]