Hi guys, I'm trying to build a chrome extension that uses the openai api to send it images. I was able to setup the assistants api to handle chat interactions, but I can't seem to upload images to it, or when I do, the assistant doesn't seem to load them into context or even understand they're there.
Not sure why, perhaps I'm handling it wrong in the frontend. I let users upload image files in the chatbot (through an <input /> tag), and if an image has been uploaded, I load it to the AI as such
fileUpload ? await openai.files.create({
file: new File([fileUpload], fileUpload.name, { type: fileUpload.type }),
purpose: "vision",
}) : null
Not sure if it's how I'm handling this or what, but I can clearly see that images are being uploaded to the AI (I can even see it in the storage tab of the openai dashboard) but for some odd reason the assistant keeps saying It cant see any images. When I try it in playground it works just fine.