EN 中文

Context Limits

模型上下文限制

Hard-coded per-model context window sizes. Unknown models get a safe 128K default.

各模型上下文窗口大小硬编码。未知模型使用 128K 安全默认值。

Model Context Window
deepseek-v4-flash1,000,000
deepseek-v4-pro1,000,000
deepseek-chat1,000,000
deepseek-reasoner1,000,000
claude-3-5-sonnet200,000
claude-sonnet-4200,000
gpt-4o128,000
gpt-4o-mini128,000
gemini-2.0-flash1,000,000
gemini-1.5-pro2,000,000
Unknown128,000

Warnings

预算警告

The TUI status bar shows usage warnings before hitting the limit:

TUI 状态栏显示使用量警告:

Warnings are passive (no popup, no picker). The TUI status bar (top-right) shows:

警告不打断对话,TUI 右上角显示:

ctx 42%          # safe zone — muted grey
⚠ ctx 63%        # > 60% — amber warning
⚠ ctx 77% — /compact soon  # > 75% — red bold

What Happens at the Limit

达到限制后的行为

See Session Management for context reduction strategies.

参见会话管理了解如何缩减上下文。

Design Notes

设计要点