AWS Bedrock Claude
Use AWS Bedrock to access the Claude models.
Authentication
Set your AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
and environment variables.
Example
Use OpenAIChat
with your Assistant
:
Params
The name identifier for the Claude assistant.
The specific model ID used for generating responses.
The maximum number of tokens to generate in the response.
The sampling temperature to use, between 0 and 2. Higher values like 0.8 make the output more random, while lower values like 0.2 make it more focused and deterministic.
The nucleus sampling parameter. The model considers the results of the tokens with top_p probability mass.
The number of highest probability vocabulary tokens to keep for top-k-filtering.
A list of sequences where the API will stop generating further tokens.
The version of the Anthropic API to use.
Additional parameters for the request, provided as a dictionary.
Additional client parameters for initializing the AwsBedrock
client,
provided as a dictionary.