feat(logs): 详情彻底不截断(捕获 4MiB / 入库 8MiB)+ 实时页按需取全文
- 请求体捕获上限 128KiB → 4MiB(CALLLOG_BODY_MAX);在途缓存条数 128 → 64 控内存
- 入库上限 256KiB → 8MiB(CALLLOG_CONTENT_MAX)
- 新增 GET /logs/entry/{id}:本人或管理员可取该条完整提示词/回复(实时页展开时调用)
- 实时列表仍给 8KB 预览 + body_len/resp_len,展开替换为全文并显示「完整 N 字」
- 实测 285KiB 提示词完整落库与返回
- 版本 2.9.11 → 2.9.12
This commit is contained in:
1 parent
f864dd33b5
commit
8e346161a6
6 files changed
+98
-12
No files matched your search
@@ -209,6 +209,8 @@ export default {
|
||||
tokReasoning: 'reasoning',
|
||||
cacheHit: 'cache hit',
|
||||
cacheHint: 'Cache misses are normal for the first request, short prompts, or changed prefixes',
|
||||
loadingFull: 'Loading full content…',
|
||||
fullLen: '{n} chars total',
|
||||
},
|
||||
calllogs: {
|
||||
title: 'Call log (persisted)',
|
||||
|
||||
@@ -209,6 +209,8 @@ export default {
|
||||
tokReasoning: '推理',
|
||||
cacheHit: '缓存命中率',
|
||||
cacheHint: '首次请求、短提示词、或前缀有变化时,上游不会命中缓存,命中率为 0 属正常',
|
||||
loadingFull: '正在加载完整内容…',
|
||||
fullLen: '完整 {n} 字',
|
||||
},
|
||||
calllogs: {
|
||||
title: '调用日志(持久化)',
|
||||
|
||||
Reference in new issue
Block a user