Skip to content

Post v1.99.2 breaking changes #2535

@MicheleMorelli

Description

@MicheleMorelli

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

Hello,

Thank you for fixing the regression issues introduced with 1.99.2 so quickly.
(follows #2529 and #2525)

I have noticed that the following import, that used to work pre-v1.99.2, is now broken:

from openai.types.chat.chat_completion_message_tool_call import Function

This, however, fixes it:

from openai.types.chat.chat_completion_message_function_tool_call import Function

I just wanted to double-check whether this is also an un-intended regression, or if the latter version of the import is the preferred one from now on.

Thanks!

To Reproduce

from openai.types.chat.chat_completion_message_tool_call import Function

Code snippets

OS

Any OS

Python version

Python 3.12+

Library version

openai v1.99.4+

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions