open-webui/backend/open_webui/models
Davixk 8da4e5bb19
fix(chats): fix chat search crash (#18576)
* fix(chats): handle null bytes in PostgreSQL search

Removes null bytes from message content before performing
case-insensitive search in PostgreSQL, preventing conversion
errors and ensuring reliable query results.

* fix(chats): prevent null byte errors in PostgreSQL queries

Ensures chat content and titles containing null bytes are excluded from PostgreSQL text queries to avoid conversion errors.

Improves reliability of search and filtering by handling problematic characters in JSON fields.
2025-11-06 12:41:21 -05:00
..
auths.py refac: account details 2025-08-21 02:39:25 +04:00
channels.py enh: channel read/write perm 2025-09-24 10:09:59 -05:00
chats.py fix(chats): fix chat search crash (#18576) 2025-11-06 12:41:21 -05:00
feedbacks.py refactor: replace print statements with logging for better error tracking 2025-02-25 15:53:55 +01:00
files.py Extend FileMetadataResponse to have hash field 2025-10-13 12:38:10 +03:00
folders.py refac/enh: folder optimization 2025-09-26 20:48:17 -05:00
functions.py refac: functions 2025-10-07 14:20:07 -05:00
groups.py refac 2025-08-26 22:05:27 +04:00
knowledge.py enh/sec: verify folder data integrity 2025-09-07 01:04:56 +04:00
memories.py refac: memory handling 2025-07-20 15:00:24 +04:00
messages.py refac 2025-09-27 04:38:54 -05:00
models.py Merge pull request #17166 from sihyeonn/perf/sh-model-layer 2025-09-03 13:36:01 +04:00
notes.py refac 2025-09-25 13:53:56 -05:00
oauth_sessions.py Added a targeted utility to wipe all OAuth sessions for a provider so the cleanup can remove stale access tokens across every user when a connection is updated 2025-10-18 14:00:46 -04:00
prompts.py Merge pull request #17166 from sihyeonn/perf/sh-model-layer 2025-09-03 13:36:01 +04:00
tags.py refac/enh: add performance indexes 2025-08-19 03:24:10 +04:00
tools.py refac: tools valves 2025-09-24 21:12:25 -05:00
users.py fix: send notification 2025-09-16 22:53:54 -05:00