diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 846b1a350e..45412bdccb 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -4040,9 +4040,9 @@ class ChatProviderTemplate(TypedDict): "hint": "时区设置。请填写 IANA 时区名称, 如 Asia/Shanghai, 为空时使用系统默认时区。所有时区请查看: https://data.iana.org/time-zones/tzdb-2021a/zone1970.tab", }, "http_proxy": { - "description": "HTTP 代理", + "description": "代理", "type": "string", - "hint": "启用后,会以添加环境变量的方式设置代理。格式为 `http://ip:port`", + "hint": "启用后,会以添加环境变量的方式设置代理。支持 http://、https://、socks5:// 格式,例如:http://127.0.0.1:7890 或 socks5://127.0.0.1:7891", }, "no_proxy": { "description": "直连地址列表", diff --git a/pyproject.toml b/pyproject.toml index 9770410251..7bc43c1bb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,6 +66,7 @@ dependencies = [ "shipyard-python-sdk>=0.2.4", "shipyard-neo-sdk>=0.2.0", "python-socks>=2.8.0", + "pysocks>=1.7.1", "packaging>=24.2", ] diff --git a/requirements.txt b/requirements.txt index 838e4660ec..d092d885e9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -32,6 +32,7 @@ pydub>=0.25.1 pyjwt>=2.10.1 python-telegram-bot>=22.6 qq-botpy>=1.2.1 +python-socks>=2.8.0 quart>=0.20.0 readability-lxml>=0.8.4.1 silk-python>=0.2.6 @@ -45,6 +46,7 @@ wechatpy>=1.8.18 audioop-lts ; python_full_version >= '3.13' click>=8.2.1 pypdf>=6.1.1 +pysocks>=1.7.1 aiofiles>=25.1.0 rank-bm25>=0.2.2 jieba>=0.42.1