Skip to content

GPT-5.4-Mini returns 500 internal errors 95% of the time when providing input files / images as parameters #3090

@Tom3652

Description

@Tom3652

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

When i send a prompt like :

EasyInputMessageParam(
                    role="user",
                    content=[
                        ResponseInputTextParam(
                            type="input_text",
                            text=f"<attachment_meta id=\"{attachment_id}\" kind=\"image\" />",
                        ),
                        ResponseInputImageParam(
                            detail="auto", type="input_image", image_url=url
                        )
                    ],
                )

The gpt-5.4-mini model throws and retry 3 times with error 500 internal.
-> If with the exact same input i use gpt-5.4 it works very fine

To Reproduce

  1. Simply try to send a request with a ResponseInputImageParam with a valid url and test the response between gpt-5.4-mini and gpt-5.4

Code snippets

OS

MacOS

Python version

3.12.0

Library version

2.31.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions