@reviewpipe/provider-anthropic
v0.1.0
Published
Anthropic (Claude) frontier provider for reviewpipe (Tier 2) — sentiment and summarization via the Anthropic SDK.
Downloads
127
Maintainers
Readme
@reviewpipe/provider-anthropic
Frontier provider (Tier 2) for reviewpipe backed by Anthropic's Claude models via the official SDK.
pnpm add @reviewpipe/provider-anthropic @anthropic-ai/sdkimport { Pipeline } from '@reviewpipe/core';
import { AnthropicProvider } from '@reviewpipe/provider-anthropic';
const result = await new Pipeline()
.source(adapter)
.provider(new AnthropicProvider({ apiKey: process.env.ANTHROPIC_API_KEY! }))
.run(input);capabilities: { sentiment: true, embeddings: false, summarization: true, customPrompts: true }.
- No embeddings — Anthropic has no embeddings endpoint. For embedding-based
theme clustering, use
@reviewpipe/provider-openaior@reviewpipe/provider-local. apiKeyis required (unless you inject a customcomplete).- Custom prompts: the summarization prompt is exported as
SUMMARY_PROMPT; override it with thepromptOverrideoption. The sentiment prompt isSENTIMENT_PROMPT. @anthropic-ai/sdkis an optional dependency loaded lazily on first use; a missing dep throws a clear error. Model defaults toclaude-opus-4-8.- Empty text is scored as a no-signal neutral without an API call.
