Skip to content

anthropic: Match other providers format for provider_metadata#157

Merged
msullivan merged 1 commit into
mainfrom
anthropic-metadata-shape
May 29, 2026
Merged

anthropic: Match other providers format for provider_metadata#157
msullivan merged 1 commit into
mainfrom
anthropic-metadata-shape

Conversation

@msullivan
Copy link
Copy Markdown
Contributor

That is, do it as {"anthropic": {...}} instead of
{"provider": "anthropic", ...} dict. This matches what gateway does
and what our openai code does.

BACKWARDS COMPATABILITY: this changes the public provider_metadata
shape; signatures on messages persisted under the old flat key won't
be recognized on replay.

That is, do it as `{"anthropic": {...}}` instead of
`{"provider": "anthropic", ...}` dict. This matches what gateway does
and what our openai code does.

BACKWARDS COMPATABILITY: this changes the public `provider_metadata`
shape; signatures on messages persisted under the old flat key won't
be recognized on replay.
@msullivan msullivan requested a review from anbuzin May 29, 2026 04:20
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-python Ready Ready Preview, Comment May 29, 2026 4:21am

@msullivan msullivan merged commit b6bfd85 into main May 29, 2026
7 checks passed
@msullivan msullivan deleted the anthropic-metadata-shape branch May 29, 2026 17:45
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