Skip to main content

A chat server built with FastAPI

Project description

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:

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

Development Server

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

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

To start a server:

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.

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

chat_completion_server-0.2.4.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

chat_completion_server-0.2.4-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file chat_completion_server-0.2.4.tar.gz.

File metadata

  • Download URL: chat_completion_server-0.2.4.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for chat_completion_server-0.2.4.tar.gz
Algorithm Hash digest
SHA256 bf04d5f526b6b3b68d9c74a95b68f7119b9144d859fc29260c581dcedc51ba01
MD5 ce81df64a2cfc9daad69a1cb0bf00a25
BLAKE2b-256 c0f0bac08d33e4287f04e12aaecca9a5406e491c35a0e1ce31ee40289adf11eb

See more details on using hashes here.

File details

Details for the file chat_completion_server-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for chat_completion_server-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7bd7f9e8db566b79c7b0be3ca1a1bb79109f4fb5695016c6a14f01a56b1fbde8
MD5 a1b7e969e5b3e3cec6c84bb5227040a6
BLAKE2b-256 f4f7caf4f47f3f004c14ba534b777c900515b052bff327fbc2c55dbb97159537

See more details on using hashes here.

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