Commit graph

1262 commits

Author SHA1 Message Date
Timothy Jaeryang Baek
6d736d3c59 refac 2026-03-26 19:01:33 -05:00
Timothy Jaeryang Baek
4567cdc0d9 refac 2026-03-26 18:17:49 -05:00
Timothy Jaeryang Baek
a641325707 refac 2026-03-26 18:13:18 -05:00
Timothy Jaeryang Baek
350d52f515 chore: format 2026-03-25 16:43:06 -05:00
Jacob Leksan
05252e19b5
refactor: streamline logging and permission checks in auths.py (#22960) 2026-03-25 16:34:45 -05:00
Timothy Jaeryang Baek
cdc2b3bf85 refac 2026-03-24 21:00:43 -05:00
Timothy Jaeryang Baek
90ca2e9b0f refac 2026-03-24 20:48:10 -05:00
Timothy Jaeryang Baek
76ece4049e refac 2026-03-24 20:32:23 -05:00
Timothy Jaeryang Baek
968462609f refac 2026-03-24 18:05:19 -05:00
Timothy Jaeryang Baek
601bb78358 feat: oauth 2.1 static mcp
Co-Authored-By: Joost Mul <6438009+donmul@users.noreply.github.com>
2026-03-24 17:58:21 -05:00
Tim Baek
c24a4da17d refac 2026-03-24 14:54:29 -05:00
Tim Baek
f949d17db1 refac 2026-03-24 14:37:03 -05:00
Timothy Jaeryang Baek
f7e07f3ca1 chore: format 2026-03-24 06:07:20 -05:00
Timothy Jaeryang Baek
bd8aa3b6a0 fix: new password validation 2026-03-24 05:00:54 -05:00
Timothy Jaeryang Baek
70285fb6ca refac 2026-03-24 04:53:23 -05:00
Timothy Jaeryang Baek
ade617efa8 refac 2026-03-24 04:49:48 -05:00
Timothy Jaeryang Baek
6890618221 refac 2026-03-23 21:14:22 -05:00
Timothy Jaeryang Baek
108a019cb8 refac 2026-03-23 19:58:32 -05:00
Timothy Jaeryang Baek
945275faae refac 2026-03-22 06:58:58 -05:00
Timothy Jaeryang Baek
2e165926de refac 2026-03-22 06:40:39 -05:00
Timothy Jaeryang Baek
dfc2dc2c0b refac 2026-03-22 06:29:31 -05:00
Timothy Jaeryang Baek
ee9099cab9 refac 2026-03-22 06:00:41 -05:00
Timothy Jaeryang Baek
93415a48e8 refac 2026-03-21 20:46:25 -05:00
Timothy Jaeryang Baek
adcbba34f8 refac 2026-03-21 20:03:02 -05:00
Timothy Jaeryang Baek
218bd7a402 refac 2026-03-21 19:53:45 -05:00
Timothy Jaeryang Baek
464462b22e enh: WEBUI_AUTH_TRUSTED_ROLE_HEADER 2026-03-21 19:50:50 -05:00
Timothy Jaeryang Baek
a1aceb5f87 refac 2026-03-21 19:42:48 -05:00
Timothy Jaeryang Baek
bb3526f4e4 refac 2026-03-21 17:59:44 -05:00
Timothy Jaeryang Baek
9a2c60d595 refac 2026-03-21 17:12:33 -05:00
Timothy Jaeryang Baek
f23296b22d refac 2026-03-20 16:30:41 -05:00
Timothy Jaeryang Baek
de3317e26b refac 2026-03-17 17:58:01 -05:00
Timothy Jaeryang Baek
b171b0216b refac 2026-03-17 17:54:59 -05:00
Timothy Jaeryang Baek
c0385f60ba refac 2026-03-17 16:52:14 -05:00
Ethan T.
a229f9ea42
fix: replace bare except with except Exception (#22473)
Replace bare except clauses with except Exception to follow Python best practices and avoid catching unexpected system exceptions like KeyboardInterrupt and SystemExit.
2026-03-15 17:48:23 -05:00
Timothy Jaeryang Baek
f9756de693 refac 2026-03-15 17:35:06 -05:00
Timothy Jaeryang Baek
bc5b3ec6b8 refac 2026-03-15 17:21:14 -05:00
Timothy Jaeryang Baek
566e25569e refac 2026-03-15 16:58:01 -05:00
Timothy Jaeryang Baek
f9d38a073f refac 2026-03-15 16:51:51 -05:00
Timothy Jaeryang Baek
d85b52bfc2 refac 2026-03-12 20:37:41 -05:00
Timothy Jaeryang Baek
8da29566a1 refac: safer tool server handling 2026-03-11 15:22:51 -05:00
Timothy Jaeryang Baek
97cc94756e chore: bump 2026-03-08 19:00:50 -05:00
Timothy Jaeryang Baek
c3e1d2d894 refac 2026-03-08 18:40:47 -05:00
Timothy Jaeryang Baek
0bfacca0a0 refac 2026-03-08 18:30:16 -05:00
Timothy Jaeryang Baek
352391fa76 chore: format 2026-03-08 18:14:09 -05:00
Timothy Jaeryang Baek
3f350f8659 refac 2026-03-08 17:52:49 -05:00
Classic298
caf3362be8
fix: add missing group_id filter to analytics token usage query (#22167)
The get_token_usage_by_user query lacked group_id filtering, while the
companion get_message_count_by_user query already supported it. When an
admin filtered analytics by user group, message counts were correctly
scoped to the group but token usage totals included data from all users.

Add the group_id parameter and subquery filter to get_token_usage_by_user,
matching the pattern used by get_message_count_by_user and other analytics
queries, and pass group_id through from the analytics endpoint.
2026-03-08 17:11:12 -05:00
Alvin Tang
7aa7bbc390
fix: correct Azure TTS locale extraction for SSML xml:lang (#22443)
The locale for Azure TTS SSML was being extracted with `split("-")[:1]`,
which only takes the first segment (e.g., "en" from "en-US"). The
xml:lang attribute in SSML requires a full locale like "en-US", not just
a language code. This caused Azure TTS to either fail or use incorrect
pronunciation rules.

Changed `[:1]` to `[:2]` to properly extract the locale (e.g., "en-US").

Co-authored-by: gambletan <ethanchang32@gmail.com>
2026-03-08 16:50:25 -05:00
Alvin Tang
f78b238b40
fix: prevent pipeline filter from corrupting payload on HTTP error (#22445)
In both inlet and outlet filter processing, response.json() was called
BEFORE response.raise_for_status(). When a filter endpoint returns an
HTTP error, the user's chat payload gets silently overwritten with the
error response body. If the error is not caught, the corrupted payload
propagates through subsequent filters and into the chat completion.

Swapped the order so raise_for_status() runs first — payload is only
updated on success.

Co-authored-by: gambletan <ethanchang32@gmail.com>
2026-03-08 16:44:35 -05:00
Timothy Jaeryang Baek
67e26fd3af refac 2026-03-08 16:40:20 -05:00
Alvin Tang
2c35bdbcf5
fix: replace bare string raises with proper exception types (#22446)
`raise "string"` in Python raises TypeError instead of the intended
error, making error messages confusing and debugging difficult.

Co-authored-by: gambletan <ethanchang32@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 16:39:09 -05:00