Optional
credentialsOptional
endpointOverride the default endpoint hostname.
Optional
endpointUse endpointHost instead Override the default endpoint url.
This feature is deprecated and will be removed in the future.
It is not recommended for use.
Optional
fetchA custom fetch function for low-level access to AWS API. Defaults to fetch().
A custom fetch function for low-level access to AWS API. Defaults to fetch().
Optional
init: RequestInitA custom fetch function for low-level access to AWS API. Defaults to fetch().
Optional
init: RequestInitOptional
maxMax tokens.
Optional
modelModel to use. For example, "amazon.titan-tg1-large", this is equivalent to the modelId property in the list-foundation-models api.
Optional
modelAdditional kwargs to pass to the model.
Optional
regionThe AWS region e.g. us-west-2
.
Fallback to AWS_DEFAULT_REGION env variable or region specified in ~/.aws/config in case it is not provided here.
Optional
stopOptional additional stop sequences to pass to the model. Currently only supported for Anthropic and AI21.
Use .bind({ "stop": [...] }) instead
Optional
streamingWhether or not to stream responses
Optional
temperatureTemperature.
Generated using TypeDoc
AWS Credentials. If no credentials are provided, the default credentials from
@aws-sdk/credential-provider-node
will be used.