Skip to content

Wh1isper/bedway

Repository files navigation

bedway

Self-host and maintained bedrock-access-gateway, which is under MIT No Attribution License

Why this project:

Install

pip install bedway then bedway serve

Or use docker image

docker pull wh1isper/bedway

Usage

docker run --name bedway \
-p 9128:9128 \
-e "AWS_ACCESS_KEY_ID=<access_key_id>" \
-e "AWS_SECRET_ACCESS_KEY=<secret_access_key>" \
-e "AWS_REGION=<aws_region>" \
-e "DEFAULT_MODEL_NAME=<default_model_name>" \
-e "API_KEY=<api_key_for_this_service>" \
wh1isper/bedway

See more settings in setting.py

Develop

Install pre-commit before commit

pip install pre-commit
pre-commit install

Unittest

Install package locally

pip install -e .[test]

TODO: Write some test..

pytest -v