Airtable image + OpenAI message an assistant image url

I have a scenario where I get an image from Airtable and I need to pass it to my assistant. I am using image url for it but I get an error saying:
“[400] Invalid ‘messages[0].content[1].image_url.url’. Expected url to end in a supported format: jpeg, jpg, png, gif, webp.”
I have a valid png in the airtable but I found out that airtable image links are not ending with file format. I tried to use chat completions and it works but I need to use message an asistant due to need of back-and-forth messaging and I want to use thread ID. How can I fix this situation?