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 command below to install the Anthropic SDK npm package:
npm install @anthropic-ai/sdk