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​
Class | Description |
---|---|
superduper_anthropic.model.Anthropic | Anthropic predictor. |
superduper_anthropic.model.AnthropicCompletions | Cohere 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!"])