-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
This "Using image ID" example shows they are not required:
The code incorrectly claims they are:
openai-python/src/openai/types/responses/response_input_item_param.py
Lines 124 to 135 in 71dedfa
| class ImageGenerationCall(TypedDict, total=False): | |
| id: Required[str] | |
| """The unique ID of the image generation call.""" | |
| result: Required[Optional[str]] | |
| """The generated image encoded in base64.""" | |
| status: Required[Literal["in_progress", "completed", "generating", "failed"]] | |
| """The status of the image generation call.""" | |
| type: Required[Literal["image_generation_call"]] | |
| """The type of the image generation call. Always `image_generation_call`.""" |
To Reproduce
Run the referenced example, see that it works, despite a typing error.
Code snippets
OS
macOS
Python version
3.12.9
Library version
1.107.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working