Hi, im trying to upload and image to an assistant in base64 but i got an invalid format error.
Code:
var message = await openai.beta.threads.messages.create(
thread.id,
{
role: "user",
content: [
{
"type": "image_url",
"image_url": {"url": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSU..."}
}
]
}
);