HuggingChat (chat-ui)
HuggingChat (chat-ui) 是 osFoundry 社区目录中的应用。Hugging Face 的开源聊天 UI——与 huggingface.co/chat 同源代码。支持多会话历史、模型选择、网页搜索工具、图像生成工具(通过 Stable Diffusion 端点)以及可配置的系统提示词。chat-ui-db 变体内置 SQLite,无需外部 MongoDB。兼容任意 OpenAI / TGI / Anthropic / Cohere / Mistral / Hugging Face Inference 端点。是 Hugging Face 出品的最简洁的开源聊天 UI。
详情
- 工作区: osfoundry
- 分类: AI
- 价格: Free
- 访问权限: Community
功能
- Same UI as huggingface.co/chat — multi-conversation history, model picker, system prompts
- SQLite bundled (chat-ui-db variant) — no external MongoDB to provision
- Works with HuggingFace TGI / OpenAI / Anthropic / Cohere / Google Vertex / AWS Bedrock
- Web search tool (via SerpAPI / Serper / You.com keys) for current-info queries
- Image generation tool — plug in any Stable Diffusion endpoint
- OIDC multi-user mode — connect Auth0 / Keycloak / GitHub / Google for per-user accounts
文档
文档由上游项目以英文维护。
# HuggingChat (chat-ui)
## What's in the image
This is the `chat-ui-db` variant — same UI as huggingface.co/chat, but with SQLite bundled instead of requiring external MongoDB. Perfect for self-hosting without infrastructure.
## Default models
Out of the box, the UI ships with a few default HuggingFace Inference endpoints (free tier, rate-limited). Set `HF_TOKEN` to use your account quota.
## Custom models (MODELS env)
Set `MODELS` to a JSON array like:
```json
[{
"name": "meta-llama/Llama-3.1-8B-Instruct",
"endpoints": [{
"type": "tgi",
"url": "https://my-tgi.example.com"
}]
}]
```
Supported endpoint types: `tgi` (HuggingFace Text Generation Inference), `openai`, `anthropic`, `cohere`, `vertex` (Google), `aws`. See [chat-ui docs](https://github.com/huggingface/chat-ui#configuration).
## Web search
Set `SERPAPI_KEY` (or `SERPER_API_KEY` / `YDC_API_KEY` for You.com) and the UI grows a 'Search' tool — model can browse the web for current info.
## Multi-user
With `OPENID_CONFIG` (point at a OIDC provider) you get accounts + per-user history. Without it, history is anonymous-per-browser-cookie.
## Storage
SQLite at `/data/db.sqlite`. Conversations + user data persist across container restarts. 5 GB volume is enough for years of chat.
如何在 osFoundry 中使用 HuggingChat (chat-ui)
一键将 HuggingChat (chat-ui) 安装到您的工作区,然后在 osStudio 中将其分支,针对您的技术栈自定义提示词、工具或配置。工作区中的任何人都可以接续您的工作继续推进。
社区中的其他应用
- 客户关系管理 — 客户关系管理工具,支持联系人、交易和销售管道跟踪。
- Kanban Board — Trello 风格的看板与项目板,含卡片、面板、日历与表格视图以及每面板属性。基于 Focalboard(独立个人服务器)构建。在持久卷上内嵌 SQLite。
- 服务台 — 工单分流与客户支持收件箱,附带 SLA 跟踪。
- Page Builder — 可视化拖放页面生成器,支持区块、主题、SEO 与发布
- Website Builder — 带 CMS 合集、全局导航、页脚、主题与发布的多页面网站生成器
- 店面 — 电商店面,包含商品目录、购物车和结账流程。