pycoze 0.1.180__py3-none-any.whl → 0.1.181__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
pycoze/bot/agent_chat.py CHANGED
@@ -7,10 +7,7 @@ from pycoze.reference.bot import ref_bot
7
7
  from pycoze.reference.tool import ref_tools
8
8
  from langchain_core.utils.function_calling import convert_to_openai_tool
9
9
 
10
- params = utils.read_params_file()
11
- llm_file = params["appPath"] + "/JsonStorage/llm.json"
12
- with open(llm_file, "r", encoding="utf-8") as f:
13
- cfg = json.load(f)
10
+ cfg = utils.read_json_file("llm.json")
14
11
 
15
12
 
16
13
  def load_role_setting(bot_setting_file: str):
pycoze/utils/env.py CHANGED
@@ -1,4 +1,5 @@
1
1
  import os
2
+ import json
2
3
 
3
4
 
4
5
  def read_params_file():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.180
3
+ Version: 0.1.181
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -2,7 +2,7 @@ pycoze/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  pycoze/ai/__init__.py,sha256=odM2lgYSnApxw4AzLV_5AyaxL5_MLfydOSB1VmLGFyA,75
3
3
  pycoze/ai/vram_reserve.py,sha256=vYAnEuFXQghU9x5i5PH685-o-PqUeUnztZvURBf3KUQ,4336
4
4
  pycoze/bot/__init__.py,sha256=6HHMxDQVOyZM9dtSjQm9tjGnhj4h7CixD0JOvEwTi48,41
5
- pycoze/bot/agent_chat.py,sha256=AOS96nAAxOR4Gdk0nj4aBDPt9kS5lL5YhduxuLnBOqw,2910
5
+ pycoze/bot/agent_chat.py,sha256=KshLVuXSnkWsp1J9xKKhoIMvAfQXg5ZyzSkPZdwcRkM,2785
6
6
  pycoze/bot/bot.py,sha256=CCnBmxtmpmz7aLR_MIIiOuKR9IACo5P4uSkQXb5d0KU,3061
7
7
  pycoze/bot/agent/__init__.py,sha256=3wE8_FFQS8j2BY-g9Cr-onV0POEvDRZaw_NCzpqrNus,265
8
8
  pycoze/bot/agent/agent.py,sha256=7dyAsHSVnBmFUK9GR_BumkjSgrvQA0KLj0e3aDN_JU4,3592
@@ -22,10 +22,10 @@ pycoze/ui/typ.py,sha256=NpT0FrbHvByOszBZMFtroRp7I7pN-38tYz_zPOPejF4,1723
22
22
  pycoze/ui/ui_def.py,sha256=UhhU_yB3GV9ISbvTWT48hsHPHI250BhMILh6bu5Uioo,4206
23
23
  pycoze/utils/__init__.py,sha256=Gi5EnrWZGMD2JRejgV4c_VLCXyvA2wwBFI_niDF5MUE,110
24
24
  pycoze/utils/arg.py,sha256=GtfGbMTMdaK75Fwh6MpUe1pCA5X6Ep4LFG7a72YrzjI,525
25
- pycoze/utils/env.py,sha256=OXDevzpz76WKD5O4sEbhi6tlPd9BeN_uZ2GkarOrHOY,548
25
+ pycoze/utils/env.py,sha256=W04lhvTHhAAC6EldP6kk2xrctqtu8K6kl1vDLZDNeh8,561
26
26
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
27
- pycoze-0.1.180.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
28
- pycoze-0.1.180.dist-info/METADATA,sha256=tG7ZSPEODLJSNiX_Ou2tHv2Yu7osuGsaucOo7w9BDKY,726
29
- pycoze-0.1.180.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
30
- pycoze-0.1.180.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
31
- pycoze-0.1.180.dist-info/RECORD,,
27
+ pycoze-0.1.181.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
28
+ pycoze-0.1.181.dist-info/METADATA,sha256=Nk0yCGjx-gc1OnxiVY9Mbgjfvo1TGyg5S_1W2UXhcmA,726
29
+ pycoze-0.1.181.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
30
+ pycoze-0.1.181.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
31
+ pycoze-0.1.181.dist-info/RECORD,,