修复前端修改 proxy 不生效问题!

This commit is contained in:
linyq 2024-09-09 14:53:11 +08:00
parent b127c39a72
commit 0669149378

View File

@ -184,7 +184,12 @@ with st.expander(tr("Basic Settings"), expanded=False):
config.ui['language'] = code
HTTP_PROXY = st.text_input(tr("HTTP_PROXY"), value=proxy_url_http)
HTTPs_PROXY = st.text_input(tr("HTTPs_PROXY"), value=proxy_url_https)
HTTPS_PROXY = st.text_input(tr("HTTPs_PROXY"), value=proxy_url_https)
if HTTP_PROXY:
config.proxy["http"] = HTTP_PROXY
if HTTPS_PROXY:
config.proxy["https"] = HTTPS_PROXY
with middle_config_panel:
# openai