2024-10-28 18:46:02 -07:00
2024-10-28 18:29:16 -07:00
2024-03-04 07:26:18 -08:00
2024-03-04 07:26:18 -08:00
2024-10-28 18:29:16 -07:00
2024-10-28 18:30:19 -07:00
2024-08-22 20:09:54 -07:00

llm-claude-3

PyPI Changelog Tests License

LLM access to Claude 3 by Anthropic

Installation

Install this plugin in the same environment as LLM.

llm install llm-claude-3

Usage

First, set an API key for Claude 3:

llm keys set claude
# Paste key here

Run llm models to list the models, and llm models --options to include a list of their options.

Run prompts like this:

llm -m claude-3.5-sonnet 'Fun facts about pelicans'
llm -m claude-3-opus 'Fun facts about squirrels'
llm -m claude-3-sonnet 'Fun facts about walruses'
llm -m claude-3-haiku 'Fun facts about armadillos'

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-claude-3
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

pytest
Description
LLM plugin for interacting with the Claude 3 family of models
Readme Apache-2.0 156 KiB
Languages
Python 100%