claude code没开自动压缩上下文超限api error 400

发布时间:2026/8/6 13:44:04
claude code没开自动压缩上下文超限api error 400 API Error: 400 This models maximum context length is 1048576 tokens. However, you requested 1161291 tokens (1030219 in the messages, 131072 in the completion). Please reduce the length of the messages or completion.这个时候你需要打开聊天往上找几个对话框把最后没用的舍弃然后fork conversation from here然后就可以压缩了。