LLM plugin for Anthropic's Claude on AWS Bedrock
Project description
llm-bedrock-anthropic
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 llm-bedrock-anthropic
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d00708144ad2e55f4cec2fcc1376fb536bdbcb48e8581519898966994fc699e |
|
MD5 | 35712862376b08375f45853138145d0b |
|
BLAKE2b-256 | 05308dd20084979e9819a14788b669a37912ed5c0b58424d573734e097386ae4 |
Close
Hashes for llm_bedrock_anthropic-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4964881c5e2146253ca7e6e442821bd4f26f965b0e83a40d11f0737084e2eaf4 |
|
MD5 | b8268bea5de892f8ca2d5098519dee5f |
|
BLAKE2b-256 | 52d1a8959934d1ccf22fb9b5c354ba7adf838dafe25bc6e08d2199614726c018 |