Anthropic Claude
Claude is a family of foundational AI models by Anthropic that can be used in a variety of applications.
Authentication
Set your ANTHROPIC_API_KEY
environment. You can get one from Anthropic here.
Example
Use Claude
with your Assistant
:
Params
The name identifier for the 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.
A list of sequences where the API will stop generating further tokens.
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.
The API key for authenticating requests to the service.
The base URL for making API requests to the service.
An instance of AnthropicClient provided for making API requests.