mirror of
https://github.com/linyqh/NarratoAI.git
synced 2025-12-12 11:22:51 +00:00
修复前端修改 proxy 不生效问题!
This commit is contained in:
parent
b127c39a72
commit
0669149378
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user