mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #21106] [MERGED] feat: analytics #48980
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
dev← Head:chat-message-rebased📝 Commits (10+)
599cd2efeat: analytics backend API with chat_message tablea4ad348feat: analytics frontend dashboard96f1063refac7bb3a82refac75e5a48refac3da4323refac679e56cfeat: token analyticsb2c2f1brefacc22bb4frefac767343drefac📊 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.