openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

feat(responses): add ComputerCallOutput to response input parameters

Open prdai opened this issue 8 months ago • 0 comments

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__.py of the openai.types.responses module:
    from .response_input_param import ComputerCallOutput as ComputerCallOutput
    
  • (Note: The duplicate definition of ComputerCallOutput in src/openai/types/responses/response_input_item_param.py remains unchanged for now.)

prdai avatar Mar 22 '25 03:03 prdai