mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
fix: 反向代理设置无效
This commit is contained in:
1
main.py
1
main.py
@@ -241,6 +241,7 @@ def start(first_time_init=False):
|
||||
|
||||
# 配置openai api_base
|
||||
if "reverse_proxy" in config.openai_config and config.openai_config["reverse_proxy"] is not None:
|
||||
logging.debug("设置反向代理: "+config.openai_config['reverse_proxy'])
|
||||
openai.base_url = config.openai_config["reverse_proxy"]
|
||||
|
||||
# 主启动流程
|
||||
|
||||
Reference in New Issue
Block a user