mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #18710] [CLOSED] Fix: add database session sharing for PgBouncer compatibility #47938
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/18710
Author: @rahutami
Created: 10/29/2025
Status: ❌ Closed
Base:
dev← Head:pgbouncer-ssl-issue📝 Commits (2)
02ebcd5fix get functions, knowledge, prompt, tool, and model to reuse db session when doing user transactionbe140b3add db param in get_users_by_user_ids📊 Changes
6 files changed (+11 additions, -7 deletions)
View changed files
📝
backend/open_webui/models/functions.py(+1 -1)📝
backend/open_webui/models/knowledge.py(+1 -1)📝
backend/open_webui/models/models.py(+1 -1)📝
backend/open_webui/models/prompts.py(+1 -1)📝
backend/open_webui/models/tools.py(+1 -1)📝
backend/open_webui/models/users.py(+6 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
Changed
/backend/open_webui/models/users.pyso that theget_users_by_user_idsaccept db session in params and use it if passedget_modelsin /backend/open_webui/models/models.py`get_knowledge_basesin/backend/open_webui/models/knowledge.pyget_promptsin/backend/open_webui/models/prompts.pyget_toolsin/backend/open_webui/models/tools.pyget_function_listin/backend/open_webui/models/functions.pyFixed
Additional Information
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.