Skip to content

会话记录超大,导致会话记录无法被保存 #4977

Open
@pkusub

Description

@pkusub

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: 4.9.10

问题描述, 日志截图,配置文件等
[Error] 2025-06-07 06:12:29 update chat history error

{

message: 'Document is larger than the maximum size 16777216',

stack: 'MongoInvalidArgumentError: Document is larger than the maximum size 16777216\n' +

'    at s.addToOperationsList (/app/projects/app/.next/server/chunks/71879.js:1:92471)\n' +

'    at s.raw (/app/projects/app/.next/server/chunks/71879.js:1:88412)\n' +

'    at o.execute (/app/projects/app/.next/server/chunks/71879.js:5:13375)\n' +

'    at h.execute (/app/projects/app/.next/server/chunks/71879.js:5:49109)\n' +

'    at d (/app/projects/app/.next/server/chunks/71879.js:5:37610)\n' +

'    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +

'    at async h (/app/projects/app/.next/server/chunks/71879.js:5:35578)\n' +

'    at async $.insertMany (/app/projects/app/.next/server/chunks/71879.js:4:104696)'

}

Load model====== system_logs

因为要处理大量的文档,中间处理过程很多,有提取、聚合等,结果输出的聊天对话不能被保存

预期结果
希望可以正常保存会话记录
相关截图
刷新就会话记录就消失了

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions