出现bug glm5

[API Error: 生成数据错误: HTTP 错误!状态:400,响应:{“error”:{“message”:“Bad request!: {“routify_response”:{“trace_id”:“2141434417712567064408909d1248”,“request_id”:“4c38f6f7a2904f3ab8b424f1
00dd665f”,“success”:false,“status”:400,“error_source”:“CLIENT_ERROR”,“error_message”:“AllModelsFailed:
请求供应商服务器失败”,“error_detail”:{“error”:{“code”:“1210”,“message”:“API 调用参数有误,请检查文档。Requested token count exceeds the model’s maximum context length of 202752 tokens. You
requested a total of 213793 tokens: 148257 tokens from the input messages and 65536 tokens for the completion. Please reduce the number of tokens in the input messages or the completion to fit within
the limit.”}}}}”,“type”:“BadRequest”,“code”:“400”}} TraceID:00-001c87d4ea8a6cd1875004db4cc78e42-0feca3a757908f83-01]

得手动压缩上下文,现在glm-5不会自动压缩上下文,但是我记得之前是可以的

手动执行下/compress,尽量在上下文剩余量适中时进行,避免剩余过小执行;这块儿优化要等年后回来进行;

1 个赞

上下文爆了,我现在的做法是复杂任务让他把活给agent干,自己只调度和制定计划输出报告。这样就可以让他跑1-2小时,我就可以去干自己的事了。

1 个赞

最新版0.5.14已解决该类问题

2 个赞