增加了配置提示词和开场白

This commit is contained in:
Cold
2025-12-26 18:10:29 +08:00
parent 1d6b578ae0
commit 3448e65e7a
6 changed files with 38 additions and 46 deletions

View File

@@ -36,6 +36,19 @@
提示留空将使用系统默认提示词模板创建后也可通过"配置提示词"按钮修改
</div>
</el-form-item>
<el-form-item label="开场白" prop="opener">
<el-input
type="textarea"
v-model="formData.opener"
:rows="3"
placeholder="留空则使用默认开场白,用户进入对话时首先显示的内容"
maxlength="200"
show-word-limit
/>
<div style="color: #909399; font-size: 12px; margin-top: 5px;">
提示留空将使用默认开场白创建后也可通过"配置提示词"按钮修改
</div>
</el-form-item>
</el-collapse-item>
</el-collapse>
</el-form>
@@ -62,6 +75,7 @@ interface DialogFormData {
accountName: string;
platform: string;
prompt?: string;
opener?: string;
status: number;
creator: '';
modifier: '';
@@ -80,6 +94,7 @@ const state = reactive({
accountName: '',
platform: '',
prompt: '',
opener: '',
status: 1,
creator: '',
modifier: '',
@@ -175,6 +190,7 @@ const resetForm = () => {
accountName: '',
platform: '',
prompt: '',
opener: '',
status: 1,
creator: '',
modifier: '',