Skip to main content

A web chat interface plugin for llm

Project description

LLM Webchat logo

LLM Webchat

PyPI Tests License

A plugin for the LLM tool. When installed, running llm webchat starts a local webserver. Visiting its address in the browser lets you see conversations in your llm database and chat with supported language models.

The appearance and functionality of llm-webchat are heavily customizable: styles, frontend behavior and even the backend logic.

For more details, see the high-level architecture docs or the extension docs.

Quickstart

llm install llm-webchat
llm webchat

Screenshot

Screenshot of LLM Webchat in a browser

Configuration

LLM Webchat recognizes the following environment variables (all of which are optional):

  • LLM_WEBCHAT_CONVERSATION_IDS: a comma-separated whitelist of conversations.
  • LLM_WEBCHAT_JAVASCRIPT_PLUGINS: a comma-separated list of .js files containing frontend plugins (see the extension docs for more details).
  • LLM_WEBCHAT_STATIC_PATHS: a comma-separated list of additional file paths that should be served from /plugins.
  • LLM_WEBCHAT_HOST: the host address the server binds to. Defaults to 127.0.0.1.
  • LLM_WEBCHAT_PORT: the port the server listens on. Defaults to 8000.
  • LLM_WEBCHAT_TOOL_CHAIN_LIMIT: maximum number of chained tool responses allowed per message. Defaults to 20. Set to 0 for unlimited.

Development

Prerequisites

  • A reasonably recent version of Python with uv
  • A reasonably recent version of Node

Building and running

Build the frontend (output goes to src/llm_webchat/static/):

cd frontend
npm install
npm run build

Run the backend (serves the built frontend at /):

uv run llm-webchat

For frontend development with hot reload (proxies /api requests to the backend):

cd frontend
npm run dev

Running tests

uv run pytest
cd frontend
npm test

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

llm_webchat-2.6.0.tar.gz (300.9 kB view details)

Uploaded Source

Built Distribution

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

llm_webchat-2.6.0-py3-none-any.whl (123.1 kB view details)

Uploaded Python 3

File details

Details for the file llm_webchat-2.6.0.tar.gz.

File metadata

  • Download URL: llm_webchat-2.6.0.tar.gz
  • Upload date:
  • Size: 300.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for llm_webchat-2.6.0.tar.gz
Algorithm Hash digest
SHA256 121e57d2aa65aca3c387732e8d3c8759244a2c855d3de192cc8a9a2f6a3e12e2
MD5 3791f419be0e240550f77d0ba114cc54
BLAKE2b-256 66bb242aaff013aa47e13287fe241bf0a7e0c6cded98b0fb12b0079f91fd079a

See more details on using hashes here.

File details

Details for the file llm_webchat-2.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_webchat-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62fbe1232a887807fc4d7ab0d4eff349977b0f0382161c0792453e2ee8c2ff80
MD5 0597d0064c3503626b9ab21074a6f8a9
BLAKE2b-256 4f26f1a0711c8451b0965160323fca551baed813bfeb61ce8d65278327a81f0e

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