AWS Bedrock JavaScript SDK Integration
Learn how to integrate AWS Bedrock with Helicone using JavaScript.
Proxy Integration
Set HELICONE_API_KEY as an environment variable
Run the Bedrock command with the Helicone Proxy
Async Integration
Set API keys as environment variables
Install necessary packages
Ensure you have the necessary packages installed in your JavaScript project:
Import required modules and initialize Helicone Logger
Configure AWS Bedrock client
Create a command for the Bedrock model
Send the request and handle the response
Complete Async Example
Here’s a complete example that puts all the steps together:
This integration allows you to use AWS Bedrock with Helicone’s async logging. The Helicone logger will automatically capture traces of your AWS Bedrock API calls, providing you with valuable insights and analytics through the Helicone dashboard.
For more information on using async logging, visit the Async Logging documentation.
Was this page helpful?