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

Async compatible AWSClient? #625

Open
lucasgadams opened this issue Dec 22, 2024 · 1 comment
Open

Async compatible AWSClient? #625

lucasgadams opened this issue Dec 22, 2024 · 1 comment

Comments

@lucasgadams
Copy link

Describe the improvement

I am looking for an async compatible rerank client for AWS Bedrock. Currently I see that BedrockClientV2 inherits from AwsClientV2 -> ClientV2. Is there something similar planned to make an AsyncBedrockClient from AsyncClientV2? It seems to me this is quite achievable as it would mean just using the same event hooks I think? Or am I missing something more complicated. Thanks.

@billytrend-cohere
Copy link
Collaborator

Hey @lucasgadams thanks so much for the suggestion. I have looked into this, and unfortunately the AWS libraries do not provide async implementations. There is some complexity to implementing their http logic so we don't plan producing our own async aws clients.

Are you able to use something like run_in_executor for your use case?

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

No branches or pull requests

2 participants