You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to compact session: Validation error: Session must be idle before manual compaction: AI provider error: Model request failed after 1 attempts: OpenAI Streaming API client error 413 Payload Too Large: {"error":{"message":" (request id: 2026112420434332351684979683196)","type":"upstream_error","param":"413","code":"bad_response_status_code"}}
changed the title [-][Bug]: Failed to compact session: Validation error:[/-][+][Bug]: Failed to compact session: Validation error 严重错误[/+]on Nov 25, 2026
changed the title [-][Bug]: Failed to compact session: Validation error 严重错误[/-][+][Bug]: OpenAI Streaming API client error 413 Payload Too Large 严重错误[/+]on Nov 25, 2026
changed the title [-][Bug]: OpenAI Streaming API client error 413 Payload Too Large 严重错误[/-][+][Bug]: 413 Request Entity Too Large 严重错误[/+]on Nov 25, 2026
Activity
litterbug23 commentedon Nov 25, 2026
litterbug23 commentedon Nov 25, 2026
最近总是弹出这个对话框,初步分析是我在对话中经常会截图并对截图分析

一般请求要求读文件时会发生;或者内容里面有文件链接,agent要弄清楚链接内容,也会读取。在CC产品级agent,自己会保护,如果这条路不通,会尝试切割或者grep关键内容或者读前几行。但是在OpenBitfun中没有考虑到这种情况,可能每次都把截图带入请求,导致请求体超过大小。
在后台网关分析,请求体超过了5M,一次请求超过了5MB导致的网关触发保护模型。导致请求失败。碰到了输入大小保护,200KB,是上下文token,不是传统的理解大小,当工具调用时,如果都取是很大文件,会被拦截。
这里应该是OpenBitfun的处理逻辑存在问题。
[-][Bug]: Failed to compact session: Validation error:[/-][+][Bug]: Failed to compact session: Validation error 严重错误[/+][-][Bug]: Failed to compact session: Validation error 严重错误[/-][+][Bug]: OpenAI Streaming API client error 413 Payload Too Large 严重错误[/+][-][Bug]: OpenAI Streaming API client error 413 Payload Too Large 严重错误[/-][+][Bug]: 413 Request Entity Too Large 严重错误[/+]litterbug23 commentedon Nov 25, 2026
Agent 多轮会话持续携带历史图像(base64),每一轮请求体不断累积膨胀,最终触发
413 Request Entity Too Large(Payload 过大)。这个问题在多轮视觉 Agent、MCP / 工具调用场景非常典型:图像二进制数据体积远大于文本,反复透传会快速打满服务端限制(常见上限 1~10MB)。
litterbug23 commentedon Nov 25, 2026
Agent 多轮会话持续携带历史图像(base64),每一轮请求体不断累积膨胀,最终触发
413 Request Entity Too Large(Payload 过大)。这个问题在多轮视觉 Agent、MCP / 工具调用场景非常典型:图像二进制数据体积远大于文本,反复透传会快速打满服务端限制(常见上限 1~10MB)。
核心解决思路(分层方案,从快到稳)
方案 1:本地缓存图像,请求只传引用(推荐工程方案)
不在每轮消息里塞 base64 原图,改成:
img_001litterbug23 commentedon Nov 25, 2026
这个问题应该在已经解决了,我今天测试一下
#4032