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

Uploaded Python 3

File details

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

File metadata

  • Download URL: chat_completion_server-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1a1ce64ab5d64aa1aab3788374c62a1d4ac627992b462d75a592c61b4d8fdfc6
MD5 e7f928cd470f3f7d25243dc47ce73d4e
BLAKE2b-256 945eab644b4297be164f214d3e71fe30c2f041e59bf654ae28c57922e2c82a50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chat_completion_server-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 179159ce656e7a71267c7b620013f9f7a7853d6bbf2983e65681f3520b9c18fc
MD5 036bb8f30470438fc6abbeb20b3d4d37
BLAKE2b-256 4f021156eec230e645749241469f79d29a6e7840166490a7183a4c3adb946a8e

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