LLM plugin for Anthropic's Claude
Project description
llm-claude
Plugin for LLM adding support for Anthropic's Claude model.
Installation
Install this plugin in the same environment as LLM.
llm install llm-claude
Configuration
You will need an API key from Anthropic. Request access at https://www.anthropic.com/earlyaccess then go to https://console.anthropic.com/account/keys
You can set that as an environment variable called ANTHROPIC_API_KEY
, or add it to the llm
set of saved keys using:
llm keys set claude
Enter key: <paste key here>
Usage
This plugin adds models called claude
and claude-instant
.
Anthropic describe them as:
two families of models, both of which support 100,000 token context windows:
Claude Instant: low-latency, high throughput Claude: superior performance on tasks that require complex reasoning
You can execute them like this:
llm -m claude-instant "Ten great names for a new space station"
llm -m claude "Compare and contrast the leadership styles of Abraham Lincoln and Boris Johnson."
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-claude
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for llm_claude-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be35660b32d7c63b1a4f57284e91e4c01f110010582ed23a8978736f9d790579 |
|
MD5 | 893135907dab0c1088922d7eddad9206 |
|
BLAKE2b-256 | b590ba56ac299d116f3222f6fbd91bccd7cd7b779d2cee8018412aa86b729626 |