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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm-bedrock-anthropic-0.2.tar.gz.
File metadata
- Download URL: llm-bedrock-anthropic-0.2.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a74bc99ae05d80287453feb52be5c4a43da33326b4e9ed1c358f63d9465410e
|
|
| MD5 |
3c49f986d19518fcf12af8ccd565cc43
|
|
| BLAKE2b-256 |
0a2c240a166044d6f6e58928c9160bd62f7541b151edbca41d451adb9b7cbe43
|
File details
Details for the file llm_bedrock_anthropic-0.2-py3-none-any.whl.
File metadata
- Download URL: llm_bedrock_anthropic-0.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27f23d666d82c217cf8703d112643c95e33a64110bf8cd665b62be3b74d96f06
|
|
| MD5 |
d46cba966f1d8540158da1d889d603de
|
|
| BLAKE2b-256 |
e5169ee5ae7046a76539e11c21968b8523b1358de5fbc8d9ab393479d15918c0
|