Skip to content

Conversation

@vercel-ai-sdk
Copy link
Contributor

@vercel-ai-sdk vercel-ai-sdk bot commented Sep 30, 2025

This is an automated backport of #8861 to the release-v5.0 branch.

…ovider (#8861)

## Summary

I added "citations" option as bedrock part provider options

We need this to analyze PDF using anthropic model through bedrock
converse api.

https://docs.claude.com/en/docs/build-with-claude/pdf-support#amazon-bedrock-pdf-support

Reference:
Official type definition -
https://github.com/aws/aws-sdk-js-v3/blob/281c666796e62691a6af521d21a87ad788b54c68/clients/client-bedrock-runtime/src/commands/ConverseCommand.ts#L80

## Manual Verification

1. I prepared pdf whose contents is only image, no text.
2. I called bedrock anthropic model to extract information from it with
citations: true and citations: false
3. I checked if citations is enabled I could extract information, but
not with citations disabled.

## Related Issues

close #8511

---------

Co-authored-by: Gregor Martynus <[email protected]>
@gr2m gr2m merged commit 62d43ff into release-v5.0 Sep 30, 2025
12 checks passed
@gr2m gr2m deleted the backport-pr-8861-to-release-v5.0 branch September 30, 2025 04:35
@gr2m gr2m added ai/provider provider/amazon-bedrock Issues related to the @ai-sdk/amazon-bedrock provider labels Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider provider/amazon-bedrock Issues related to the @ai-sdk/amazon-bedrock provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants