Models
Anthropic Model
Configure Anthropic as your model provider
The anthropic
function configures Anthropic’s Claude as your model provider.
Configuration
The anthropic
function accepts a model name string or a configuration object:
Options
ID of the model to use. See the model endpoint compatibility table for details on which models work with the Anthropic API.
The maximum number of tokens to generate before stopping.
The Anthropic API key to use for authenticating your request. By default we’ll
search for and use the ANTHROPIC_API_KEY
environment variable.
The beta headers to enable, eg. for computer use, prompt caching, and so on.
The base URL for the Anthropic API.
Available Models
claude-3-5-haiku-latest
claude-3-5-haiku-20241022
claude-3-5-sonnet-latest
claude-3-5-sonnet-20241022
claude-3-5-sonnet-20240620
claude-3-opus-latest
claude-3-opus-20240229
claude-3-sonnet-20240229
claude-3-haiku-20240307
claude-2.1
claude-2.0
claude-instant-1.2