Skip to content

Duplicate Image URL will cause error #436

Open
@quan-nguyen-vulcan

Description

@quan-nguyen-vulcan

When using the openai-go SDK to send a chat request with two public image URLs in the same input, the API returns an error stating that the image data is invalid, even though both images are valid and publicly accessible.

Error:
{ "error": "Chat: Failed to process OpenAI Response request: POST \"https://api.openai.com/v1/responses\": 400 Bad Request {\n \"message\": \"The image data you provided does not represent a valid image. Please check your input and try again with one of the supported image formats: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].\",\n \"type\": \"invalid_request_error\",\n \"param\": \"input\",\n \"code\": \"invalid_value\"\n }" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions