Add Bedrock Converse client with --provider flag and worker subproces…#135
Open
Pidem wants to merge 2 commits into
Open
Add Bedrock Converse client with --provider flag and worker subproces…#135Pidem wants to merge 2 commits into
Pidem wants to merge 2 commits into
Conversation
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds native AWS Bedrock support via the Converse API. No proxy or external server required — just AWS credentials.
Changes
synchronous boto3 call via run_in_executor to avoid blocking the async event loop.
subprocesses also accept the new client type.
Usage
uv sync --group bedrock
AWS_PROFILE=my-profile uv run medarc-eval medqa
-m nova-pro
--endpoints-path configs/medmarks-endpoints-bedrock.toml
--provider bedrock
-n 25
Authentication uses the standard boto3 credential chain (AWS_PROFILE, AWS_REGION, ~/.aws/config, SSO, instance roles).
Tested
Note
This is a monkeypatch bridge until verifiers#1522 (PrimeIntellect-ai/verifiers#1522) is merged upstream, at which point medarc_verifiers/bedrock/ can be removed.