Skip to content

pydantic-ai v1.5.0 incompatibility with google-genai v1.31.0 #3251

@jerry-reevo

Description

@jerry-reevo

Initial Checks

Description

With pydantic-ai v1.5.0 and google-genai v1.31.0 I am getting the following error:

AttributeError: type object 'FinishReason' has no attribute 'IMAGE_PROHIBITED_CONTENT'. Did you mean: 'PROHIBITED_CONTENT'?

It looks like IMAGE_PROHIBITED_CONTENT was added in a newer version and pydantic-ai might need to declare a minimum version of google-genai

Example Code

Python, Pydantic AI & LLM client version

Python 3.13.9

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions