beswarm 0.2.15__py3-none-any.whl → 0.2.16__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.
- beswarm/aient/setup.py +1 -1
- beswarm/aient/src/aient/core/request.py +6 -0
- beswarm/aient/src/aient/models/chatgpt.py +3 -0
- {beswarm-0.2.15.dist-info → beswarm-0.2.16.dist-info}/METADATA +1 -1
- {beswarm-0.2.15.dist-info → beswarm-0.2.16.dist-info}/RECORD +7 -7
- {beswarm-0.2.15.dist-info → beswarm-0.2.16.dist-info}/WHEEL +0 -0
- {beswarm-0.2.15.dist-info → beswarm-0.2.16.dist-info}/top_level.txt +0 -0
beswarm/aient/setup.py
CHANGED
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
|
|
4
4
|
|
5
5
|
setup(
|
6
6
|
name="aient",
|
7
|
-
version="1.1.
|
7
|
+
version="1.1.44",
|
8
8
|
description="Aient: The Awakening of Agent.",
|
9
9
|
long_description=Path.open(Path("README.md"), encoding="utf-8").read(),
|
10
10
|
long_description_content_type="text/markdown",
|
@@ -182,9 +182,15 @@ async def get_gemini_payload(request, engine, provider, api_key=None):
|
|
182
182
|
processed_tools = []
|
183
183
|
for tool in value:
|
184
184
|
function_def = tool["function"]
|
185
|
+
# gemini不支持parameters里面的additionalProperties字段,需要删除
|
186
|
+
if safe_get(function_def, "parameters", "additionalProperties", default=None) is not None:
|
187
|
+
del function_def["parameters"]["additionalProperties"]
|
188
|
+
|
185
189
|
# 处理 parameters.properties 中的 default 字段
|
186
190
|
if safe_get(function_def, "parameters", "properties", default=None):
|
187
191
|
for prop_value in function_def["parameters"]["properties"].values():
|
192
|
+
if "additionalProperties" in prop_value:
|
193
|
+
del prop_value["additionalProperties"]
|
188
194
|
if "default" in prop_value:
|
189
195
|
# 将 default 值添加到 description 中
|
190
196
|
default_value = prop_value["default"]
|
@@ -570,6 +570,9 @@ class chatgpt(BaseLLM):
|
|
570
570
|
elif tool_name == "read_image" and "<tool_error>" not in tool_response:
|
571
571
|
tool_info["base64_image"] = tool_response
|
572
572
|
all_responses.append(f"[{tool_name}({tool_args}) Result]:\n\nRead image successfully!")
|
573
|
+
elif tool_response.startswith("data:image/") and ";base64," in tool_response and "<tool_error>" not in tool_response:
|
574
|
+
tool_info["base64_image"] = tool_response
|
575
|
+
all_responses.append(f"[{tool_name}({tool_args}) Result]:\n\nRead image successfully!")
|
573
576
|
else:
|
574
577
|
all_responses.append(f"[{tool_name}({tool_args}) Result]:\n\n{tool_response}")
|
575
578
|
|
@@ -2,12 +2,12 @@ beswarm/__init__.py,sha256=HZjUOJtZR5QhMuDbq-wukQQn1VrBusNWai_ysGo-VVI,20
|
|
2
2
|
beswarm/prompt.py,sha256=_hYKZ0MUiMRs3C-1PMlFKIVgTKFcp_irla3p3wQNF3c,32015
|
3
3
|
beswarm/utils.py,sha256=xxbNifOPlfcVkKmF_qFzuEnZgF3MQg3mnOfz1EF0Qss,6697
|
4
4
|
beswarm/aient/main.py,sha256=SiYAIgQlLJqYusnTVEJOx1WNkSJKMImhgn5aWjfroxg,3814
|
5
|
-
beswarm/aient/setup.py,sha256=
|
5
|
+
beswarm/aient/setup.py,sha256=G94zedNLlZ9Ys_8yft6otVsSzDN0k-iQ_x4VGTI-668,487
|
6
6
|
beswarm/aient/src/aient/__init__.py,sha256=SRfF7oDVlOOAi6nGKiJIUK6B_arqYLO9iSMp-2IZZps,21
|
7
7
|
beswarm/aient/src/aient/core/__init__.py,sha256=NxjebTlku35S4Dzr16rdSqSTWUvvwEeACe8KvHJnjPg,34
|
8
8
|
beswarm/aient/src/aient/core/log_config.py,sha256=kz2_yJv1p-o3lUQOwA3qh-LSc3wMHv13iCQclw44W9c,274
|
9
9
|
beswarm/aient/src/aient/core/models.py,sha256=d4MISNezTSe0ls0-fjuToI2SoT-sk5fWqAJuKVinIlo,7502
|
10
|
-
beswarm/aient/src/aient/core/request.py,sha256=
|
10
|
+
beswarm/aient/src/aient/core/request.py,sha256=90Mit0vrwoDJYQQVJmBltQdTnMaGKSmZNBMRXsoJ19A,72406
|
11
11
|
beswarm/aient/src/aient/core/response.py,sha256=mAVsCnNhWY09DXNe0lyPUJq-1ljtGjC67Az-Uh7ozIw,35166
|
12
12
|
beswarm/aient/src/aient/core/utils.py,sha256=NcXdb8zBN0GE01OGaUzg8U34RaraoFf2MaLDDGFvvC4,27492
|
13
13
|
beswarm/aient/src/aient/core/test/test_base_api.py,sha256=pWnycRJbuPSXKKU9AQjWrMAX1wiLC_014Qc9hh5C2Pw,524
|
@@ -17,7 +17,7 @@ beswarm/aient/src/aient/core/test/test_payload.py,sha256=8jBiJY1uidm1jzL-EiK0s6U
|
|
17
17
|
beswarm/aient/src/aient/models/__init__.py,sha256=ouNDNvoBBpIFrLsk09Q_sq23HR0GbLAKfGLIFmfEuXE,219
|
18
18
|
beswarm/aient/src/aient/models/audio.py,sha256=kRd-8-WXzv4vwvsTGwnstK-WR8--vr9CdfCZzu8y9LA,1934
|
19
19
|
beswarm/aient/src/aient/models/base.py,sha256=z-Z0pJfTN2x0cuwfvu0BdMRY9O-RmLwHEnBIJN1x4Fg,6719
|
20
|
-
beswarm/aient/src/aient/models/chatgpt.py,sha256=
|
20
|
+
beswarm/aient/src/aient/models/chatgpt.py,sha256=Yum3_-LgHmFUII0AljfNNfSc8gBhJzyPYAWZJyr4yFo,46969
|
21
21
|
beswarm/aient/src/aient/models/claude.py,sha256=JezghW7y0brl4Y5qiSHvnYR5prQCFywX4RViHt39pGI,26037
|
22
22
|
beswarm/aient/src/aient/models/duckduckgo.py,sha256=1l7vYCs9SG5SWPCbcl7q6pCcB5AUF_r-a4l9frz3Ogo,8115
|
23
23
|
beswarm/aient/src/aient/models/gemini.py,sha256=chGLc-8G_DAOxr10HPoOhvVFW1RvMgHd6mt--VyAW98,14730
|
@@ -135,7 +135,7 @@ beswarm/tools/screenshot.py,sha256=u6t8FCgW5YHJ_Oc4coo8e0F3wTusWE_-H8dFh1rBq9Q,1
|
|
135
135
|
beswarm/tools/search_arxiv.py,sha256=caVIUOzMhFu-r_gVgJZrH2EO9xI5iV_qLAg0b3Ie9Xg,8095
|
136
136
|
beswarm/tools/search_web.py,sha256=w0T0aCqOVlb6Of5hn_TtpnrGXo6bMtw2aKZdkrYjycI,12069
|
137
137
|
beswarm/tools/worker.py,sha256=ZFgSe17Je9NJuITvojZ89uEk2p-pXWJIy9GHNvMDAVo,23491
|
138
|
-
beswarm-0.2.
|
139
|
-
beswarm-0.2.
|
140
|
-
beswarm-0.2.
|
141
|
-
beswarm-0.2.
|
138
|
+
beswarm-0.2.16.dist-info/METADATA,sha256=7dkfw1GTU0uQQ5_DxHdk956ZuvAWHfI4m6jWThucZ_4,3847
|
139
|
+
beswarm-0.2.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
140
|
+
beswarm-0.2.16.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
|
141
|
+
beswarm-0.2.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|