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-v3-sonnet "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.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a93f633052280a41df8a1943422b2c4ad18b484f90558785d0658e0ceb5cddc3 |
|
MD5 | eb2c5a2d32aa54b2c25f17c279ccf8f5 |
|
BLAKE2b-256 | d7067514f7c670253eb86fd4ffdc91780f94aecac5866bdd19ca62c52dc28c52 |
Close
Hashes for llm_bedrock_anthropic-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3931750714018d1bacb9d7da42e7cbb6304c27241a7a3270298cc3502a0918f |
|
MD5 | 56ef8299bcb4ff8d3f099ae7de7d81db |
|
BLAKE2b-256 | 992dfd90d1268351fb35079fa1b1ec0f33f9f848332ecf559f3d603e860d8954 |