I want to use this model with javascript for video understanding
#29
by
the-research-100
- opened
Hi, When using javascript, the code not getting "video" message. for example:
const chatCompletion = await client.chatCompletion({
provider: "nebius",
model: "Qwen/Qwen2.5-VL-72B-Instruct",
messages: [
{
role: "user",
content: [
{
type: "video",
video: "MY_VIDEO_URL", // replace with a real URL
max_pixels: 480 * 848, // optional
fps: 1.0 // optional
},
{
type: "text",
text: "Describe this video."
}
]
},
],
max_tokens: 512,
});
How to make it work? it's only accept "text" and "image_url"