Skip to content

Conversation

@prdai
Copy link

@prdai prdai commented Mar 22, 2025

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](#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 prdai requested a review from a team as a code owner March 22, 2025 03:47
@prdai prdai marked this pull request as draft March 22, 2025 03:56
@prdai prdai closed this Oct 4, 2025
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.

1 participant