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.0.tar.gz (2.7 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.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chat_completion_server-0.2.0.tar.gz
  • Upload date:
  • Size: 2.7 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.0.tar.gz
Algorithm Hash digest
SHA256 dfa6be9b6f4a540c096a01a37309c65e932a424adf417db570edbb66eef59667
MD5 274dc209ec84ee79d8952af941207f19
BLAKE2b-256 5dbab3938f2142f7a7810ad5ed6d9818dd99bb40614d0b697464b2654b1cba78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chat_completion_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5a71ebba2786fc15a659c04de95652bec24783540db8a7cf6e9f2545482293a
MD5 ef5eb9dbda7c110d6243b5f72cfbc5b6
BLAKE2b-256 55a092ffe92492fdf744436c696f7411668237b9ef5f3f722a023ca8f27c01e6

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