I am making an app that integrates with OpenAI API that does some image evaluation. I have images stored on File Storage accordingly but when I generate URL to send over to OpenAI API in a request like:
const response = await openai.chat.completions.create({
model: "gpt-4o-mini",
messages: [
{
role: "user",
content: [
{ type: "text", text: "What’s in this image?" },
{
type: "image_url",
image_url: {
"url": "https://third-kookabura-301.convex.cloud/api/storage/f27a79fa-1b9a-45a8-8cff-fa9c69e95207",
},
},
],
},
],
});
There's an error from OpenAI API:
You uploaded an unsupported image. Please make sure your image has of one the following formats: ['png', 'jpeg', 'gif', 'webp']
I know this is the validation issue on OpenAI API side, but it would be good to include extension so that it can be interpreted by other services.
Thank You!