Tim Baek
c24a4da17d
refac
2026-03-24 14:54:29 -05:00
Timothy Jaeryang Baek
ade617efa8
refac
2026-03-24 04:49:48 -05:00
Timothy Jaeryang Baek
945275faae
refac
2026-03-22 06:58:58 -05:00
Timothy Jaeryang Baek
de3317e26b
refac
2026-03-17 17:58:01 -05:00
Timothy Jaeryang Baek
2cacc2e649
chore: format
2026-03-01 13:34:09 -06:00
Timothy Jaeryang Baek
c9a78e5476
refac
2026-03-01 13:30:36 -06:00
Timothy Jaeryang Baek
b36f8d9314
chore: format
2026-02-13 15:00:47 -06:00
Timothy Jaeryang Baek
ca6b18ab5c
refac: is_user_active
2026-02-13 13:40:59 -06:00
Timothy Jaeryang Baek
8919d8a82a
refac
2026-02-12 15:52:50 -06:00
Classic298
ea4ef28da5
init ( #20883 )
...
Co-authored-by: Tim Baek <tim@openwebui.com>
2026-02-12 15:50:13 -06:00
Timothy Jaeryang Baek
f376d4f378
chore: format
2026-02-11 16:24:11 -06:00
Timothy Jaeryang Baek
f7406ff576
refac
2026-02-09 13:28:14 -06:00
G30
cac5dd12e9
fix: handle null data in model_response_handler ( #21112 )
...
Fix `AttributeError` in `model_response_handler` when processing channel messages with `null` data field. The function iterates over thread messages to build conversation history, but some messages may have `data=None` causing a crash when accessing `thread_message.data.get()`. Added null check using `(thread_message.data or {}).get("files", [])` to safely handle messages without data.
2026-02-05 15:15:34 -05:00
Timothy Jaeryang Baek
3bec320bb9
refac
2026-01-23 01:23:34 +04:00
Timothy Jaeryang Baek
14e51e0977
refac
2026-01-23 01:02:41 +04:00
Timothy Jaeryang Baek
7da37b4f66
refac
2026-01-12 21:41:23 +04:00
Classic298
41d1ccd39c
Update channels.py ( #20546 )
2026-01-10 15:34:12 +04:00
Timothy Jaeryang Baek
b377e5ff4c
chore: format
2026-01-09 02:46:04 +04:00
Timothy Jaeryang Baek
cd296fcf0d
feat: channel webhooks
2026-01-09 02:30:15 +04:00
Timothy Jaeryang Baek
700349064d
chore: format
2026-01-08 01:55:56 +04:00
Classic298
48f1b2d547
fix(channels): eliminate N+1 query in get_pinned_messages endpoint ( #20459 )
...
Replaced per-message user lookup with batch fetch using SQL IN clause.
Changes:
- Fetch all message user_ids in a single pass
- Use Users.get_users_by_user_ids() for batch lookup
- Build user mapping to avoid DB calls in loop
- Add early return for empty message lists
Performance: Reduces N+1 queries to 2 queries (messages + users)
2026-01-07 23:36:38 +04:00
Classic298
b8fb9e815b
fix(channels): eliminate N+1 query in get_channel_messages endpoint ( #20458 )
...
Replaced per-message user lookup with batch fetch using SQL IN clause.
Changes:
- Fetch all message user_ids in a single pass
- Use Users.get_users_by_user_ids() for batch lookup
- Build user mapping to avoid DB calls in loop
- Add early return for empty message lists
Performance: Reduces N+1 queries to 2 queries (messages + users)
2026-01-07 23:36:12 +04:00
Classic298
74974334a5
fix: More n+1 channel perf fixes ( #20460 )
2026-01-07 23:34:19 +04:00
Timothy Jaeryang Baek
5649a668fa
refac
2025-12-29 01:42:13 +04:00
Timothy Jaeryang Baek
2453b75ff0
refac
2025-12-29 01:31:27 +04:00
Timothy Jaeryang Baek
5d1459df16
refac
2025-12-29 01:20:04 +04:00
Timothy Jaeryang Baek
5995771583
fix: channel model mention
2025-12-23 10:42:33 +04:00
Classic298
823b9a6dd9
chore/perf: Remove old SRC level log env vars with no impact ( #20045 )
...
* Update openai.py
* Update env.py
* Merge pull request open-webui#19030 from open-webui/dev (#119 )
Co-authored-by: Tim Baek <tim@openwebui.com>
Co-authored-by: Claude <noreply@anthropic.com>
---------
Co-authored-by: Tim Baek <tim@openwebui.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-12-20 08:16:14 -05:00
G30
d65116282c
fix: enforce global ENABLE_CHANNELS check on all channel endpoints ( #19957 )
...
* fix: enforce global ENABLE_CHANNELS check on all channel endpoints
When channels are disabled globally (ENABLE_CHANNELS=false), users with
channel permissions could still fetch channels via API endpoints. This
fix adds a get_enabled_channels dependency to all 22 channel endpoints
that returns 403 Forbidden when channels are globally disabled.
Fixes #19914
* refac
* refac
2025-12-20 08:15:29 -05:00
Timothy Jaeryang Baek
79cfe29bb2
refac: channel_file and knowledge table migration
2025-12-10 16:41:22 -05:00
Timothy Jaeryang Baek
6fe737bf8f
refac
2025-12-03 19:31:23 -05:00
Timothy Jaeryang Baek
54b7ec56d6
enh/refac: channels message lazy load data
2025-12-03 17:52:44 -05:00
Timothy Jaeryang Baek
c62609faba
refac
2025-11-30 14:51:44 -05:00
Timothy Jaeryang Baek
d499c3aed8
refac
2025-11-30 14:17:54 -05:00
Timothy Jaeryang Baek
a0826ec9fe
feat/enh: dm from user profile preview
2025-11-30 11:04:06 -05:00
Timothy Jaeryang Baek
39645102d1
refac
2025-11-30 10:40:24 -05:00
Timothy Jaeryang Baek
3f1d9ccbf8
feat/enh: add/remove users from group channel
2025-11-30 10:33:50 -05:00
Timothy Jaeryang Baek
f589b7c189
feat/enh: group channel
2025-11-30 08:24:27 -05:00
Timothy Jaeryang Baek
25994dd3da
refac/enh: channel message
2025-11-28 10:45:48 -05:00
Timothy Jaeryang Baek
aae2fce173
feat/enh: pinned messages in channels
2025-11-28 09:58:44 -05:00
Timothy Jaeryang Baek
70948f8803
enh/refac: deprecate USER_POOL
2025-11-28 07:39:02 -05:00
Timothy Jaeryang Baek
4b6773885c
enh: dm active user indicator
2025-11-28 04:24:25 -05:00
Timothy Jaeryang Baek
d5d0e72590
refac
2025-11-27 07:39:00 -05:00
Timothy Jaeryang Baek
acccb9afdd
feat: dm channels
2025-11-27 07:27:32 -05:00
Timothy Jaeryang Baek
64b4d5d9c2
feat/enh: channels unread messages count
2025-11-27 04:31:04 -05:00
Timothy Jaeryang Baek
84ca2258be
refac
2025-11-25 04:45:52 -05:00
Timothy Jaeryang Baek
c0e1203538
feat: user list in channels
2025-11-25 04:38:07 -05:00
Timothy Jaeryang Baek
3b5710d0cd
feat/enh: show user count in channels
2025-11-25 03:46:30 -05:00
Timothy Jaeryang Baek
dec3748509
refac
2025-10-06 11:58:15 -05:00
Timothy Jaeryang Baek
3f71fa641f
refac
2025-10-06 02:45:02 -05:00