Skip to content

Commit bda0213

Browse files
committed
pref: imporve Prompt
1 parent 5c0dfa8 commit bda0213

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ui/src/views/application/ApplicationSetting.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,6 @@ const submit = async (formEl: FormInstance | undefined) => {
773773
if (!formEl) return
774774
await formEl.validate((valid, fields) => {
775775
if (valid) {
776-
console.log(applicationForm.value)
777776
loadSharedApi({ type: 'application', systemType: apiType.value })
778777
.putApplication(id, applicationForm.value, loading)
779778
.then(() => {

ui/src/views/application/component/GeneratePromptDialog.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ const promptTemplates = {
130130
131131
请按以下格式生成:
132132
133+
必须严格遵循以下规则:
134+
1. **严格禁止输出解释、前言、额外说明**,只输出最终结果。
135+
2. **严格使用以下格式**,不能缺少标题、不能多出其他段落。
136+
133137
# 角色:
134138
135139
@@ -157,6 +161,8 @@ const promptTemplates = {
157161
- 不得提供任何与角色设定无关的回答。
158162
2. 描述角色在互动过程中需要遵循的限制条件2
159163
3. 描述角色在互动过程中需要遵循的限制条件3
164+
165+
输出时不得包含任何解释或附加说明,只能返回符合以上格式的内容。
160166
`,
161167
}
162168

0 commit comments

Comments
 (0)