
-
To fix this issue, AWS has provided the great project aws-samples/bedrock-access-gateway - It allows you to deploy an Application Load Balancer + Lambda/Fargate pair so that you can use OpenAI's official SDKs with the OpenAI-API compatibile Rest API endpoint via the environment variables OPENAI_API_BASE and OPENAI_API_KEY.
-
Nutrient
Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
-
Also, you can use Lambda Web Adapter + Function URL (see example) to replace ALB or AWS Fargate to replace Lambda to get better performance on streaming response.
-
sudo yum update -y sudo yum install -y python3.12 python3.12-pip ( cd /tmp && \ curl -L https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip -o aws-sam-cli-linux-x86_64.zip && \ unzip aws-sam-cli-linux-x86_64.zip -q -d sam-installation && \ sudo ./sam-installation/install ) git clone --depth=1 https://github.com/gabrielkoo/bedrock-access-gateway-function-url cd bedrock-access-gateway-function-url ./prepare_source.sh sam build sam deploy --guided
-
bedrock-access-gateway-function-url
OpenAI-Compatible RESTful APIs for Amazon Bedrock, modified from the original "bedrock-access-gateway" project for not using ALB, so that one could deploy and use it under a pay as you go model without fixed costs.
sudo yum update -y sudo yum install -y python3.12 python3.12-pip ( cd /tmp && \ curl -L https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip -o aws-sam-cli-linux-x86_64.zip && \ unzip aws-sam-cli-linux-x86_64.zip -q -d sam-installation && \ sudo ./sam-installation/install ) git clone --depth=1 https://github.com/gabrielkoo/bedrock-access-gateway-function-url cd bedrock-access-gateway-function-url ./prepare_source.sh sam build sam deploy --guided