Hi,
I am getting a not-so-verbose error saying my image is invalid. My workflow includes uploading images to the GCP storage bucket and using those URLs in the prompt. The png images are public but I’m not sure why OpenAI is not taking them in.
Error: BadRequestError: Error code: 400 - {'error': {'message': 'Invalid image.', 'type': 'invalid_request_error', 'param': None, 'code': None}}
Here is a sample URL that is not working.
response = client.chat.completions.create(
model="gpt-4-vision-preview",
messages=[
{
"role": "user",
"content": [
{"type": "text", "text": "Describe the image."},
{
"type": "image_url",
"image_url": {
"url": "https://storage.googleapis.com/image-save-bucket/a9f3706e66452b08f9f6ae93a6d1a6b2cdnbubbleiof1704802072614x356122042160301950take_0.png"
}
}
],
}
],
max_tokens=1500,
)