bedrock-access-gateway icon indicating copy to clipboard operation
bedrock-access-gateway copied to clipboard

run non-stream requests as async calls to avoid blocking requests

Open eliran89c opened this issue 1 year ago • 4 comments

*Issue #22

Description of changes: This PR demonstrates that running boto3 in async mode resolves the issue described.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

eliran89c avatar Jun 23 '24 11:06 eliran89c

Thanks for the PR, I will need to validate it first. Will try to update as soon as I can.

daixba avatar Jul 01 '24 03:07 daixba

For urgent usage, please do a customization to the code and deploy and host your own ECR images.

daixba avatar Jul 01 '24 03:07 daixba

For urgent usage, please do a customization to the code and deploy and host your own ECR images.

Thanks, we are using custom deployment for EKS but I believe this is something others will benefit from

eliran89c avatar Jul 11 '24 07:07 eliran89c

I mostly agree with this pr and prefer from fastapi.concurrency import run_in_threadpool which using anyio for both asyncio and trio backend.

Wh1isper avatar Jan 09 '25 09:01 Wh1isper

I think this is very important, can it be merged?

reckless-huang avatar Jul 03 '25 02:07 reckless-huang

@reckless-huang I'm currently using litellm (proxy only).

Wh1isper avatar Jul 03 '25 02:07 Wh1isper