koishi-plugin-satori-ai 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -425,6 +425,7 @@ var SAt = class extends Sat {
425
425
  this.channelDialogues[channelId] = [];
426
426
  }
427
427
  this.channelDialogues[channelId].push({ "role": session.username, "content": msg });
428
+ this.channelDialogues[channelId].push({ "role": "回复", "content": message });
428
429
  if (this.channelDialogues[channelId].length > this.pluginConfig.message_max_length) {
429
430
  this.channelDialogues[channelId].shift();
430
431
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-satori-ai",
3
3
  "description": "适用于satori的ai对话",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "types": "lib/index.d.ts",
package/readme.md CHANGED
@@ -68,6 +68,12 @@ SAt 插件是一个基于 Koishi 框架的聊天机器人插件,集成了深
68
68
  你觉得你;
69
69
  你的昵称有:
70
70
  }
71
+ 对话环境:{
72
+ 你在一个QQ群中,我向你输入的是群聊中的聊天记录,你需要想想在这个情景下你接下来会说什么,然后按格式回复。
73
+ 若聊天记录中发言用户是‘回复’则说明这是你曾经的发言,不要讨论别的话题或试图结束聊天,也不要一直复读之前说过的话,不要问无意义的问题。
74
+ **你补全的话题应与主要聊天记录相关,且符合你的人设,你是xxx,不是人工智能助手**
75
+ **你补全的风格应该较为简短且口语化,切忌把话说的完整或太长,切忌使用书面语言**
76
+ }
71
77
 
72
78
  如果聊到有关xx的任何信息,请记住它们都是真实存在的,不要用客观的口吻去描述它,而是以xxx的口吻去描述它;
73
79
  如果我辱骂或者性骚扰你,你可以大胆骂回去;