mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #22976] [CLOSED] fix(chats): remove errant db= kwarg from upsert_message call #26956
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/22976
Author: @BillionClaw
Created: 3/24/2026
Status: ❌ Closed
Base:
main← Head:clawoss/fix/22959-remove-db-arg📝 Commits (2)
08deec8fix(code-interpreter): inject Pyodide prompt into system message not user turn4c0977afix(chats): remove errant db= argument from upsert_message call📊 Changes
2 files changed (+4 additions, -3 deletions)
View changed files
📝
backend/open_webui/routers/chats.py(+0 -1)📝
backend/open_webui/utils/middleware.py(+4 -2)📄 Description
The function does not accept a
dbparameter, but the call was passingdb=dbas a 4th argument, causing a TypeError.Removed the errant
db=dbargument from the call site in routers/chats.py. The function operates on in-memory chat objects and writes to the chat_message table internally — no external db session needed at the call site.Fixes #22959
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.