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

Uploaded Python 3

File details

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

File metadata

  • Download URL: chat_completion_server-0.2.3.tar.gz
  • Upload date:
  • Size: 11.2 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.3.tar.gz
Algorithm Hash digest
SHA256 0913ebdcda702554eaa72424609efe99a55109915e59b8ee5861a35b85ddaa76
MD5 4e4844d0aa38b82b9ac62e6d22d7796b
BLAKE2b-256 9ce06f40eb0530c4058f2a2797a5d761171ae98a9c15ddab4f48e591147f3d88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chat_completion_server-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a93f402c24bc5dfdf786255d773118bc8927c6e99f4f2a24988605c8378fc8f
MD5 c7afd4a75811fd4c70c899be9bae3610
BLAKE2b-256 3567a2b9fecf39aff61d29b3066a33020fd0872d3ccd52b0461ecb15c92a6821

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