v1.70.0
pydantic/pydantic-aiv1.70.0Mar 18, 2026by DouweM
AI Summary
Adds support for Bedrock inference profiles and fixes several bugs across Anthropic, OpenRouter, Cohere, and Google providers.
Key Highlights
- Added `bedrock_inference_profile` to BedrockModelSettings and BedrockEmbeddingSettings
- Fixed OpenRouter Anthropic model profile matching for dotted model numbers
- Fixed Cohere `embed()` TypeError by always passing `embedding_types`
- Fixed Bedrock tool names before sending to API
New Features
- Bedrock inference profile support
Full Release Notes
<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Add `bedrock_inference_profile` to BedrockModelSettings and BedrockEmbeddingSettings by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/4697 ### 🐛 Bug Fixes * fix: OpenRouter Anthropic model profile matching for dotted model numbers by @majdalsado in https://github.com/pydantic/pydantic-ai/pull/4690 * fix: always pass `embedding_types` to Cohere `embed()` to prevent SDK `TypeError` by @adityasingh2400 in https://github.com/pydantic/pydantic-ai/pull/4524 * fix(google): add '512' as supported image generation size by @nat-bishop in https://github.com/pydantic/pydantic-ai/pull/4649 * fix(bedrock): sanitize tool names before sending to API by @DouweM in https://github.com/pydantic/pydantic-ai/pull/4713 * fix: handle malformed tool call args in Anthropic retry path by @Saad-Azi in https://github.com/pydantic/pydantic-ai/pull/4431 * fix: recover prior text for thinking-only responses instead of retrying by @majiayu000 in https://github.com/pydantic/pydantic-ai/pull/4558 ## New Contributors * @adityasingh2400 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4524 * @nat-bishop made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4649 * @Saad-Azi made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4431 **Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v1.69.0...v1.70.0