From 615807ad0b382505b4e3875fb6bc2ec4807b56f6 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Sat, 1 Aug 2026 02:09:41 +0200 Subject: [PATCH] chore: remove unused json import in models/chats.py (#27796) `backend/open_webui/models/chats.py` imports `json`, but the module contains no `json.` references. The only remaining matches in the file are SQL function names such as `json_each` and `json_typeof` inside `text()` strings, which are unrelated to the import. Noticed while profiling the chat read/write path: the import made it look as though the module serialized locally, when all of that happens in `utils/misc.py:sanitize_data_for_db`. One-line deletion, no behaviour change.