Skip to content

Request exceeds the context window of the model. — Codex

Quick fix

No verified solution was provided in the original post; this issue was closed as a duplicate related to catalog configuration and automatic compression.

Error output
Request exceeds the context window of the model.

The report states that, during a long conversation, Codex used deepseek-v4-flash from OpenCode Go 2 through the local CC Switch proxy. The upstream returned HTTP 400, then repeatedly retried the same over-limit request and caused the conversation to hang.

The report attributes the problem to a mismatch between the generated catalog's `context_window` and `truncation_policy.limit` and the upstream's actual context window, plus automatic context compression not triggering. The maintainer stated that the core issue was tracked elsewhere and closed this report as a duplicate. The original post did not provide a verified solution.

  1. No verified solution is available in the original post; see the discussion in #5110, and reopen this issue with the differences if an independent provider catalog overstatement or context compression problem can still be confirmed.

ToolCodex
Version3.16.x(报告的受影响版本)
PlatformsWindows

(No FAQ yet)

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.