mirror of
https://github.com/jie65535/JChatGPT.git
synced 2026-09-15 02:56:10 +08:00
Add context cache
This commit is contained in:
@@ -84,6 +84,12 @@ object PluginConfig : AutoSavePluginConfig("Config") {
|
||||
@ValueDescription("创建Prompt时取最多几条消息")
|
||||
val historyMessageLimit: Int by value(20)
|
||||
|
||||
@ValueDescription("启用对话上下文内存缓存,允许在短时间内保持上下文连续")
|
||||
val enableContextCache by value(true)
|
||||
|
||||
@ValueDescription("上下文缓存有效期(分钟),超过此时间未活动则重新创建上下文")
|
||||
val contextCacheTimeoutMinutes by value(10)
|
||||
|
||||
@ValueDescription("是否打印Prompt便于调试")
|
||||
val logPrompt by value(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user