Skip to content

Fix bug with JSON schema generation when using InstrumentedModel #1424

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

Merged
merged 2 commits into from
Apr 9, 2025

Conversation

dmontagu
Copy link
Contributor

@dmontagu dmontagu commented Apr 9, 2025

After adding the pydantic_ai.models.Model.customize_request_parameters method, I missed adding it to the WrappedModel, which caused that method to not be called when using InstrumentedModel.

Closes #1398

@dmontagu dmontagu enabled auto-merge (squash) April 9, 2025 14:54
@dmontagu dmontagu changed the title Fix instrumented model Fix bug with JSON schema generation when using InstrumentedModel Apr 9, 2025
@dmontagu dmontagu disabled auto-merge April 9, 2025 14:54
@dmontagu dmontagu enabled auto-merge (squash) April 9, 2025 14:55
Copy link

github-actions bot commented Apr 9, 2025

Docs Preview

commit: 61c6db9
Preview URL: https://4e3fcdf7-pydantic-ai-previews.pydantic.workers.dev

@dmontagu dmontagu merged commit a5a078e into main Apr 9, 2025
12 checks passed
@dmontagu dmontagu deleted the dmontagu/fix-instrumented-model branch April 9, 2025 14:58
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.

Pydantic AI sends wrong JSON payload to Gemini in v0.0.53 but not in v0.0.52
1 participant