mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
[PR #2799] [MERGED] Enable use of http_proxy environment variable in openai and ollama calls #7901
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/2799
Author: @mindspawn
Created: 6/4/2024
Status: ✅ Merged
Merged: 6/4/2024
Merged by: @tjbck
Base:
dev← Head:proxy-fix📝 Commits (8)
c6c5c0dMerge pull request #2787 from open-webui/deve0772c6Merge pull request #2788 from open-webui/devde162a1Merge pull request #2789 from open-webui/dev0ac04c9Merge pull request #2791 from open-webui/dev8a94d8aMerge pull request #2794 from open-webui/dev11bb1a6Merge pull request #2795 from open-webui/dev94ebf02Enable http_proxy use for openai calls.74ed74fEnable http_proxy use for ollama calls.📊 Changes
2 files changed (+5 additions, -5 deletions)
View changed files
📝
backend/apps/ollama/main.py(+3 -3)📝
backend/apps/openai/main.py(+2 -2)📄 Description
Changelog Entry
Description
ClientSession method in aiohttp module requires trust_env=True to use http_proxy from the environment. Without this, open-webui breaks in a proxy only environment.
Related Documentation: https://docs.aiohttp.org/en/stable/client_reference.html
Added
Changed
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.