Skip to main content

Run prompts against models hosted on AWS Bedrock

Project description

llm-bedrock

PyPI Changelog Tests License

Run prompts against models hosted on AWS Bedrock

Installation

Install this plugin in the same environment as LLM.

llm install llm-bedrock

Usage

You'll need an access key and a secret key to use this plugin, with permission granted to access the Bedrock models. These step by step instructions can help you obtain those credentials.

Combine those into a access_key:secret_key format (joined by a colon) and paste that into:

llm keys set bedrock
# paste access_key:secret_key here

Run llm models to see the list of models. Run a prompt like this:

llm -m us.amazon.nova-pro-v1:0 'a happy poem about a pelican with a secret'

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-bedrock
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

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

llm_bedrock-0.1a0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_bedrock-0.1a0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file llm_bedrock-0.1a0.tar.gz.

File metadata

  • Download URL: llm_bedrock-0.1a0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for llm_bedrock-0.1a0.tar.gz
Algorithm Hash digest
SHA256 0042e2ca0016e9f9688d74bd5d90f345bc75fc065693afc4b3cc2cb3205f7102
MD5 b0cfa8f4542b2eb2b35a08f048a85488
BLAKE2b-256 af2a16f042dca3f2a33f88740e9c128e8fca9e86794c74c2faaba07ad55e1bcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_bedrock-0.1a0.tar.gz:

Publisher: publish.yml on simonw/llm-bedrock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_bedrock-0.1a0-py3-none-any.whl.

File metadata

  • Download URL: llm_bedrock-0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for llm_bedrock-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 14067582d005ff990d5a545b3d38e625785150fd1480d66603d5cbc74e363027
MD5 a65c1d1658d7fed72746ea5c037e0845
BLAKE2b-256 46ad8df40a4b8aa28b8773d717b0951a91b2334c141b358d8480a8bc063821f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_bedrock-0.1a0-py3-none-any.whl:

Publisher: publish.yml on simonw/llm-bedrock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page