Skip to content

Allow callers to omit detail from ResponseInputImageParam #4349

Backlog

Description

@marcuswood-oai

Thanks to the author of #2786 for identifying this mismatch. The Responses API defaults image detail to auto when the key is omitted. The generated ResponseInputImageParam declares detail as required, so a type checker flags a valid image input.

from openai.types.responses import ResponseInputImageParam

image: ResponseInputImageParam = {"type": "input_image", "file_id": "file-example"}

Update the source schema used to generate the SDK so this example type-checks and the request omits detail on the wire. Explicit values should continue to accept the full ImageDetail set, including original.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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