aient 1.0.65__py3-none-any.whl → 1.0.66__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aient/core/utils.py +4 -8
- {aient-1.0.65.dist-info → aient-1.0.66.dist-info}/METADATA +2 -1
- {aient-1.0.65.dist-info → aient-1.0.66.dist-info}/RECORD +6 -6
- {aient-1.0.65.dist-info → aient-1.0.66.dist-info}/WHEEL +0 -0
- {aient-1.0.65.dist-info → aient-1.0.66.dist-info}/licenses/LICENSE +0 -0
- {aient-1.0.65.dist-info → aient-1.0.66.dist-info}/top_level.txt +0 -0
aient/core/utils.py
CHANGED
@@ -132,14 +132,10 @@ def get_proxy(proxy, client_config = {}):
|
|
132
132
|
scheme = parsed.scheme.rstrip('h')
|
133
133
|
|
134
134
|
if scheme == 'socks5':
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
# print("proxy", proxy)
|
140
|
-
except ImportError:
|
141
|
-
logger.error("httpx-socks package is required for SOCKS proxy support")
|
142
|
-
raise ImportError("Please install httpx-socks package for SOCKS proxy support: pip install httpx-socks")
|
135
|
+
proxy = proxy.replace('socks5h://', 'socks5://')
|
136
|
+
transport = AsyncProxyTransport.from_url(proxy)
|
137
|
+
client_config["transport"] = transport
|
138
|
+
# print("proxy", proxy)
|
143
139
|
else:
|
144
140
|
client_config["proxies"] = {
|
145
141
|
"http://": proxy,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: aient
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.66
|
4
4
|
Summary: Aient: The Awakening of Agent.
|
5
5
|
Description-Content-Type: text/markdown
|
6
6
|
License-File: LICENSE
|
@@ -12,6 +12,7 @@ Requires-Dist: fastapi
|
|
12
12
|
Requires-Dist: PyExecJS
|
13
13
|
Requires-Dist: requests
|
14
14
|
Requires-Dist: html2text
|
15
|
+
Requires-Dist: httpx-socks
|
15
16
|
Requires-Dist: fake-useragent
|
16
17
|
Requires-Dist: beautifulsoup4
|
17
18
|
Requires-Dist: tiktoken==0.6.0
|
@@ -5,7 +5,7 @@ aient/core/log_config.py,sha256=kz2_yJv1p-o3lUQOwA3qh-LSc3wMHv13iCQclw44W9c,274
|
|
5
5
|
aient/core/models.py,sha256=_1wYZg_n9kb2A3C8xCboyqleH2iHc9scwOvtx9DPeok,7582
|
6
6
|
aient/core/request.py,sha256=sXAZwek-JtuCYheuaQiLizBSJRij_xZmTdf0-91N0AE,49986
|
7
7
|
aient/core/response.py,sha256=6Fq-EIL7ua1zeT6GMc1fgQeRs_MCP6UST_pL0tM3f3I,27879
|
8
|
-
aient/core/utils.py,sha256=
|
8
|
+
aient/core/utils.py,sha256=7R_4X4VhTigiuysJ-JuJuhtorAfkCEM-y-9N8dS5cME,25860
|
9
9
|
aient/core/test/test_base_api.py,sha256=pWnycRJbuPSXKKU9AQjWrMAX1wiLC_014Qc9hh5C2Pw,524
|
10
10
|
aient/core/test/test_image.py,sha256=_T4peNGdXKBHHxyQNx12u-NTyFE8TlYI6NvvagsG2LE,319
|
11
11
|
aient/core/test/test_payload.py,sha256=8jBiJY1uidm1jzL-EiK0s6UGmW9XkdsuuKFGrwFhFkw,2755
|
@@ -35,8 +35,8 @@ aient/prompt/agent.py,sha256=h39WOoafv0_lh2coBCiG9k-VWa3Yi9HRZV0hnvsc4gs,23598
|
|
35
35
|
aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
36
36
|
aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
37
37
|
aient/utils/scripts.py,sha256=n0jR5eXCBIK12W4bIx-xU1FVl1hZ4zDC7hq_BWQHYJU,27537
|
38
|
-
aient-1.0.
|
39
|
-
aient-1.0.
|
40
|
-
aient-1.0.
|
41
|
-
aient-1.0.
|
42
|
-
aient-1.0.
|
38
|
+
aient-1.0.66.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
39
|
+
aient-1.0.66.dist-info/METADATA,sha256=P_IHQlqtE0huTvv0iqY48DM1ZJL8KecLY_lw31UMPok,5000
|
40
|
+
aient-1.0.66.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
41
|
+
aient-1.0.66.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
42
|
+
aient-1.0.66.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|