Skip to main content
Version: Main branch

superduper_anthropic

Superduper allows users to work with anthropic API models. The key integration is the integration of high-quality API-hosted LLM services.

Installation​

pip install superduper_anthropic

API​

ClassDescription
superduper_anthropic.model.AnthropicAnthropic predictor.
superduper_anthropic.model.AnthropicCompletionsCohere completions (chat) predictor.

Examples​

AnthropicCompletions​

from superduper_anthropic.model import AnthropicCompletions

model = AnthropicCompletions(
identifier="claude-2.1",
predict_kwargs={"max_tokens": 64},
)
model.predict_batches(["Hello, world!"])