An open API service indexing awesome lists of open source software.

https://github.com/wh1isper/bedway

Self-host [bedrock-access-gateway](https://github.com/aws-samples/bedrock-access-gateway)
https://github.com/wh1isper/bedway

Last synced: about 1 month ago
JSON representation

Self-host [bedrock-access-gateway](https://github.com/aws-samples/bedrock-access-gateway)

Awesome Lists containing this project

README

        

![](https://img.shields.io/github/license/wh1isper/bedway)
![](https://img.shields.io/github/v/release/wh1isper/bedway)
![](https://img.shields.io/docker/image-size/wh1isper/bedway)
![](https://img.shields.io/pypi/dm/bedway)
![](https://img.shields.io/github/last-commit/wh1isper/bedway)
![](https://img.shields.io/pypi/pyversions/bedway)

# bedway

Self-host and maintained [bedrock-access-gateway](https://github.com/aws-samples/bedrock-access-gateway), which is under [MIT No Attribution License](https://github.com/aws-samples/bedrock-access-gateway/blob/093c6fa586be04964820baaf1e3dca431f1fe823/LICENSE)

Why this project:

- No AWS infrastructure needed
- Improved performance: https://github.com/aws-samples/bedrock-access-gateway/issues/22
- Bug fix and new features: https://github.com/aws-samples/bedrock-access-gateway/issues/92, https://github.com/aws-samples/bedrock-access-gateway/issues/88
- Easy to deploy
- Quick response to community requests

## Install

`pip install bedway` then `bedway serve`

Or use docker image

`docker pull wh1isper/bedway`

## Usage

```bash
docker run --name bedway \
-p 9128:9128 \
-e "AWS_ACCESS_KEY_ID=" \
-e "AWS_SECRET_ACCESS_KEY=" \
-e "AWS_REGION=" \
-e "DEFAULT_MODEL_NAME=" \
-e "API_KEY=" \
wh1isper/bedway
```

See more settings in [setting.py](./bedway/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
```