Skip to content

Commit d46d025

Browse files
author
linyuan.yang
committed
意图过滤提示词
1 parent 3877ea9 commit d46d025

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/admin/src/i18n/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ export default {
393393
cat_tools: 'Tools',
394394
cat_compact: 'Compact',
395395
cat_insight: 'Insight',
396+
cat_intent: 'Intent Filter',
396397
cat_heartbeat: 'Heartbeat',
397398
create_file: 'New File',
398399
create_title: 'New Prompt',

packages/admin/src/i18n/zh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ export default {
393393
cat_tools: '工具',
394394
cat_compact: '对话压缩',
395395
cat_insight: '经验洞察',
396+
cat_intent: '意图过滤',
396397
cat_heartbeat: '心跳',
397398
create_file: '新建文件',
398399
create_title: '新建 Prompt',

packages/admin/src/views/PromptsView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function flattenTree(nodes: TreeNode[], depth = 0): { node: TreeNode; depth: num
2424
return result
2525
}
2626
27-
const categoryOrder = ['system', 'agent', 'compact', 'memory', 'wiki', 'skills', 'insight', 'tools', 'heartbeat']
27+
const categoryOrder = ['system', 'agent', 'compact', 'memory', 'wiki', 'skills', 'insight', 'tools', 'intent', 'heartbeat']
2828
2929
const categories = computed(() => {
3030
const map = new Map<string, TreeNode>()
@@ -258,7 +258,7 @@ onMounted(async () => {
258258
<span class="tree-icon">{{ collapsedCats.has(cat.key) ? '▶' : '▼' }}</span>
259259
<span class="tree-cat-label">{{ cat.label }}</span>
260260
<span v-if="cat.node.isOverride" class="tree-custom-dot" :title="t('prompts.contains_custom')"></span>
261-
<button v-if="cat.key === 'heartbeat'" class="tree-add-btn" @click.stop="startCreate(cat.key)" :title="t('prompts.create_file')">+</button>
261+
<button v-if="cat.key === 'heartbeat' || cat.key === 'intent'" class="tree-add-btn" @click.stop="startCreate(cat.key)" :title="t('prompts.create_file')">+</button>
262262
</div>
263263
<template v-if="!collapsedCats.has(cat.key)">
264264
<div v-if="creatingInCat === cat.key" class="tree-item tree-file" style="padding-left:14px;gap:3px">

0 commit comments

Comments
 (0)