Img2txt token error in express js

I tried to convert vision to img2txt in base64 format in express js, but a token error appeared. Why are you doing this?

But it works in Python.


async function generateResponse(image, stream_id, item) {
  try {
    const completion = await openai.chat.completions.create({
      model: 'gpt-4-vision-preview',
      messages: [
        {
          role: 'system',
          content: `coment`,
        },
        {
          role: 'user',
          content: [
            {
              type: 'image_url',
              image_url: {
                url: `data:image/png;base64,${image}`,
              },
            },
          ],
        },
      ],
      model: 'gpt-4-vision-preview',
    });
    const response = completion.choices[0].message.content;