Skip to content

Add special handling of bedrock-runtime service in service router #11706

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

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

silv-io
Copy link
Member

@silv-io silv-io commented Oct 17, 2024

Motivation

As bedrock and bedrock-runtime have the same signing name bedrock, bedrock-runtime requests are directed to the /model path. This is similar to how sagemaker-runtime also works.

Changes

  • Add special handling for bedrock to send requests to /model/ and /guardrail/ to the bedrock-runtime provider.
  • Re-activate the tests for bedrock and bedrock-runtime

@silv-io silv-io added the semver: patch Non-breaking changes which can be included in patch releases label Oct 17, 2024
Copy link

github-actions bot commented Oct 17, 2024

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   3m 32s ⏱️
423 tests 369 ✅  54 💤 0 ❌
846 runs  738 ✅ 108 💤 0 ❌

Results for commit b54fd87.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 17, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 42m 44s ⏱️ +11s
3 508 tests ±0  3 095 ✅ ±0  413 💤 ±0  0 ❌ ±0 
3 510 runs  ±0  3 095 ✅ ±0  415 💤 ±0  0 ❌ ±0 

Results for commit b54fd87. ± Comparison against base commit bf8fafe.

♻️ This comment has been updated with latest results.

@silv-io silv-io marked this pull request as ready for review October 17, 2024 14:25
@silv-io silv-io requested a review from alexrashed as a code owner October 17, 2024 14:25
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have an automated test which basically tests every single possible endpoint.
For bedrock, this is currently disabled because it did not work.
Would be great to remove this exclusion to verify that your fix actually works.
Afterwards we should be good to go! 🚀

@silv-io silv-io requested a review from thrau as a code owner October 17, 2024 15:33
@silv-io silv-io requested a review from alexrashed October 17, 2024 15:34
Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 🤖 LGTM!

Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks for enabling bedrock in the service router tests! This way we can be sure that (a) every routing in the service really works, and (b) there are no regressions due to newly introduced services causing new routing ambiguities. :)

@silv-io silv-io merged commit 56dd5cb into master Oct 18, 2024
43 checks passed
@silv-io silv-io deleted the add-bedrock-runtime-service branch October 18, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants