Anthropic Models
See Model Configuration for a full list of available model properties.
Overview
Use the procedure outlined below to configure and use Anthropic models in Profound AI.
Requirements
Prior to using models from Anthropic, the commands below must be used to install the Anthropic SDK and the fast-xml-parser npm packages:
npm install @anthropic-ai/sdk
npm install fast-xml-parserSteps
Open the Anthropic Console in your web browser.
Generate a new API key.
Copy the generated key into your config.js file.
Assign the copied key to the apiKey property.
Example
The example below shows a sample configuration for the claude-2.1 model:
models: {
"Claude 2 Streaming": {
provider: "anthropic",
model: "claude-2.1",
apiKey: "sk-ant-......",
stream: true
}
}