增加es归档 分布式和constants变量

This commit is contained in:
Cold
2025-12-10 18:02:31 +08:00
committed by 张斌
parent 1be0709580
commit 5e3a7f30f7
6 changed files with 186 additions and 174 deletions

View File

@@ -32,3 +32,11 @@ var ArchiveDelay = 3600
// HistoryContextLimit 读取历史对话轮数(用于新 Session 上下文注入)
var HistoryContextLimit int64 = 5
// -------------------- Stream 消费配置 --------------------
// DefaultBatchSize 批量读取消息数量(削峰填谷)
var DefaultBatchSize int64 = 200
// DefaultBlockTimeout 阻塞超时时间(毫秒)
var DefaultBlockTimeout int64 = 2000