open-webui/backend/open_webui
Classic298 95dd3321af
fix: images stored inside a chat trigger needless context compaction (#31915)
Images stored inside the chat record itself (chats from older versions, images that could not be saved as files, temporary chats) had their encoded data counted as text when estimating how full the context is, so a single 3 MB image counted as about a million tokens. That pushed the chat over the compaction threshold, summarizing older messages while the chat was well under the limit, and made the context usage indicator jump. The encoded image data is now left out of the token estimate, both for compaction and for the indicator.

Fixes #31913
2026-10-05 06:41:50 +04:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal fix: non-English text is missed by searches and counted six times against size limits (#31615) 2026-09-30 19:19:29 +04:00
migrations chore: format 2026-08-25 16:53:53 -04:00
models fix: shared chats can't open new files attached together with a file already in the chat (#31650) 2026-09-30 21:03:32 +04:00
retrieval fix: send the query embedding as a vector in external pgvector retrieval (#31112) 2026-10-01 07:51:32 +04:00
routers refac 2026-10-01 08:38:21 +04:00
socket fix: large pastes into a note are lost after a reload (#31893) 2026-10-03 17:05:00 +04:00
static refac 2026-09-06 17:27:30 -04:00
storage fix: read S3 files with long non-ASCII names (#30418) 2026-09-23 23:30:55 -04:00
tools refac: calendar event tools use the calendar's access check (#31537) 2026-09-30 19:29:19 +04:00
utils fix: images stored inside a chat trigger needless context compaction (#31915) 2026-10-05 06:41:50 +04:00
__init__.py refactor: use secrets module for generated secret key (#30441) 2026-09-23 23:36:26 -04:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py feat: add a Tavily search depth setting (#31308) 2026-09-27 23:15:09 +04:00
constants.py fix: SSO login failures show the email/password error (#31629) 2026-09-30 19:07:49 +04:00
env.py refac 2026-10-01 03:31:20 +04:00
events.py refac 2026-10-01 03:31:20 +04:00
functions.py refac 2026-10-01 03:31:20 +04:00
main.py refac 2026-10-01 08:38:21 +04:00
tasks.py refac 2026-09-21 08:59:39 -04:00