Skip to content

fix(context): resolve MiniMax model context windows - #27

Open
octo-patch wants to merge 1 commit into
ChinaSiro:mainfrom
octo-patch:octo/20260804-parameter-refresh-recvredDdK62cl
Open

fix(context): resolve MiniMax model context windows#27
octo-patch wants to merge 1 commit into
ChinaSiro:mainfrom
octo-patch:octo/20260804-parameter-refresh-recvredDdK62cl

Conversation

@octo-patch

Copy link
Copy Markdown

Reason: Refresh context window parameters for the MiniMax models so auto-compact thresholds and token warnings use the real model windows instead of the 200K default.

Changes

  • getContextWindowForModel now resolves the MiniMax model context windows (MiniMax-M3: 1,000,000 tokens; MiniMax-M2.7: 204,800 tokens) before falling back to the default window, so auto-compact thresholds and token warnings compute the correct window.
  • modelSupports1M now recognizes MiniMax-M3, keeping 1M context detection consistent for that model.
  • The is1mContextDisabled cap is honored for MiniMax windows larger than the default, matching the existing capability-based path.

Checks

  • git diff --check
  • node --experimental-strip-types --check restored-src/src/utils/context.ts
  • Secret scan over the diff
  • Self-contained verification of the window matching (MiniMax-M3 -> 1,000,000, MiniMax-M2.7 -> 204,800, other models unchanged)

Add MiniMax-M3 (1,000,000) and MiniMax-M2.7 (204,800) context windows to
getContextWindowForModel so auto-compact thresholds and token warnings use
the real window instead of the 200K default, and mark MiniMax-M3 as 1M
capable in modelSupports1M.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant