Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Bedrock SDK inference profile arn as model id #661

Closed
wants to merge 5 commits into from

Conversation

EthanLLL
Copy link

Description:

This PR fixes an issue where the model ID, when it contains a / (such as in the case of a Bedrock custom inference profile ARN), was not properly URL-encoded, leading to potential errors when forming the request path.

Changes:

The model ID is now URL-encoded using encodeURIComponent before being included in the request path, ensuring that any special characters (including /) are safely handled.
This fix specifically addresses cases where the model is specified as an ARN, such as the Bedrock custom inference profile format:
arn:aws:bedrock:us-west-2:aws-account-id:application-inference-profile/profile-id.

@EthanLLL EthanLLL requested a review from a team as a code owner January 21, 2025 03:29
@EthanLLL EthanLLL closed this Jan 29, 2025
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.

1 participant