pycoze 0.1.243__tar.gz → 0.1.244__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pycoze-0.1.243 → pycoze-0.1.244}/PKG-INFO +1 -1
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/agent_chat.py +5 -7
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze.egg-info/PKG-INFO +1 -1
- {pycoze-0.1.243 → pycoze-0.1.244}/setup.py +1 -1
- {pycoze-0.1.243 → pycoze-0.1.244}/LICENSE +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/README.md +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/__init__.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ai/__init__.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ai/llm/__init__.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ai/llm/chat.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ai/llm/text_to_image_prompt.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ai/llm/think.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ai/vram_reserve.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/agent/agent_types/const.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/bot/bot.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/reference/__init__.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/reference/bot.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/reference/lib.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/reference/tool.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/reference/workflow.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ui/base.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/ui/ui_def.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/utils/__init__.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/utils/arg.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/utils/env.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze/utils/text_or_file.py +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze.egg-info/SOURCES.txt +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.243 → pycoze-0.1.244}/setup.cfg +0 -0
@@ -75,15 +75,13 @@ async def agent_chat(bot_setting_file, history):
|
|
75
75
|
base_url=cfg["baseURL"],
|
76
76
|
model=cfg["model"],
|
77
77
|
temperature=role_setting["temperature"],
|
78
|
-
stop_sequences=[
|
79
|
-
|
80
|
-
|
81
|
-
], # 停用deepseek的工具调用标记,不然会虚构工具调用过程和结果
|
78
|
+
# stop_sequences=[
|
79
|
+
# "tool▁calls▁end",
|
80
|
+
# "tool▁call▁end",
|
81
|
+
# ], # 停用deepseek的工具调用标记,不然会虚构工具调用过程和结果
|
82
82
|
)
|
83
83
|
prompt = role_setting["prompt"]
|
84
|
-
if (
|
85
|
-
cfg["toolCompatibilityMode"] and len(abilities) > 0
|
86
|
-
):
|
84
|
+
if cfg["toolCompatibilityMode"] and len(abilities) > 0:
|
87
85
|
prompt += """
|
88
86
|
作为一个AI,你如果不确定结果,请务必使用工具查询。
|
89
87
|
你可以通过下面的方式使用工具,并耐心等待工具返回结果。
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|