Add context cache

This commit is contained in:
2026-01-06 16:49:27 +08:00
parent 6705859604
commit ec358fd852
3 changed files with 119 additions and 37 deletions

View File

@@ -66,4 +66,10 @@ object PluginCommands : CompositeCommand(
PluginData.userFavorability.clear()
sendMessage("OK")
}
@SubCommand
suspend fun CommandSender.clearContextCache() {
JChatGPT.clearContextCache()
sendMessage("已清空所有对话上下文缓存")
}
}