Skip to content

Commit deedf85

Browse files
Neko-Yukariroot
andauthored
fix: add pysocks dependency to support SOCKS5 proxy for pip install (#7221)
* fix: add pysocks dependency to support SOCKS5 proxy for pip install * docs: update proxy description to include https:// support * fix: add python-socks and pysocks to requirements.txt for consistency --------- Co-authored-by: root <root@localhost.localdomain>
1 parent 4d9dce1 commit deedf85

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

astrbot/core/config/default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4040,9 +4040,9 @@ class ChatProviderTemplate(TypedDict):
40404040
"hint": "时区设置。请填写 IANA 时区名称, 如 Asia/Shanghai, 为空时使用系统默认时区。所有时区请查看: https://data.iana.org/time-zones/tzdb-2021a/zone1970.tab",
40414041
},
40424042
"http_proxy": {
4043-
"description": "HTTP 代理",
4043+
"description": "代理",
40444044
"type": "string",
4045-
"hint": "启用后,会以添加环境变量的方式设置代理。格式为 `http://ip:port`",
4045+
"hint": "启用后,会以添加环境变量的方式设置代理。支持 http://、https://、socks5:// 格式,例如:http://127.0.0.1:7890 或 socks5://127.0.0.1:7891",
40464046
},
40474047
"no_proxy": {
40484048
"description": "直连地址列表",

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ dependencies = [
6666
"shipyard-python-sdk>=0.2.4",
6767
"shipyard-neo-sdk>=0.2.0",
6868
"python-socks>=2.8.0",
69+
"pysocks>=1.7.1",
6970
"packaging>=24.2",
7071
]
7172

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pydub>=0.25.1
3232
pyjwt>=2.10.1
3333
python-telegram-bot>=22.6
3434
qq-botpy>=1.2.1
35+
python-socks>=2.8.0
3536
quart>=0.20.0
3637
readability-lxml>=0.8.4.1
3738
silk-python>=0.2.6
@@ -45,6 +46,7 @@ wechatpy>=1.8.18
4546
audioop-lts ; python_full_version >= '3.13'
4647
click>=8.2.1
4748
pypdf>=6.1.1
49+
pysocks>=1.7.1
4850
aiofiles>=25.1.0
4951
rank-bm25>=0.2.2
5052
jieba>=0.42.1

0 commit comments

Comments
 (0)