bedrock

package
v0.2.0-alpha.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultVersion = "bedrock-2023-05-31"

Variables

View Source
var DefaultEndpoints = map[string]bool{
	"/v1/complete": true,
	"/v1/messages": true,
}

Functions

func WithConfig

func WithConfig(cfg aws.Config) option.RequestOption

WithConfig returns a request option which uses the provided config and registers middleware that intercepts request to the Messages API so that this SDK can be used with Amazon Bedrock.

func WithLoadDefaultConfig

func WithLoadDefaultConfig(ctx context.Context, optFns ...func(*config.LoadOptions) error) option.RequestOption

WithLoadDefaultConfig returns a request option which loads the default config for Amazon and registers middleware that intercepts request to the Messages API so that this SDK can be used with Amazon Bedrock.

If you already have an aws.Config, it is recommended that you instead call WithConfig directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL