Skip to main content

LLM access to Claude 3 by Anthropic

Project description

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

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

llm_claude_3-0.5.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

llm_claude_3-0.5-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file llm_claude_3-0.5.tar.gz.

File metadata

  • Download URL: llm_claude_3-0.5.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for llm_claude_3-0.5.tar.gz
Algorithm Hash digest
SHA256 9a847e40a64124bf8aa6a390304bef3fe30b9fe38aa3c404312b704fa1abd234
MD5 1f751ed6de62e45c8b3d2e2a1f4aa812
BLAKE2b-256 787b75b6f76ee856b3a29b35a0a884353f3d394ef457b210401f7e7edef58369

See more details on using hashes here.

File details

Details for the file llm_claude_3-0.5-py3-none-any.whl.

File metadata

  • Download URL: llm_claude_3-0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for llm_claude_3-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5da20be2510bc000c2ed2133e3b39a71fbe3229885fe57828b29e2174c160d51
MD5 8e0ba004c639462d91f022e9b8191098
BLAKE2b-256 6e99aebf975b7b5ec8505ff5be077e355d08d0d2c77711c4a6990e33cd3da771

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page