fix(calllog): 翻译键移回顶层 + 内容上限 2000→8000

- calllogs.* 的 i18n 段此前被插进 upload 段内部,导致新面板全部显示原始键名;
  已移到 logs 之后作为顶层键,zh/en 结构复核一致
- 请求体摘要 raw[:2000]→8000、回复文本 _logsafe(...,2000)→8000(5 处),
  实测 6000 字提示词可完整落库
This commit is contained in:
jidekin committed 2026-10-23 11:24:19 +08:00
1 parent 09b79c1306
commit bb4c9281f7
4 files changed
+71 -66

No files matched your search

+29 -30
View File
@@ -203,6 +203,34 @@ export default {
streaming: 'Streaming',
loadErr: 'Failed to load logs',
},
calllogs: {
title: 'Call log (persisted)',
count: '{n} rows',
failN: '{n} failed',
avgMs: 'avg {n}ms',
startDate: 'Start',
endDate: 'End',
account: 'Account',
model: 'Model',
result: 'Result',
onlyOk: 'OK only',
onlyFail: 'Failed only',
keyword: 'Keyword (content/rid/IP/UA)',
colTime: 'Time',
colAccount: 'Account',
colModel: 'Model',
colLatency: 'Latency',
colStatus: 'Status',
colStream: 'Stream',
colUa: 'UA',
yes: 'yes',
no: 'no',
detailTitle: 'Call detail',
prompt: 'Prompt (request body, truncated)',
completion: 'Completion (truncated)',
loading: 'Loading…',
},
users: {
viewLogs: 'View logs',
viewActivity: 'Activity',
@@ -819,34 +847,5 @@ export default {
errNotAudio: '{name} is not an audio file (supported: {ext})',
errAudioTooBig: '{name} is {size}, over the reference-audio limit of {max} (please trim or compress it)',
errBodyBudget: 'This request body is about {size}, over the gateway upload limit (~{max}).',
errBodyBudgetTip: 'Please use fewer materials, or smaller images/audio files.',
calllogs: {
title: 'Call log (persisted)',
count: '{n} rows',
failN: '{n} failed',
avgMs: 'avg {n}ms',
startDate: 'Start',
endDate: 'End',
account: 'Account',
model: 'Model',
result: 'Result',
onlyOk: 'OK only',
onlyFail: 'Failed only',
keyword: 'Keyword (content/rid/IP/UA)',
colTime: 'Time',
colAccount: 'Account',
colModel: 'Model',
colLatency: 'Latency',
colStatus: 'Status',
colStream: 'Stream',
colUa: 'UA',
yes: 'yes',
no: 'no',
detailTitle: 'Call detail',
prompt: 'Prompt (request body, truncated)',
completion: 'Completion (truncated)',
loading: 'Loading…',
},
},
errBodyBudgetTip: 'Please use fewer materials, or smaller images/audio files.', },
}