mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #22969] [CLOSED] fix(chat): remove unexpected 'db' kwarg from upsert_message function #26951
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22969
Author: @BillionClaw
Created: 3/24/2026
Status: ❌ Closed
Base:
main← Head:fix/remove-db-kwarg-from-upsert-message📝 Commits (1)
b8ee040fix(chat): remove unexpected 'db' kwarg from upsert_message function📊 Changes
1 file changed (+0 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/chats.py(+0 -1)📄 Description
Fixes #22959. The
upsert_message_to_chat_by_id_and_message_idfunction inbackend/open_webui/models/chats.pydoes not accept adbparameter, but a call site inbackend/open_webui/routers/chats.pywas passingdb=db. This caused aTypeError: upsert_message_to_chat_by_id_and_message_id() got an unexpected keyword argument 'db'.Fix: Removed the extraneous
db=dbargument from the call site inrouters/chats.py.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.