[PR #22973] [CLOSED] fix(chats): remove errant db= kwarg from upsert_message call #42583

Closed
opened 2026-04-25 14:25:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: clawoss/fix/22959-db-arg


📝 Commits (1)

  • 4e1d0bb fix(chats): remove errant db= kwarg from upsert_message call

📊 Changes

1 file changed (+0 additions, -1 deletions)

View changed files

📝 backend/open_webui/routers/chats.py (+0 -1)

📄 Description

The update_chat_message_by_id endpoint was passing db=db to upsert_message_to_chat_by_id_and_message_id, which doesn't accept that parameter — causing a TypeError on the POST /api/v1/chats/{id}/messages/{messageId} endpoint.

Removed the spurious db=db argument. Fixes #22959.


🔄 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/22973 **Author:** [@BillionClaw](https://github.com/BillionClaw) **Created:** 3/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `clawoss/fix/22959-db-arg` --- ### 📝 Commits (1) - [`4e1d0bb`](https://github.com/open-webui/open-webui/commit/4e1d0bb1c059428a4e04f26f384615be150833fa) fix(chats): remove errant db= kwarg from upsert_message call ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/chats.py` (+0 -1) </details> ### 📄 Description The `update_chat_message_by_id` endpoint was passing `db=db` to `upsert_message_to_chat_by_id_and_message_id`, which doesn't accept that parameter — causing a TypeError on the `POST /api/v1/chats/{id}/messages/{messageId}` endpoint. Removed the spurious `db=db` argument. Fixes #22959. --- <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-25 14:25:55 -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#42583