mirror of
https://github.com/jie65535/JChatGPT.git
synced 2026-05-04 22:33:35 +08:00
Add context cache
This commit is contained in:
@@ -66,4 +66,10 @@ object PluginCommands : CompositeCommand(
|
||||
PluginData.userFavorability.clear()
|
||||
sendMessage("OK")
|
||||
}
|
||||
|
||||
@SubCommand
|
||||
suspend fun CommandSender.clearContextCache() {
|
||||
JChatGPT.clearContextCache()
|
||||
sendMessage("已清空所有对话上下文缓存")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user