Skip to content

chore: port pydantic-ai v1.70.0 changes#28

Merged
a7ul merged 2 commits intomainfrom
copilot/chore-port-pydantic-ai-v1700
Mar 18, 2026
Merged

chore: port pydantic-ai v1.70.0 changes#28
a7ul merged 2 commits intomainfrom
copilot/chore-port-pydantic-ai-v1700

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 18, 2026

Tracks pydantic-ai v1.70.0 (from v1.68.0). All changes in this release are model-specific bug fixes and features that are handled by the underlying Vercel AI SDK providers — not this SDK.

Changes

  • Bumps .github/pydantic-ai-version.txt from 1.68.01.70.0

What's in v1.70.0 (and why it doesn't require code changes here)

Change Why not ported
bedrock_inference_profile on BedrockModelSettings Bedrock handled by @ai-sdk/amazon-bedrock
Bedrock: sanitize tool names before API call Same
Anthropic: handle malformed tool call args in retry path Handled by @ai-sdk/anthropic
Anthropic: recover prior text for thinking-only responses Same
OpenRouter: Anthropic model profile matching for dotted model numbers OpenRouter handled by Vercel AI SDK providers
Cohere: always pass embedding_types to embed() No embeddings in this SDK
Google: add '512' as supported image generation size Handled by @ai-sdk/google

This SDK delegates all model I/O to Vercel AI SDK adapters; none of the above require changes at this layer.

Original prompt

This section details on the original issue you should resolve

<issue_title>chore: port pydantic-ai v1.70.0 changes</issue_title>
<issue_description>## Versions

Version
Previous v1.68.0
New v1.70.0
PyPI https://pypi.org/project/pydantic-ai/1.70.0/
Compare pydantic/pydantic-ai@v1.68.0...v1.70.0

Release Summary

Pydantic AI Release: v1.68.0 → v1.70.0

PyPI: https://pypi.org/project/pydantic-ai/1.70.0/
GitHub Release: https://github.com/pydantic/pydantic-ai/releases/tag/v1.70.0
Compare: pydantic/pydantic-ai@v1.68.0...v1.70.0

Release Notes

What's Changed

🚀 Features

🐛 Bug Fixes

New Contributors

Full Changelog: pydantic/pydantic-ai@v1.69.0...v1.70.0

Changed Files in pydantic-ai

.github/workflows/bots.yml
.github/workflows/pr-guard.yml
.gitignore
docs/builtin-tools.md
docs/embeddings.md
docs/models/bedrock.md
docs/models/overview.md
docs/multi-agent-applications.md
docs/tools-advanced.md
docs/toolsets.md
pydantic_ai_slim/pydantic_ai/_agent_graph.py
pydantic_ai_slim/pydantic_ai/_function_schema.py
pydantic_ai_slim/pydantic_ai/_output.py
pydantic_ai_slim/pydantic_ai/_utils.py
pydantic_ai_slim/pydantic_ai/agent/__init__.py
pydantic_ai_slim/pydantic_ai/agent/abstract.py
pydantic_ai_slim/pydantic_ai/agent/wrapper.py
pydantic_ai_slim/pydantic_ai/builtin_tools.py
pydantic_ai_slim/pydantic_ai/embeddings/bedrock.py
pydantic_ai_slim/pydantic_ai/embeddings/cohere.py
pydantic_ai_slim/pydantic_ai/messages.py
pydantic_ai_slim/pydantic_ai/models/anthropic.py
pydantic_ai_slim/pydantic_ai/models/bedrock.py
pydantic_ai_slim/pydantic_ai/models/fallback.py
pydantic_ai_slim/pydantic_ai/models/google.py
pydantic_ai_slim/pydantic_ai/models/groq.py
pydantic_ai_slim/pydantic_ai/models/mistral.py
pydantic_ai_slim/pydantic_ai/models/openai.py
pydantic_ai_slim/pydantic_ai/models/xai.py
pydantic_ai_slim/pydantic_ai/profiles/google.py
pydantic_ai_slim/pydantic_ai/providers/bedrock.py
pydantic_ai_slim/pydantic_ai/providers/openrouter.py
pydantic_ai_slim/pydantic_ai/toolsets/function.py
pydantic_ai_slim/pydantic_ai/ui/_event_stream.py
pydantic_ai_slim/pydantic_ai/ui/ag_ui/_event_stream.py
pydantic_ai_slim/pydantic_ai/ui/vercel_ai/_adapter.py
pydantic_ai_slim/pydantic_ai/ui/vercel_ai/_event_stream.py
pydantic_ai_slim/pydantic_ai/usage.py
scripts/scrub_cassette.py
scripts/upload_test_files.py
scripts/verify_bedrock_access.py
scripts/verify_vertex_gcs.py
scripts/verify_vertex_gcs_all_types.py
scripts/verify_vertex_gcs_tool_result.py
tests/cassette_utils.py
tests/cassettes/test_embeddings/TestBedrock.test_inference_profile_embed.yaml
tests/cassettes/test_embeddings/TestCohere.test_documents.yaml
tests/cassettes/test_embeddings/TestCohere.test_embed_error.yaml
tests/cassettes/test_embeddings/TestCohere.test_query.yaml
tests/cassettes/test_embeddings/TestCohere.test_query_with_cohere_truncate.yaml
tests/cassettes/test_embeddings/TestCohere.test_query_with_truncate.yaml
tests/conftest.py
tests/graph/test_graph.py
tests/json_body_serializer.py
tests/models/cassettes/test_bedrock/test_bedrock_inference_profile_converse.yaml
tests/models/cassettes/test_bedrock/test_bedrock_inference_profile_count_tokens.yaml
tests/models/cassettes/test_gemini/test_image_as_binary_content_tool_response.yaml
tests/models/cassettes/test_groq/test_image_as_binary_content_tool_response.yaml
tests/models/cassettes/test_multimodal_tool_returns/test_mixed_content_ordering[anthropic].yaml
tests/models/cassettes/test_multimodal_tool_returns/test_mixed_conten...

</details>



<!-- START COPILOT CODING AGENT SUFFIX -->

- Fixes a7ul/vibes#27

<!-- START COPILOT CODING AGENT TIPS -->
---

📍 Connect Copilot coding agent with [Jira](https://gh.io/cca-jira-docs), [Azure Boards](https://gh.io/cca-azure-boards-docs) or [Linear](https://gh.io/cca-linear-docs) to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: a7ul <4029423+a7ul@users.noreply.github.com>
Copilot AI changed the title [WIP] [CHORE] Port pydantic-ai v1.70.0 changes chore: port pydantic-ai v1.70.0 changes Mar 18, 2026
Copilot AI requested a review from a7ul March 18, 2026 23:33
Copilot finished work on behalf of a7ul March 18, 2026 23:33
@a7ul a7ul marked this pull request as ready for review March 18, 2026 23:33
@a7ul a7ul merged commit c6afb1e into main Mar 18, 2026
1 check passed
@a7ul a7ul deleted the copilot/chore-port-pydantic-ai-v1700 branch March 18, 2026 23:33
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.

2 participants