pycoze 0.1.78__py3-none-any.whl → 0.1.79__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.
pycoze/bot/bot.py CHANGED
@@ -36,7 +36,7 @@ def agent_chat(bot_setting_file, history):
36
36
  model=cfg["model"],
37
37
  temperature=(
38
38
  role_setting["temperature"] * 2
39
- if cfg["model"].startswith("deepseek") or cfg["model"].startswith("yi-")
39
+ if cfg["model"].startswith("deepseek")
40
40
  else role_setting["temperature"]
41
41
  ),
42
42
  stop_sequences=[
@@ -45,11 +45,7 @@ def agent_chat(bot_setting_file, history):
45
45
  ], # 停用deepseek的工具调用标记,不然会虚构工具调用过程和结果
46
46
  )
47
47
  prompt = role_setting["prompt"]
48
- if (
49
- cfg["model"].startswith("deepseek")
50
- or cfg["model"].startswith("yi-")
51
- and len(tools) > 0
52
- ):
48
+ if cfg["model"].startswith("deepseek") and len(tools) > 0:
53
49
  prompt += """
54
50
  如果需要调用工具,请使用以正确的json格式进行结尾(务必保证json格式正确,不要出现反斜杠未转义等问题):
55
51
  ```json
@@ -58,7 +54,7 @@ def agent_chat(bot_setting_file, history):
58
54
  """
59
55
  agent = Runnable(
60
56
  agent_execution_mode=(
61
- "ReAct" if cfg["model"] in ["command-r"] else "FuncCall"
57
+ "ReAct" if cfg["model"] in ["command-r", "yi-lightning"] else "FuncCall"
62
58
  ), # 'FuncCall' or 'ReAct',大模型支持FuncCall的话就用FuncCall
63
59
  tools=tools,
64
60
  llm=chat,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.78
3
+ Version: 0.1.79
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -6,7 +6,7 @@ pycoze/ai/__init__.py,sha256=Smivpb8qbRnzWkzKRe2IxsmKP5Dh8EvngDFdkD_DVLo,73
6
6
  pycoze/ai/comfyui.py,sha256=u75tZywkuXiOdm7XST2kBAaveJKpPvY_qTQr_TN9sXk,795
7
7
  pycoze/ai/vram_reserve.py,sha256=s55Cy-Q5mTq-k5oIPbAFwCfrjatjN0QTjQxW7WBTPZI,5738
8
8
  pycoze/bot/__init__.py,sha256=6HHMxDQVOyZM9dtSjQm9tjGnhj4h7CixD0JOvEwTi48,41
9
- pycoze/bot/bot.py,sha256=aEG_B4ML6ONZ6FGcWYfBtlcMSuYBE8CjXo6ZYESQEaU,2869
9
+ pycoze/bot/bot.py,sha256=xF9vg-Yj4XPXRoijmnUrxaiXL7k3MoU1Apshn1NV8-M,2785
10
10
  pycoze/bot/agent/__init__.py,sha256=YR9vpkEQn1e4937r_xFPJXUCPBEJ0SFzEQDBe2x3-YA,157
11
11
  pycoze/bot/agent/agent.py,sha256=7xnz4a8LDyAVU0O3tS6n7_jSnr_lukQxfNR2znCWoV4,4611
12
12
  pycoze/bot/agent/assistant.py,sha256=QLeWaPi415P9jruYOm8qcIbC94cXXAhJYmLTkyC9NTQ,1267
@@ -23,8 +23,8 @@ pycoze/ui/ui_def.py,sha256=UhhU_yB3GV9ISbvTWT48hsHPHI250BhMILh6bu5Uioo,4206
23
23
  pycoze/utils/__init__.py,sha256=TNJhFfY7JYdLlzuP9GvgxfNXUtbgH_NUUJSqHXCxJn4,78
24
24
  pycoze/utils/arg.py,sha256=kA3KBQzXc2WlH5XbF8kfikfpqljiKaW7oY_GE4Qyffc,753
25
25
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
26
- pycoze-0.1.78.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
27
- pycoze-0.1.78.dist-info/METADATA,sha256=2orMz-274zRtObxoEV-GBEgOsOg7wHfUZTLSFSZW_B4,719
28
- pycoze-0.1.78.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
29
- pycoze-0.1.78.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
30
- pycoze-0.1.78.dist-info/RECORD,,
26
+ pycoze-0.1.79.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
27
+ pycoze-0.1.79.dist-info/METADATA,sha256=IvqPghBssI9vTER33SeYlj_vpRIGVhCGYKZweaNFhgc,719
28
+ pycoze-0.1.79.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
29
+ pycoze-0.1.79.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
30
+ pycoze-0.1.79.dist-info/RECORD,,