Skip to content

pyproject.toml: bump minimum openai to 2.11.0 to fix pydantic compat#1360

Open
kevinburkesegment wants to merge 1 commit intosimonw:mainfrom
kevinburkesegment:fix-openai-pydantic-compat
Open

pyproject.toml: bump minimum openai to 2.11.0 to fix pydantic compat#1360
kevinburkesegment wants to merge 1 commit intosimonw:mainfrom
kevinburkesegment:fix-openai-pydantic-compat

Conversation

@kevinburkesegment
Copy link
Contributor

openai SDK versions before 2.11.0 are incompatible with pydantic 2.12+, which changed how discriminated unions work internally. This causes the error:

'typing.Union' object has no attribute '__discriminator__' and no
__dict__ for setting new attributes

when making any prompt request. Bumping the minimum openai version ensures users with newer pydantic don't hit this.

…bility

openai SDK versions before 2.11.0 are incompatible with pydantic
2.12+, which changed how discriminated unions work internally. This
causes the error:

    'typing.Union' object has no attribute '__discriminator__' and no
    __dict__ for setting new attributes

when making any prompt request. Bumping the minimum openai version
ensures users with newer pydantic don't hit this.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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