From e0483d5d06c459bbb5cf34c65c3b932df4bcebba Mon Sep 17 00:00:00 2001 From: duanfuxiang Date: Tue, 29 Apr 2025 11:34:02 +0800 Subject: [PATCH] update system prompt preview --- src/components/chat-view/CustomModeView.tsx | 86 +++++++++++---------- 1 file changed, 45 insertions(+), 41 deletions(-) diff --git a/src/components/chat-view/CustomModeView.tsx b/src/components/chat-view/CustomModeView.tsx index d17a1e2..70dbd6e 100644 --- a/src/components/chat-view/CustomModeView.tsx +++ b/src/components/chat-view/CustomModeView.tsx @@ -332,54 +332,54 @@ const CustomModeView = () => { >
{isAdvancedCollapsed ? : } -
覆盖系统提示词
+
覆盖系统提示词
{!isAdvancedCollapsed && ( -

- 您可以通过在工作区创建文件 - openOrCreateMarkdownFile(app, `_infio_prompts/${modeName}/system-prompt.md`, 0)}>_infio_prompts/{modeName}/system-prompt - ,完全替换此模式的系统提示(角色定义和自定义指令除外)。这是一个非常高级的功能,会覆盖工具使用等全部内置提示, 请谨慎操作 -

+ <> +

+ 您可以通过在工作区创建文件 + openOrCreateMarkdownFile(app, `_infio_prompts/${modeName}/system-prompt.md`, 0)}>_infio_prompts/{modeName}/system-prompt + ,完全替换此模式的系统提示(角色定义和自定义指令除外)。这是一个非常高级的功能,会覆盖工具使用等全部内置提示, 请谨慎操作 +

)} - {/* 预览和保存 */} + {/* 保存 */}
-