[PR #21106] [MERGED] feat: analytics #48980

Closed
opened 2026-04-30 01:15:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/21106
Author: @tjbck
Created: 2/2/2026
Status: Merged
Merged: 2/2/2026
Merged by: @tjbck

Base: devHead: chat-message-rebased


📝 Commits (10+)

📊 Changes

17 files changed (+2094 additions, -27 deletions)

View changed files

📝 backend/open_webui/main.py (+4 -0)
backend/open_webui/migrations/versions/8452d01d26d7_add_chat_message_table.py (+173 -0)
backend/open_webui/models/chat_messages.py (+545 -0)
📝 backend/open_webui/models/chats.py (+46 -0)
backend/open_webui/routers/analytics.py (+247 -0)
📝 backend/open_webui/utils/middleware.py (+15 -4)
📝 backend/open_webui/utils/response.py (+54 -10)
src/lib/apis/analytics/index.ts (+231 -0)
src/lib/components/admin/Analytics.svelte (+24 -0)
src/lib/components/admin/Analytics/ChartLine.svelte (+129 -0)
src/lib/components/admin/Analytics/Dashboard.svelte (+346 -0)
src/lib/components/admin/Analytics/ModelUsage.svelte (+141 -0)
src/lib/components/admin/Analytics/UserUsage.svelte (+129 -0)
📝 src/lib/utils/index.ts (+4 -0)
📝 src/routes/(app)/admin/+layout.svelte (+2 -2)
📝 src/routes/(app)/admin/analytics/+page.svelte (+2 -9)
📝 src/routes/(app)/admin/analytics/[tab]/+page.svelte (+2 -2)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/21106 **Author:** [@tjbck](https://github.com/tjbck) **Created:** 2/2/2026 **Status:** ✅ Merged **Merged:** 2/2/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `chat-message-rebased` --- ### 📝 Commits (10+) - [`599cd2e`](https://github.com/open-webui/open-webui/commit/599cd2eeeb898b9b313abf137f860d1abb62c836) feat: analytics backend API with chat_message table - [`a4ad348`](https://github.com/open-webui/open-webui/commit/a4ad34841bd9996eeed33a4d5987819099fb30ab) feat: analytics frontend dashboard - [`96f1063`](https://github.com/open-webui/open-webui/commit/96f106319e20e51bf20413e80d2c1243784c2aa7) refac - [`7bb3a82`](https://github.com/open-webui/open-webui/commit/7bb3a827bb94e3fac62f83286e2bce6d070834e6) refac - [`75e5a48`](https://github.com/open-webui/open-webui/commit/75e5a485d200ebfaa6efe5fd6559a999c89c4f93) refac - [`3da4323`](https://github.com/open-webui/open-webui/commit/3da4323ef38c4f0e214959531c16f9b79c3f2b0d) refac - [`679e56c`](https://github.com/open-webui/open-webui/commit/679e56c494e80c69048c4e2053b3b4f5b90b5ce1) feat: token analytics - [`b2c2f1b`](https://github.com/open-webui/open-webui/commit/b2c2f1bd491da5197151035e20f43d7189deaad5) refac - [`c22bb4f`](https://github.com/open-webui/open-webui/commit/c22bb4f85398fa860983b307d6ac54e0f2f51ad3) refac - [`767343d`](https://github.com/open-webui/open-webui/commit/767343dc5bc98374610cf7e55615275510e44af1) refac ### 📊 Changes **17 files changed** (+2094 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/main.py` (+4 -0) ➕ `backend/open_webui/migrations/versions/8452d01d26d7_add_chat_message_table.py` (+173 -0) ➕ `backend/open_webui/models/chat_messages.py` (+545 -0) 📝 `backend/open_webui/models/chats.py` (+46 -0) ➕ `backend/open_webui/routers/analytics.py` (+247 -0) 📝 `backend/open_webui/utils/middleware.py` (+15 -4) 📝 `backend/open_webui/utils/response.py` (+54 -10) ➕ `src/lib/apis/analytics/index.ts` (+231 -0) ➕ `src/lib/components/admin/Analytics.svelte` (+24 -0) ➕ `src/lib/components/admin/Analytics/ChartLine.svelte` (+129 -0) ➕ `src/lib/components/admin/Analytics/Dashboard.svelte` (+346 -0) ➕ `src/lib/components/admin/Analytics/ModelUsage.svelte` (+141 -0) ➕ `src/lib/components/admin/Analytics/UserUsage.svelte` (+129 -0) 📝 `src/lib/utils/index.ts` (+4 -0) 📝 `src/routes/(app)/admin/+layout.svelte` (+2 -2) 📝 `src/routes/(app)/admin/analytics/+page.svelte` (+2 -9) 📝 `src/routes/(app)/admin/analytics/[tab]/+page.svelte` (+2 -2) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-30 01:15:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#48980