mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #14676] [CLOSED] feat: reuse requests and aiohttp session objects #23547
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/14676
Author: @cambriancoder
Created: 6/4/2025
Status: ❌ Closed
Base:
dev← Head:feat/reuseable-http-sessions📝 Commits (1)
18cf3f9feat: reuse requests and aiohttp session objects to improve performance. Add new config to allow client certificates to be included in http requests📊 Changes
62 files changed (+275 additions, -200 deletions)
View changed files
📝
backend/open_webui/config.py(+45 -1)📝
backend/open_webui/main.py(+14 -13)📝
backend/open_webui/models/chats.py(+0 -1)📝
backend/open_webui/models/files.py(+0 -1)📝
backend/open_webui/retrieval/loaders/datalab_marker.py(+4 -3)📝
backend/open_webui/retrieval/loaders/external_document.py(+2 -2)📝
backend/open_webui/retrieval/loaders/external_web.py(+2 -2)📝
backend/open_webui/retrieval/loaders/main.py(+3 -3)📝
backend/open_webui/retrieval/loaders/mistral.py(+5 -4)📝
backend/open_webui/retrieval/loaders/tavily.py(+4 -2)📝
backend/open_webui/retrieval/models/colbert.py(+0 -2)📝
backend/open_webui/retrieval/models/external.py(+2 -2)📝
backend/open_webui/retrieval/utils.py(+4 -5)📝
backend/open_webui/retrieval/vector/dbs/elasticsearch.py(+0 -1)📝
backend/open_webui/retrieval/vector/dbs/pgvector.py(+0 -1)📝
backend/open_webui/retrieval/vector/dbs/qdrant.py(+14 -10)📝
backend/open_webui/retrieval/vector/factory.py(+0 -1)📝
backend/open_webui/retrieval/web/bing.py(+2 -2)📝
backend/open_webui/retrieval/web/bocha.py(+2 -2)📝
backend/open_webui/retrieval/web/brave.py(+2 -2)...and 42 more files
📄 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.Changelog Entry
Description
requestsandaiohttpHTTP clients, reducing connection overhead and improving request efficiency.Added
HTTP_CLIENT_*persistent config options for configuring global http client settings (such as timeout, CA file, etc.)Changed
requestsandaiohttpsession objects to improve performance.Additional Information
Linked to: https://github.com/open-webui/open-webui/discussions/14674
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.