Anthropic Models

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-parser

Steps

  1. Open the Anthropic Console in your web browser.

  2. Generate a new API key.

  3. Copy the generated key into your config.js file.

  4. 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 } }