@cssxsh 还有一个问题,聊天,gpt-3.5-turbo-0301:
2023-03-03 15:05:54 V/Bot.*: Group(*) <- [mirai:quote:[mirai:source:ids=[2519], internalIds=[167958381], from group * to * at 1677827153], content=/lc]聊天将开始
2023-03-03 15:05:56 V/Bot.*: [*(*)] aaa(*) -> 你好
2023-03-03 15:05:57 W/MiraiOpenAiListener: MiraiOpenAiListener with GroupMessageEvent(group=*, senderName=aaa, sender=*, permission=OWNER, message=[mirai:source:ids=[2519], internalIds=[167958381], from group * to * at *]/lc)
java.lang.IllegalArgumentException: message is empty
at net.mamoe.mirai.internal.contact.AbstractUserKt.sendMessageImpl(AbstractUser.kt:258)
at net.mamoe.mirai.internal.contact.CommonGroupImpl.sendMessage$suspendImpl(GroupImpl.kt:219)
at net.mamoe.mirai.internal.contact.CommonGroupImpl.sendMessage(GroupImpl.kt)
at mirai-openai-plugin-1.2.0.mirai2.jar//xyz.cssxsh.mirai.openai.MiraiOpenAiListener$chat$4$2.invokeSuspend(MiraiOpenAiListener.kt:206)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
2023-03-03 15:05:57 V/Bot.*: Group(*) <- [mirai:quote:[mirai:source:ids=[2519], internalIds=[167958381], from group * to * at *], content=/lc]聊天已终止