fix: anthropic sdk删除proxies导致无法启动 (#962, #960)

This commit is contained in:
Junyan Qin
2024-12-23 21:35:16 +08:00
parent 6606c671b2
commit 535c4a8a11
3 changed files with 14 additions and 7 deletions

View File

@@ -143,9 +143,7 @@ class Application:
self.logger.warning("WebUI 文件缺失请根据文档获取https://docs.langbot.app/webui/intro.html")
return
import socket
host_ip = socket.gethostbyname(socket.gethostname())
host_ip = "127.0.0.1"
public_ip = await ip.get_myip()