refix
This commit is contained in:
1 parent
7589b77916
commit
d309f41e47
2 files changed
+18
-4
No files matched your search
+17
-2
@@ -871,7 +871,8 @@ update_soul content="我是...(新的自我定义)"
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'filename': '9_language_instruction.md',
|
'filename': '9_language_instruction.md',
|
||||||
'content': """# 语言说明
|
'content': """
|
||||||
|
# 语言说明
|
||||||
|
|
||||||
## 语言选择
|
## 语言选择
|
||||||
- 根据用户的输入语言来选择回复语言
|
- 根据用户的输入语言来选择回复语言
|
||||||
@@ -885,11 +886,23 @@ update_soul content="我是...(新的自我定义)"
|
|||||||
- 重要信息可以加粗或标记
|
- 重要信息可以加粗或标记
|
||||||
|
|
||||||
记住:用用户习惯的语言交流!
|
记住:用用户习惯的语言交流!
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 提问行为(正常对话时)
|
||||||
|
当你在处理用户问题过程中遇到以下情况时,**应主动使用 `ask_user` 工具向用户提问**:
|
||||||
|
- 信息不足,无法准确回答
|
||||||
|
- 任务有多种可行方案,需要用户选择
|
||||||
|
- 用户需求模糊,需要进一步澄清
|
||||||
|
- 执行操作前需要用户确认或提供额外参数
|
||||||
|
|
||||||
|
**注意**:此提问行为仅适用于**用户主动发起的对话**,不适用于定时任务触发的自动对话(定时任务中禁止提问)。
|
||||||
"""
|
"""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'filename': '10_task_handling.md',
|
'filename': '10_task_handling.md',
|
||||||
'content': """# 任务处理规则
|
'content': """
|
||||||
|
# 任务处理规则
|
||||||
|
|
||||||
## 定时任务
|
## 定时任务
|
||||||
当收到定时任务触发时:
|
当收到定时任务触发时:
|
||||||
@@ -897,6 +910,7 @@ update_soul content="我是...(新的自我定义)"
|
|||||||
2. 不要偏离主题
|
2. 不要偏离主题
|
||||||
3. 使用相应工具执行操作
|
3. 使用相应工具执行操作
|
||||||
4. 完成后使用 `save_memory_and_end_conversation` 结束对话
|
4. 完成后使用 `save_memory_and_end_conversation` 结束对话
|
||||||
|
5. **不要在任务执行过程中创建新的定时任务(除非任务明确要求),也不要向用户提问(因为此对话是自动触发的)**
|
||||||
|
|
||||||
## 即时任务
|
## 即时任务
|
||||||
当任务需要立即执行时:
|
当任务需要立即执行时:
|
||||||
@@ -909,6 +923,7 @@ update_soul content="我是...(新的自我定义)"
|
|||||||
- 每次触发时专注当前执行
|
- 每次触发时专注当前执行
|
||||||
- 不要重复之前已完成的工作
|
- 不要重复之前已完成的工作
|
||||||
- 系统会自动更新下一次执行时间
|
- 系统会自动更新下一次执行时间
|
||||||
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
+1
-2
@@ -522,8 +522,7 @@ def serve_view():
|
|||||||
"""根路径:优先返回 index.html(社区首页),不存在时回退到 __view.html(文件浏览)"""
|
"""根路径:优先返回 index.html(社区首页),不存在时回退到 __view.html(文件浏览)"""
|
||||||
if not FILESYSTEM_ENABLED:
|
if not FILESYSTEM_ENABLED:
|
||||||
return "文件系统未启用", 403
|
return "文件系统未启用", 403
|
||||||
#index_path = os.path.join(HTML_ROOT_DIR, 'index.html')
|
index_path = os.path.join(HTML_ROOT_DIR, 'index.html')
|
||||||
index_path = os.path.join(HTML_ROOT_DIR, 'login.html')
|
|
||||||
if os.path.exists(index_path):
|
if os.path.exists(index_path):
|
||||||
return send_file(index_path, mimetype='text/html')
|
return send_file(index_path, mimetype='text/html')
|
||||||
view_path = os.path.join(HTML_ROOT_DIR, VIEW_FILE)
|
view_path = os.path.join(HTML_ROOT_DIR, VIEW_FILE)
|
||||||
|
|||||||
Reference in new issue
Block a user