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.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 979d9ff9bec40a709301bec427b1cf45ac021fe2bc8ae188477c0b37f3aae21b |
|
MD5 | d251b2bf56aa27744fd4a2f75e99b417 |
|
BLAKE2b-256 | a787bc3bd4cd2925a7641f10fffbed686719553875bfb97da7f29637b3787465 |
Close
Hashes for llm_bedrock_anthropic-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccff9233233b1c20a4e91bb51c7ab5cdd18d5513673b393669b23cfefa7bd011 |
|
MD5 | cd74b1b42c2ad503713fd74cd2b8dec9 |
|
BLAKE2b-256 | 608bd282a785a66d27ef8462c954994e124c71f56101814505d068bba0615444 |