Skip to content

fix(models): mark MiniMax M3 vision-capable - #226

Open
octo-patch wants to merge 1 commit into
BlockRunAI:mainfrom
octo-patch:octo/20260728-input-capability-recvpvx9rPhM9i
Open

fix(models): mark MiniMax M3 vision-capable#226
octo-patch wants to merge 1 commit into
BlockRunAI:mainfrom
octo-patch:octo/20260728-input-capability-recvpvx9rPhM9i

Conversation

@octo-patch

@octo-patch octo-patch commented Jul 28, 2026

Copy link
Copy Markdown

Reason: MiniMax M3 is registered without the vision flag, so ClawRouter's existing image_url detection and vision-filter path exclude it even though the target metadata supports text, image, and video input.

Changes

  • Add vision: true to the minimax/minimax-m3 entry in src/models.ts so supportsVision() returns true and filterByVision() keeps M3 in the candidate pool for requests that carry image_url content parts.
  • Add a regression test in src/models.test.ts asserting M3 is vision-capable and M2.7 (text-only upstream) is not.

M2.7 is intentionally left without the flag; only M3 carries text+image+video input in the target metadata.

Checks

  • npx tsc --noEmit
  • npx vitest run src/models.test.ts
  • npx prettier --check src/models.ts src/models.test.ts
  • npx eslint src/models.ts src/models.test.ts

Summary by CodeRabbit

  • New Features
    • Added vision support for the MiniMax M3 model, enabling image-based requests.
  • Bug Fixes
    • Corrected model capability detection so MiniMax M3 accepts image inputs while MiniMax M2.7 remains text-only.

The target metadata lists text, image, and video input for MiniMax M3,
but the model was registered without the vision flag. ClawRouter's
image_url detection and filterByVision path therefore excluded M3 from
the candidate pool whenever a request carried an image_url content
part. Add vision: true so image requests reach the model. M2.7 stays
text-only and is left unchanged.
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ef250c58-efbb-4a84-8388-a8fd2b9f8dbf

📥 Commits

Reviewing files that changed from the base of the PR and between 22bdfbb and d64bddd.

📒 Files selected for processing (2)
  • src/models.test.ts
  • src/models.ts
 ________________________________________
< My other transformer is Optimus Prime. >
 ----------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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