openai-python
openai-python copied to clipboard
feat(responses): add ComputerCallOutput to response input parameters
This PR introduces an alias import for ComputerCallOutput in the openai.types.responses module by importing it from the response_input_param module. This change provides a unified and accessible entry point via the package’s __init__.py.
Context
Some users have encountered the following error when attempting to import ComputerCallOutput from openai.types.responses:
ImportError: cannot import name 'ComputerCallOutput' from 'openai.types.responses'
This issue is tracked in [GitHub issue #2231](https://github.com/openai/openai-python/issues/2231).
Changes
- Added an alias import in
__init__.pyof theopenai.types.responsesmodule:from .response_input_param import ComputerCallOutput as ComputerCallOutput - (Note: The duplicate definition of
ComputerCallOutputinsrc/openai/types/responses/response_input_item_param.pyremains unchanged for now.)