Skip to content

Commit

Permalink
build: 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Apr 19, 2023
1 parent f90f2c5 commit 70060c8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.5.1 (23/04/19)

1. feat: handle OpenAiException
2. feat: config show_exception

## 1.5.0 (23/04/11)

1. fix: Empty to ...
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.5.0"
version = "1.5.1"

mavenCentralPublish {
useCentralS01()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ internal object MiraiOpenAiListener : SimpleListenerHost() {

event.subject.sendMessage(buildMessageChain {
add(event.message.quote())
append("Usage: ").append(completion.usage.totalTokens.toString())
append("Usage: ").append(completion.usage.totalTokens.toString()).append('\n')
for (choice in completion.choices) {
append("Choice.").append(choice.index.toString()).append(" FinishReason: ").append(choice.finishReason)
if (choice.text.firstOrNull() != '\n') append('\n')
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.5.0",
version = "1.5.1",
) {
author("cssxsh")

Expand Down

0 comments on commit 70060c8

Please sign in to comment.