[PR #22969] [CLOSED] fix(chat): remove unexpected 'db' kwarg from upsert_message function #26951

Closed
opened 2026-04-20 06:47:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22969
Author: @BillionClaw
Created: 3/24/2026
Status: Closed

Base: mainHead: fix/remove-db-kwarg-from-upsert-message


📝 Commits (1)

  • b8ee040 fix(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_id function in backend/open_webui/models/chats.py does not accept a db parameter, but a call site in backend/open_webui/routers/chats.py was passing db=db. This caused a TypeError: upsert_message_to_chat_by_id_and_message_id() got an unexpected keyword argument 'db'.

Fix: Removed the extraneous db=db argument from the call site in routers/chats.py.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/22969 **Author:** [@BillionClaw](https://github.com/BillionClaw) **Created:** 3/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/remove-db-kwarg-from-upsert-message` --- ### 📝 Commits (1) - [`b8ee040`](https://github.com/open-webui/open-webui/commit/b8ee040a8d20e1c77541ec5d510eb51e1fae7734) fix(chat): remove unexpected 'db' kwarg from upsert_message function ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/chats.py` (+0 -1) </details> ### 📄 Description Fixes #22959. The `upsert_message_to_chat_by_id_and_message_id` function in `backend/open_webui/models/chats.py` does not accept a `db` parameter, but a call site in `backend/open_webui/routers/chats.py` was passing `db=db`. This caused a `TypeError: upsert_message_to_chat_by_id_and_message_id() got an unexpected keyword argument 'db'`. **Fix:** Removed the extraneous `db=db` argument from the call site in `routers/chats.py`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 06:47:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#26951