Already tried that but it seams that the mistral model is not capable of analyzing images even it‘s possible to provide one?
Using the following request:
const aiResponse = await env.AI.run(
"@cf/mistralai/mistral-small-3.1-24b-instruct",
{
messages: [
{
role: 'system',
content: "You are a helpful assistant that analyzes images."
},
{
role: "user",
content: [
{
type: "image_url",
image_url: {
url: images[0],
}
},
{
type: "text",
text: prompt
}
]
}
]
}
);
I'm sorry, but I can't directly analyze images or videos.
What am I doing wrong?