Skip to main content
The AWS Bedrock model provides access to models hosted on AWS Bedrock.

Parameters

ParameterTypeDefaultDescription
idstrRequiredThe id of the AWS Bedrock model to use
namestr"AwsBedrock"The name of the model
providerstr"AWS"The provider of the model
temperatureOptional[float]NoneControls randomness in the model’s output
max_tokensOptional[int]NoneMaximum number of tokens to generate
top_pOptional[float]NoneControls diversity via nucleus sampling
top_kOptional[int]NoneControls diversity via top-k sampling
stop_sequencesOptional[List[str]]NoneA list of strings that the model should stop generating text at
response_formatOptional[str]NoneThe format of the response
request_paramsOptional[Dict[str, Any]]NoneAdditional parameters to include in the request
aws_regionOptional[str]NoneThe AWS region to use (defaults to AWS_REGION env var)
aws_access_key_idOptional[str]NoneAWS access key ID (defaults to AWS_ACCESS_KEY_ID env var)
aws_secret_access_keyOptional[str]NoneAWS secret access key (defaults to AWS_SECRET_ACCESS_KEY env var)
aws_session_tokenOptional[str]NoneAWS session token (defaults to AWS_SESSION_TOKEN env var)
aws_profileOptional[str]NoneAWS profile to use (defaults to AWS_PROFILE env var)
client_paramsOptional[Dict[str, Any]]NoneAdditional parameters for client configuration
I