Anthropic
The anthropic
provider access Anthropic models. Anthropic is an AI research company that offers powerful language models, including the Claude series.
script({ model: "anthropic:claude-2.1" })
To use Anthropic models with GenAIScript, follow these steps:
Sign up for an Anthropic account and obtain an API key from their console.
Add your Anthropic API key to the
.env
file:.env ANTHROPIC_API_KEY=sk-ant-api...Find the model that best suits your needs by visiting the Anthropic model documentation.
Update your script to use the
model
you choose.script({...model: "anthropic:claude-3-5-sonnet-20240620",})
Aliases
The following model aliases are attempted by default in GenAIScript.
Alias | Model identifier |
---|---|
large | claude-3-7-sonnet-latest |
small | claude-3-5-haiku-latest |
vision | claude-3-7-sonnet-latest |
vision_small | claude-3-5-sonnet-latest |
reasoning | claude-3-7-sonnet-latest:high |
reasoning_small | claude-3-7-sonnet-latest:low |
Limitations
- logprobs (and top logprobs) ignored
- Ignore prediction of output tokens
- topLogprobs