From 66e2153720ac77e7077d088d6baadd37b5a9a92f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Mar 2026 12:33:16 +0800 Subject: [PATCH 1/3] fix: add pysocks dependency to support SOCKS5 proxy for pip install --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) 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", ] From 08aea7b72a5e79894f3cf529c8ff93ebbd00514d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Mar 2026 12:42:42 +0800 Subject: [PATCH 2/3] docs: update proxy description to include https:// support --- astrbot/core/config/default.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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": "直连地址列表", From 4a62c9fa366cb48c075cbe9935d83b8df9fe034c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Mar 2026 12:48:43 +0800 Subject: [PATCH 3/3] fix: add python-socks and pysocks to requirements.txt for consistency --- requirements.txt | 2 ++ 1 file changed, 2 insertions(+) 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