Skip to content

Commit

Permalink
build: 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Apr 11, 2023
1 parent 517281d commit de8674f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
## 1.4.1 (23/03/30)
## 1.5.0 (23/04/11)

1. fix: Empty to ...
2. fix: reset '***'
3. feat: cname by properties, example `-Dxyz.cssxsh.openai.cname=false`
4. feat: community-prompts from <https://chathub.gg/api/community-prompts>

将会移动 `prompt` 到新路径 `data/xyz.cssxsh.mirai.plugin.mirai-openai-plugin/prompts`

## 1.4.2 (23/03/31)

1. fix: prompt `~`

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ OpenAI 目前对注册有一定要求,请先阅读 [注册](#注册), 然后
**Since 1.3.0** 添加经济系统对接 和 预置语境
**Since 1.3.1** 添加一些可能会带来BUG的配置 `立刻开始聊天`, `保持前缀检查`
**Since 1.4.0** 修改经济检查逻辑,仅在聊天开始前检查是否余额
**Since 1.4.1** 添加绑定预设的引用 `~`
**Since 1.4.1** 添加绑定预设的引用 `~`
**Since 1.5.0** 添加控制 `cname` 功能的配置,用法:在 `Java` 启动参数中添加 `-Dxyz.cssxsh.openai.cname=false`

## 效果

Expand Down Expand Up @@ -131,8 +132,9 @@ OpenAI 目前对注册有一定要求,请先阅读 [注册](#注册), 然后

有些人也将其形容为 `人格`, 实际上这个功能是告诉机器人你需要扮演什么角色或者提供什么功能

配置方法, 在插件数据目录 `data/xyz.cssxsh.mirai.plugin.mirai-openai-plugin` 下新建 `XXX.txt`
然后填入你需要预置的内容
配置方法, 在插件数据目录 `data/xyz.cssxsh.mirai.plugin.mirai-openai-plugin/prompts` 下新建 `XXX.txt`
然后填入你需要预置的内容
**Since 1.5** 将会从 <https://chathub.gg/api/community-prompts> 加载第三方语境, 同时以 `#<充当 Linux 终端>` 的格式兼容空格

使用方法,在 `chat` 后面附加 `#XXX`, 例如 `chat #猫娘`
或者使用 `bind` 为当前用户绑定一个默认 `prompt`, 例如 `bind 猫娘`
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "xyz.cssxsh.mirai"
version = "1.4.2"
version = "1.5.0"

mavenCentralPublish {
useCentralS01()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public object MiraiOpenAiPlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.mirai-openai-plugin",
name = "mirai-openai-plugin",
version = "1.4.2",
version = "1.5.0",
) {
author("cssxsh")

Expand Down

0 comments on commit de8674f

Please sign in to comment.