LLM plugin for Anthropic's Claude on AWS Bedrock
Project description
llm-bedrock-claude
Plugin for LLM adding support for Anthropic's Claude models.
Installation
Install this plugin in the same environment as LLM. From the current directory
llm install -e .
Configuration
You will need to specify AWS Configuration with the normal boto3 and environment variables.
For example, to use the region us-west-2
and AWS credentials under the personal
profile, set the environment variables
export AWS_DEFAULT_REGION=us-west-2
export AWS_PROFILE=personal
Usage
This plugin adds models called bedrock-claude
and bedrock-claude-instant
.
You can query them like this:
llm -m bedrock-claude-instant "Ten great names for a new space station"
llm -m bedrock-claude "Compare and contrast the leadership styles of Abraham Lincoln and Boris Johnson."
Options
max_tokens_to_sample
, default 8_191: The maximum number of tokens to generate before stopping
Use like this:
llm -m bedrock-claude -o max_tokens_to_sample 20 "Sing me the alphabet"
Here is the alphabet song:
A B C D E F G
H I J
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
Close
Hashes for llm-bedrock-anthropic-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9a77868cca9ba6171ab0c1a84496daf25540b57eccb1ffd959b9335343aa9e3 |
|
MD5 | f185b687dc83d933886ece5175b1a5b5 |
|
BLAKE2b-256 | 9d56dc162724bbaace0e06271ebe9377ad2e068ac3ec0632fdcb6c7dd01e1784 |
Close
Hashes for llm_bedrock_anthropic-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc5cfa4e730ade783077a8d8a16b866267b0c0797acfc181cd4fe9c1e09c73e1 |
|
MD5 | dbb2e505c14715f5a24ff1ce21235fbb |
|
BLAKE2b-256 | 859cdb38598bdee9876054b63ea93044218a9b6e46a2d74bf52f66d7815edff0 |