open-webui/backend
Classic298 f97dc95bc7 refactor: simplify usage extraction helper and condense comments
Treat 0 as unreported directly inside _usage_int instead of appending "or None" at every call site, which carried that rule redundantly. The only kept zero is the one derived from the cache subtraction, which does not pass through the helper, so behavior is unchanged. Also condense the multi-line comments and the helper docstring so the code carries the mechanism and the comments only carry the why.
2026-07-24 09:29:08 +02:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
open_webui refactor: simplify usage extraction helper and condense comments 2026-07-24 09:29:08 +02:00
.dockerignore fix: litellm config issue 2024-02-24 22:35:11 -08:00
.gitignore refac 2024-09-06 04:59:20 +02:00
dev.sh refac 2026-03-24 19:43:30 -05:00
requirements-min.txt perf: 40% LESS CPU usage: cut per-instance CPU cost of shared socket.io Redis pub/sub channel (#27282) 2026-07-23 12:11:38 -04:00
requirements.txt perf: 40% LESS CPU usage: cut per-instance CPU cost of shared socket.io Redis pub/sub channel (#27282) 2026-07-23 12:11:38 -04:00
start.sh refac 2026-06-17 03:01:11 +02:00
start_windows.bat refac 2026-06-17 03:01:11 +02:00