"Invalid image" error in gpt-4-vision

Wow, this is strange, I’ll double-check with your request, I see you didn’t pass the ‘detail’ parameters. Thank you for trying it!

Upd: It works for me as well. I removed the detail and temperature parameters and added max-tokens. I am just a bit confused as to why did you pass the string for “image_url” instead of an object. But nevertheless, for an object, the problem was fixed as well. Thank you all for help!

 model: 'gpt-4-vision-preview',
 messages: [
                {
                    role: 'user',
                    content: [
                        { type: 'text', text: 'Describe the images.' },
                        {
                            type: 'image_url',
                            image_url: {url: 'https://s3.amazonaws.com/thumbnails.venngage.com/template/224aa448-5adf-4287-aca7-ce09cc177fd8.png'},
                        },
                        {
                            type: 'image_url',
                            image_url: {url: 'https://info.methodlearning.com/hubfs/schedule.jpg'},
                        },
                    ],
                }
            ],
  max_tokens: 1500,
1 Like