mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #10408] [MERGED] fix: respect proxy and timeout settings in audio-related aiohttp requests #22521
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/10408
Author: @hangxingliu
Created: 2/20/2025
Status: ✅ Merged
Merged: 2/20/2025
Merged by: @tjbck
Base:
dev← Head:liu/fix-proxy📝 Commits (1)
90d9cdafix: respect proxy and timeout settings in audio-related aiohttp requests📊 Changes
1 file changed (+7 additions, -3 deletions)
View changed files
📝
backend/open_webui/routers/audio.py(+7 -3)📄 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
Some of TTS outgoing requests from the server do not respect timeout/proxy env settings as described in the document
Fixed
Get and apply timeout settings before outgoing requests like what other outgoing requests do in this project. And add
trust_env=Trueparameter to ensureaiohttpuses proxy configs from the environment variables.Additional Information
I just realized this issue because the TTS feature doesn't work correctly in my strict network environment even though I have configured the relevant network proxy according to OpenWebUI official document.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.