Anthropic Models
Use the Anthropic Console online to generate an API key and copy it into your config.js file assigning it to the “apiKey” property.
For example:
models: {
"Claude 2 Streaming": {
provider: "anthropic",
model: "claude-2.1",
apiKey: "sk-ant-......",
stream: true
}
}
Prior to using models from Anthropic, use the commands below to install the Anthropic SDK and the fast-xml-parser npm packages:
npm install @anthropic-ai/sdk
npm install fast-xml-parser