--- title: "Context Window" type: concept last_updated: 2026-04-10 --- ## Definition 模型的 Context Window 是指单次 API 请求能处理的最大 token 数量(包括输入 prompt + 历史对话 + 输出 response)。超过这个上限就会触发"Context Limit Exceeded"错误。 ## Key Facts - **DeepSeek-reasoner**: 16K tokens context window - **MiniMax-M2.7**: 200K tokens context window - 16K context 模型配合 OpenClaw safeguard 模式预留 16K tokens = 实际可用 0 tokens ## Related - [[Compaction]]: OpenClaw 通过上下文压缩管理 token 消耗 - [[Model-Fallback]]: 模型切换的触发机制 - [[Agent-Routing-Rules]]: Telegram channel 绑定特定模型的方式 ## Sources - [[养虾日记4-一次「context-limit-exceeded」错误排查-我以为是小问题-结果踩了大坑]]