Amazon Bedrock
All about Amazon Bedrock.
cfg, _ := config.LoadDefaultConfig(context.Background())
client := bedrockruntime.NewFromConfig(cfg)
bedrock, err := chatmodel.NewBedrock(client)
if err != nil {
// Error handling
}
Anthrophic Support
cfg, _ := config.LoadDefaultConfig(context.Background())
client := bedrockruntime.NewFromConfig(cfg)
bedrock, err := chatmodel.NewBedrockAntrophic(client)
if err != nil {
// Error handling
}
Meta Support
cfg, _ := config.LoadDefaultConfig(context.Background())
client := bedrockruntime.NewFromConfig(cfg)
bedrock, err := chatmodel.NewBedrockMeta(client)
if err != nil {
// Error handling
}
Last modified December 10, 2023: Update docs (4545a7b)