From a5655b08ad5c5302f2d4b058e6aed0a7d9f4391d Mon Sep 17 00:00:00 2001 From: Guangya Liu Date: Fri, 16 Aug 2024 15:43:16 -0400 Subject: [PATCH] update br (#200) --- aws/bedrock1.py | 8 ++++++++ aws/langchain-bedrock.py | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/aws/bedrock1.py b/aws/bedrock1.py index 6ce5ccc..d2037e9 100644 --- a/aws/bedrock1.py +++ b/aws/bedrock1.py @@ -1,3 +1,11 @@ +''' +Put following parameter to a .env file + +TRACELOOP_API_KEY= +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +''' + from dotenv import load_dotenv load_dotenv() diff --git a/aws/langchain-bedrock.py b/aws/langchain-bedrock.py index 120d516..e0617ee 100644 --- a/aws/langchain-bedrock.py +++ b/aws/langchain-bedrock.py @@ -8,6 +8,16 @@ /Users/gyliu/.aws ''' +''' +AWS Bedrock Pricing https://aws.amazon.com/bedrock/pricing/ + +| **Amazon Titan Models** | **Price per 1,000 Input Tokens** | **Price per 1,000 Output Tokens** | +|------------------------------------|----------------------------------|-----------------------------------| +| Amazon Titan Text Premier | $0.0005 | $0.0015 | +| Amazon Titan Text Lite | $0.00015 | $0.0002 | +| Amazon Titan Text Express | $0.0002 | $0.0006 | +''' + from dotenv import load_dotenv load_dotenv()