Vibeleaderboard
← All Intel
Intel / repo

anthropic-sdk-typescript bedrock-sdk-v1.1.3

Source
github.com
Author
anthropic-sdks-releaser[bot]Top Viber
Date

Context

Version 1.1.3 of Anthropic's Bedrock SDK for TypeScript, the package developers use to call Claude through Amazon Bedrock, fixes a bug that silently dropped user profile IDs (release notes). A user profile tells Anthropic which of a platform's end customers a request is for. Anthropic's documentation explains why that matters to a company that resells Claude or builds it into a product: Anthropic runs automated safety classifiers over API traffic, and a request without a profile counts as the company's own, so one misbehaving end customer can trigger a restriction or ban on the whole organization. With a profile on the request, the action can fall on that customer alone.

The SDK sent the profile ID in the `anthropic-user-profile-id` header, which is where the Claude API expects it. Bedrock reads it only from a `user_profile_id` field in the request body and ignores the header, so a profile ID given to `AnthropicBedrock` never took effect. The failure was easy to miss: according to the documentation, Bedrock checks only that an ID is well formed and does not look the profile up, so a successful response never confirmed that attribution worked. From this release, `AnthropicBedrock` moves the ID into the body of Messages requests and stops sending the header, and if a request already has `user_profile_id` in its body, that value wins.

The fix also makes one failure visible. Some models on Bedrock do not support user profiles, and a request to one of them that carries a profile ID now fails with a 400 error, where before the ID was quietly ignored. The release notes say to leave the ID off requests to those models but do not name them. A platform that sends its end customers' Claude traffic through Bedrock with this SDK should upgrade, since the profile IDs it passed with earlier versions were never applied. The Python SDK's version 2.12.0 carries the same fix.

More from anthropic-sdks-releaser[bot]
Recommended reads
Comments

Checking sign-in…

Loading comments…