🐛 fix: add no_proxy env vars to support localhost requests, fix 502 error when use ollama #504

This commit is contained in:
Soulter
2025-02-14 16:51:02 +08:00
parent f1a448708c
commit 9e67883fbd
+2 -1
View File
@@ -27,7 +27,8 @@ class AstrBotCoreLifecycle:
os.environ['https_proxy'] = self.astrbot_config['http_proxy']
os.environ['http_proxy'] = self.astrbot_config['http_proxy']
os.environ['no_proxy'] = 'localhost,127.0.0.1'
async def initialize(self):
logger.info("AstrBot v"+ VERSION)
if os.environ.get("TESTING", ""):