Metadata-Version: 2.4
Name: chat-completion-server
Version: 0.2.4
Summary: A chat server built with FastAPI
Author-email: DL <v49t9zpqd@mozmail.com>
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: openai>=2.3.0
Requires-Dist: fastapi>=0.111.0
Requires-Dist: uvicorn[standard]>=0.29.0
Requires-Dist: python-dotenv>=1.0.1
Requires-Dist: pydantic<3.0,>=2.11
Requires-Dist: pydantic-settings>=2.0.0
Provides-Extra: test
Requires-Dist: pytest>=7.0.0; extra == "test"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
Requires-Dist: pytest-cov>=4.0.0; extra == "test"
Requires-Dist: black>=23.0.0; extra == "test"
Requires-Dist: isort>=5.12.0; extra == "test"
Requires-Dist: mypy>=1.0.0; extra == "test"
Requires-Dist: flake8>=6.0.0; extra == "test"
Provides-Extra: dist
Requires-Dist: build>=1.2.2; extra == "dist"
Requires-Dist: twine>=6.1.0; extra == "dist"

# Chat-Server
Built on FastAPI

## Usage

**Note**: the `main` branch is intended as a template, not meant to be built or ran.
Refer to implementation branches as examples.

To begin, populate envvars:

```bash
cp .env.example .env
# inspect .env and populate values
```

### Development Server

Set up virtualenv, and install dependencies. Python3.11+ is required on your host.

```bash
python3 -m venv . venv
. venv/bin/activate
pip install -e .
```

To start a server:
```bash
uvicorn app.main:app --reload --host 0.0.0.0 --port 8765
```

### Production

Running with Docker is recommended. 
`Dockerfile` is provided to help with image building.
`docker-compose.yml.example` is provided *as an example* to help with orchestrating the server,
connecting it to an instance of Open WebUI.
