Skip to content

fix(types): allow image generation input items without result/status#2973

Open
theamodhshetty wants to merge 1 commit intoopenai:mainfrom
theamodhshetty:codex/fix-image-generation-call-input-types
Open

fix(types): allow image generation input items without result/status#2973
theamodhshetty wants to merge 1 commit intoopenai:mainfrom
theamodhshetty:codex/fix-image-generation-call-input-types

Conversation

@theamodhshetty
Copy link

Summary

  • make ImageGenerationCall input params accept image-id-only items without requiring result or status
  • apply the fix in both response input type aliases so the public params stay consistent
  • add a small regression test that pyright checks and pytest imports cleanly

Closes #2648

Validation

  • pytest tests/test_response_input_types.py -n0
  • scripts/run-pyright src/openai/types/responses/response_input_item_param.py src/openai/types/responses/response_input_param.py tests/test_response_input_types.py
  • mypy src/openai/types/responses/response_input_item_param.py src/openai/types/responses/response_input_param.py
  • ruff check src/openai/types/responses/response_input_item_param.py src/openai/types/responses/response_input_param.py tests/test_response_input_types.py

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImageGenerationCall input param type incorrectly requires result and status

1 participant