A web chat interface plugin for llm
Project description
LLM Webchat
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
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 to127.0.0.1.LLM_WEBCHAT_PORT: the port the server listens on. Defaults to8000.LLM_WEBCHAT_TOOL_CHAIN_LIMIT: maximum number of chained tool responses allowed per message. Defaults to20. Set to0for 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_webchat-2.7.0.tar.gz.
File metadata
- Download URL: llm_webchat-2.7.0.tar.gz
- Upload date:
- Size: 302.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d92905758863f69701366ac70956931cb0e40cd66abca3263054796941b61e97
|
|
| MD5 |
9434c55279d0b996bf7d2d4bc6f609ab
|
|
| BLAKE2b-256 |
057f26ef3b7012d3abb71bfe91569f999d35861334be687575a9745d90083a36
|
File details
Details for the file llm_webchat-2.7.0-py3-none-any.whl.
File metadata
- Download URL: llm_webchat-2.7.0-py3-none-any.whl
- Upload date:
- Size: 123.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3048c20045abd74bdae546792e2ed70555207808de3f8e9352a8f331d92ef7ae
|
|
| MD5 |
1a642ccc563daf6f3583a626e84cb7c2
|
|
| BLAKE2b-256 |
f6f10a0f84bf1fa94e2685a8a01ad9c18a7f2fd061e39b223f7f593e1ebc7965
|