-
Notifications
You must be signed in to change notification settings - Fork 1
fix: updated west region to east-1 for bedrock client #192
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,9 +16,9 @@ def init_bedrock(): | |
| 3) Return the bedrock_runtime_client for direct 'invoke_model' calls. | ||
| """ | ||
| bedrock_runtime_client = boto3.client( | ||
| service_name="bedrock-runtime", region_name="us-west-2" | ||
| service_name="bedrock-runtime", region_name="us-east-1" | ||
| ) | ||
| bedrock_client = boto3.client(service_name="bedrock", region_name="us-west-2") | ||
| bedrock_client = boto3.client(service_name="bedrock", region_name="us-east-1") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above, is bedrock_client = boto3.client(service_name="bedrock", region_name="us-east-1") # Updated to us-east-1. Consider making this configurable via environment variable |
||
|
|
||
| config = JavelinConfig( | ||
| javelin_api_key=os.getenv("JAVELIN_API_KEY") # Replace with your Javelin API key | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
us-east-1the correct region for all use cases? It might be helpful to add a comment explaining why this region was chosen and whether it should be configurable via an environment variable or other configuration means. This would increase the flexibility of the code.