feat: 添加分页功能和缓存管理,优化问答记录展示
This commit is contained in:
@@ -73,10 +73,6 @@ export const serverEnv = {
|
||||
maxTokens: readInteger("MAX_TOKENS", 500),
|
||||
/** 模型采样温度,越低越稳定 */
|
||||
temperature: readNumber("TEMPERATURE", 0.7),
|
||||
/** 是否启用内存缓存 */
|
||||
enableCache: readBoolean("ENABLE_CACHE", true),
|
||||
/** 缓存过期时间,单位秒 */
|
||||
cacheExpiration: readInteger("CACHE_EXPIRATION", 86_400),
|
||||
/** 预留日志级别配置,目前日志工具只负责安全输出 */
|
||||
logLevel: readString("LOG_LEVEL", "INFO"),
|
||||
/** 单行 SSE data 的最大字节数,用于防止异常流无限堆内存 */
|
||||
|
||||
Reference in New Issue
Block a user