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

Uploaded Python 3

File details

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

File metadata

  • Download URL: chat_completion_server-0.2.2.tar.gz
  • Upload date:
  • Size: 2.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.2.tar.gz
Algorithm Hash digest
SHA256 76102b7388fc7132bfc0d1da2d2f5a107be521911c2b872bbf38b8a0f837fc46
MD5 bd0d9fa786163de0f4e04d6d59fc7327
BLAKE2b-256 dccd2387ed6569aebf84cd1ed156d01b5432f74709e208a199f89bfbd1976d50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chat_completion_server-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fdc44bf9aedf122c553821a9f8cf95d6d39f6e678dbc3a09e5220a6620b4c6f7
MD5 74716b59f4a6a4f92c88a8154a9fb41c
BLAKE2b-256 e99283630dc7a99ca79af635396c2efc75e629799228db0d6eec06a30c7ec7d2

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