Skip to main content

Anthropic Plugin

The Anthropic plugin provides access to Claude and Claude Instant using the Chat Anthropic node.

info

At the moment you must use the node executor to use the Anthropic plugin in the Rivet UI. You may also use the plugin when embedding Rivet in your own application.

Configuration

You must put your Anthropic API key in the Rivet settings panel once the Anthropic plugin has been enabled. See Settings for more information.

Nodes

Chat (Anthropic) Node

The Chat (Anthropic) node allows you to use the Claude API to generate text.

Chat (Anthropic) Node

Inputs

TitleData TypeDescriptionDefault ValueNotes
Promptstring or string[] or chat-message or chat-message[]The messages to send to Claude to get a response.(Required)Claude Instant and Claude 2.0 does not support a system prompt like GPT does, so you may have to get inventive to place words into Claude's mouth using Prompt nodes set to AI.
SystemstringA system prompt to provide context and instructions to Claude. This input is only available when using a Claude 3 model.(Optional)Use the system prompt to specify a particular goal or role for Claude. You can instead include a system-type chat-message in the Prompt input. If there are multiple system-type messages, only the first one will be used. See the guide to system prompts for more information.

Outputs

TitleData TypeDescriptionNotes
ResponsestringThe response message from Claude

Editor Settings

SettingDescriptionDefault ValueUse Input ToggleInput Data Type
ModelThe Claude model to use for the request (Claude 3 Opus, Claude 3 Sonnet, Claude 2.1, Claude 2 or Claude Instant)Claude 2Yesstring
TemperatureThe sampling temperature to use. Lower values are more deterministic. Higher values are more "creative".0.5Yesnumber
Top PAlternate sampling mode using the top X% of values. 0.1 corresponds to the top 10%.1Yesnumber
Use Top PWhether to use the Top P sampling mode.falseYesboolean
Max TokensThe maximum number of tokens that GPT is allowed to return. When hitting the max tokens, the response will be cut off.1024Yesnumber
StopComma separated list of stop tokens. If any stop token is encountered, the response will end immediately.(None)Yesstring[]

Using Vision with Claude 3 Models

When using a Claude 3 model (Claude 3 Opus or Claude 3 Sonnet), you can use the Assemble Message Node to create prompt messages that contain an image.