diff --git a/src/App.vue b/src/App.vue index 822ca8f2493a4b76b1f4081da0ef61f2f058e333..0e740e3b5dfbbc2e2d7ff81d18a126787627809e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,7 +8,7 @@
- + @@ -17,25 +17,27 @@ - + Powered By InsCode.net
- - Prompt: - - 推荐: + + 调查员信息 + + 预设调查员们: - - - - + + + + + + 操作: - + @@ -53,10 +55,18 @@ export default { loading: false, dialogs: [], prompt: '', - showPrompt: false + showPrompt: false, + showPersonalButton: true, } }, methods: { + handleInit() { + this.$Message.error({ + content: '不要用沉默回复我', + duration: 3, + background: true + }); + }, handleSend() { if (this.loading || this.question === '') return; this.loading = true; @@ -75,7 +85,7 @@ export default { this.dialogs.push({ id: aiDialogID, role: 'ai', - text: 'AI 思考中...' + text: '书页翻动的声音...' }); const dialog = this.dialogs.find(item => item.id === aiDialogID); @@ -128,7 +138,7 @@ export default { }); }, handleNewChat() { - this.dialogs = []; + this.dialogs = ["你可以做出以下选择"]; }, handleOpenPrompt () { this.showPrompt = true; @@ -139,12 +149,17 @@ export default { handleSavePrompt () { if (!this.prompt) { this.$Message.error({ - content: '提示词内容不能为空', + content: '不要用沉默回复我, 请告诉我你是谁', duration: 3, background: true }); } else { - const prompt = this.prompt; + const pre_promt="你是coc模组的keeper,你将带领一位未解之谜探索协会(SEU)的调查员来到1992年的密歇根市,调查托马斯·金博尔家的书籍失窃案。"+ + "托马斯·金博尔居住在艾尔斯伯里大街 218 号的一栋小屋,热爱读书, 但最近他家里似乎遭了贼,被盗的是一些他叔叔最喜欢的书。"+ + "这个谜团有些不同寻常,因为这位叔叔早在一年前就神秘失踪了,并且没有留下任何踪迹。"+ + "因此,托马斯·金博尔请求调查员调查这起偷书案,同时也看看是否能查明他的叔叔道格拉斯失踪的原因。"+ + "以下是我作为调查员的个人信息:"; + const prompt = pre_promt+this.prompt; localStorage.setItem('setting-prompt', prompt); this.showPrompt = false; this.handleLoadPrompt(); @@ -157,10 +172,11 @@ export default { prompt = localPrompt; this.$nextTick(() => { this.$Message.success({ - content: '已加载 Prompt', + content: '我知道你是谁了', background: true }); }); + this.showPersonalButton=false } }, handleClearPrompt () { @@ -169,7 +185,7 @@ export default { prompt = ''; this.$nextTick(() => { this.$Message.success({ - content: '已清空 Prompt', + content: '你不再是你', background: true }); });