Skip to content

Fix bug with google model safety handling #2066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dmontagu
Copy link
Contributor

Fixes an issue reported in https://pydanticlogfire.slack.com/archives/C083V7PMHHA/p1750795268032809. It looks to me like this was just an oversight in the implementation, apparently coming from the duplication in handling between streaming and non-streaming code. (Was implemented more thoroughly for non-streaming than streaming; this brings it up to parity.)

I'm not sure of a good way to reproduce the issue so I haven't added a test, but I suspect it's probably not that hard if you know what triggers it. But I'm also not sure how hard it is to add streaming tests etc.

Copy link

Docs Preview

commit: 309f8fd
Preview URL: https://5d05bdaa-pydantic-ai-previews.pydantic.workers.dev

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