aient 1.1.28__py3-none-any.whl → 1.1.30__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/response.py +1 -1
- aient/plugins/config.py +2 -2
- {aient-1.1.28.dist-info → aient-1.1.30.dist-info}/METADATA +1 -1
- {aient-1.1.28.dist-info → aient-1.1.30.dist-info}/RECORD +7 -7
- {aient-1.1.28.dist-info → aient-1.1.30.dist-info}/WHEEL +0 -0
- {aient-1.1.28.dist-info → aient-1.1.30.dist-info}/licenses/LICENSE +0 -0
- {aient-1.1.28.dist-info → aient-1.1.30.dist-info}/top_level.txt +0 -0
aient/core/response.py
CHANGED
@@ -86,7 +86,7 @@ async def fetch_gemini_response_stream(client, url, headers, payload, model):
|
|
86
86
|
if is_thinking:
|
87
87
|
sse_string = await generate_sse_response(timestamp, model, reasoning_content=content)
|
88
88
|
yield sse_string
|
89
|
-
elif not image_base64:
|
89
|
+
elif not image_base64 and content:
|
90
90
|
sse_string = await generate_sse_response(timestamp, model, content=content)
|
91
91
|
yield sse_string
|
92
92
|
except json.JSONDecodeError:
|
aient/plugins/config.py
CHANGED
@@ -16,9 +16,9 @@ async def get_tools_result_async(function_call_name, function_full_response, fun
|
|
16
16
|
invalid_args = [arg_name for arg_name in call_args_name_list if arg_name not in required_args]
|
17
17
|
if invalid_args:
|
18
18
|
function_response = (
|
19
|
-
"function_response:"
|
19
|
+
"function_response: "
|
20
20
|
"<tool_error>"
|
21
|
-
f"无效的参数: {invalid_args}"
|
21
|
+
f"无效的参数: {invalid_args} "
|
22
22
|
f"{function_call_name} 只允许使用以下参数: {required_args}"
|
23
23
|
"</tool_error>"
|
24
24
|
)
|
@@ -5,7 +5,7 @@ aient/core/__init__.py,sha256=NxjebTlku35S4Dzr16rdSqSTWUvvwEeACe8KvHJnjPg,34
|
|
5
5
|
aient/core/log_config.py,sha256=kz2_yJv1p-o3lUQOwA3qh-LSc3wMHv13iCQclw44W9c,274
|
6
6
|
aient/core/models.py,sha256=g6rUcNwSTHwmBzt1epsu_2Re8YRFKVCSXRUIFJZpAb4,7432
|
7
7
|
aient/core/request.py,sha256=Zp5Q6iZp3OWZt95cZLh0VmbwvF18jXQB88UfA_3AKt8,67279
|
8
|
-
aient/core/response.py,sha256=
|
8
|
+
aient/core/response.py,sha256=WIJhvf3Th3-XW3MsDq8QdzxXcNe5q1mCKcCZx8pzm2A,33213
|
9
9
|
aient/core/utils.py,sha256=zidsBUBd3KskzcxQcPB1y5x1RhtWcbZeWvmgb4LAadA,27318
|
10
10
|
aient/core/test/test_base_api.py,sha256=pWnycRJbuPSXKKU9AQjWrMAX1wiLC_014Qc9hh5C2Pw,524
|
11
11
|
aient/core/test/test_geminimask.py,sha256=HFX8jDbNg_FjjgPNxfYaR-0-roUrOO-ND-FVsuxSoiw,13254
|
@@ -22,7 +22,7 @@ aient/models/groq.py,sha256=eXfSOaPxgQEtk4U8qseArN8rFYOFBfMsPwRcDW1nERo,8790
|
|
22
22
|
aient/models/vertex.py,sha256=qVD5l1Q538xXUPulxG4nmDjXE1VoV4yuAkTCpIeJVw0,16795
|
23
23
|
aient/plugins/__init__.py,sha256=p3KO6Aa3Lupos4i2SjzLQw1hzQTigOAfEHngsldrsyk,986
|
24
24
|
aient/plugins/arXiv.py,sha256=yHjb6PS3GUWazpOYRMKMzghKJlxnZ5TX8z9F6UtUVow,1461
|
25
|
-
aient/plugins/config.py,sha256=
|
25
|
+
aient/plugins/config.py,sha256=2DXH-LP9KGl_P4467chJu3q4AAbX5nSn4DIkdI0aYH8,7105
|
26
26
|
aient/plugins/excute_command.py,sha256=XEGg1AX8U8iUBaHBqoCmZHLCpI_wQiDSmHDFvqG6ONE,10243
|
27
27
|
aient/plugins/get_time.py,sha256=Ih5XIW5SDAIhrZ9W4Qe5Hs1k4ieKPUc_LAd6ySNyqZk,654
|
28
28
|
aient/plugins/image.py,sha256=ZElCIaZznE06TN9xW3DrSukS7U3A5_cjk1Jge4NzPxw,2072
|
@@ -39,8 +39,8 @@ aient/prompt/agent.py,sha256=ebHYebxbgL-WEAKUs1NPNwxlUMucF3GNNoy3eNZrtIo,29737
|
|
39
39
|
aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
40
|
aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
41
41
|
aient/utils/scripts.py,sha256=JVR6oNxYc9NnfQL0PGsL8QuhG43dwg0-rPS8NR_pyBM,36461
|
42
|
-
aient-1.1.
|
43
|
-
aient-1.1.
|
44
|
-
aient-1.1.
|
45
|
-
aient-1.1.
|
46
|
-
aient-1.1.
|
42
|
+
aient-1.1.30.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
43
|
+
aient-1.1.30.dist-info/METADATA,sha256=jh07vvpvG0PVt80oRuoctmYD0Dw712vnVb7iTr-8oog,4968
|
44
|
+
aient-1.1.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
45
|
+
aient-1.1.30.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
46
|
+
aient-1.1.30.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|