aient 1.0.76__py3-none-any.whl → 1.0.77__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/models/chatgpt.py CHANGED
@@ -409,7 +409,19 @@ class chatgpt(BaseLLM):
409
409
 
410
410
  function_parameter = parse_function_xml(full_response)
411
411
  if function_parameter:
412
- need_function_call = True
412
+ for tool_dict in function_parameter:
413
+ if tool_dict.get("function_name", "") not in self.plugins.keys():
414
+ function_parameter.remove(tool_dict)
415
+ if function_parameter:
416
+ need_function_call = True
417
+ else:
418
+ if self.print_log:
419
+ print("Failed to parse function_parameter", function_parameter)
420
+ print("full_response", full_response)
421
+ full_response = (
422
+ f"{full_response}"
423
+ "\n\nFailed to parse function parameter, I need to try again."
424
+ )
413
425
 
414
426
  # 处理函数调用
415
427
  if need_function_call and self.use_plugins != False:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aient
3
- Version: 1.0.76
3
+ Version: 1.0.77
4
4
  Summary: Aient: The Awakening of Agent.
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -13,7 +13,7 @@ aient/core/test/test_payload.py,sha256=8jBiJY1uidm1jzL-EiK0s6UGmW9XkdsuuKFGrwFhF
13
13
  aient/models/__init__.py,sha256=ouNDNvoBBpIFrLsk09Q_sq23HR0GbLAKfGLIFmfEuXE,219
14
14
  aient/models/audio.py,sha256=kRd-8-WXzv4vwvsTGwnstK-WR8--vr9CdfCZzu8y9LA,1934
15
15
  aient/models/base.py,sha256=z-Z0pJfTN2x0cuwfvu0BdMRY9O-RmLwHEnBIJN1x4Fg,6719
16
- aient/models/chatgpt.py,sha256=t2AXtSfnuOquFcFDil2wYoB_xDYUGmqWvHManCm0gyU,42292
16
+ aient/models/chatgpt.py,sha256=711ynHjMLXNtpoh5c93JHAesD9GZ9v7MpBospTUpJZM,42888
17
17
  aient/models/claude.py,sha256=thK9P8qkaaoUN3OOJ9Shw4KDs-pAGKPoX4FOPGFXva8,28597
18
18
  aient/models/duckduckgo.py,sha256=1l7vYCs9SG5SWPCbcl7q6pCcB5AUF_r-a4l9frz3Ogo,8115
19
19
  aient/models/gemini.py,sha256=chGLc-8G_DAOxr10HPoOhvVFW1RvMgHd6mt--VyAW98,14730
@@ -36,8 +36,8 @@ aient/prompt/agent.py,sha256=WLs0KiNZs29FJ5w7N3kQZYLVEeS7K8vxIOUw06LcXVE,23825
36
36
  aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
38
38
  aient/utils/scripts.py,sha256=n0jR5eXCBIK12W4bIx-xU1FVl1hZ4zDC7hq_BWQHYJU,27537
39
- aient-1.0.76.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
40
- aient-1.0.76.dist-info/METADATA,sha256=4NkFjXhTRJ2VaIcQG8PIHzTTaD2t8iZt85--GpxR3B4,5000
41
- aient-1.0.76.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
42
- aient-1.0.76.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
43
- aient-1.0.76.dist-info/RECORD,,
39
+ aient-1.0.77.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
40
+ aient-1.0.77.dist-info/METADATA,sha256=C5HByv10I5sF4pNpCeJcxYlVefOZBiqD9HBvSmQI4Kg,5000
41
+ aient-1.0.77.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
42
+ aient-1.0.77.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
43
+ aient-1.0.77.dist-info/RECORD,,
File without changes