Skip to content

feat(minimax): add MiniMax-M3 video input capability to model cost map - #34904

Closed
octo-patch wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
octo-patch:octo/20260728-input-capability-recvppCbdQOiBf
Closed

octo-patch wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
octo-patch:octo/20260728-input-capability-recvppCbdQOiBf

Conversation

@octo-patch

Copy link
Copy Markdown

Reason: minimax/MiniMax-M3 is documented for text, image, and video input, but the model cost map only advertised image input via supports_vision and omitted the supports_video_input capability.

Changes

  • Set supports_video_input: true on the minimax/MiniMax-M3 entry in model_prices_and_context_window.json.
  • Set supports_video_input: true on the minimax/MiniMax-M3 entry in litellm/model_prices_and_context_window_backup.json (the bundled backup cost map) so the shipped package advertises the same capability.

Both cost map files are kept in sync, matching the existing supports_vision: true flag that already advertised image input for this model.

Tests

  • Added TestMiniMaxM3InputCapabilities in tests/test_litellm/llms/minimax/chat/test_transformation.py covering: model presence in the cost map, supports_vision, supports_video_input, and provider assignment.

Checks

  • python3 -m pytest tests/test_litellm/llms/minimax/chat/test_transformation.py -x -q -> 8 passed, 4 skipped.
  • python3 -m pytest tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py -k minimax_m3 -x -q -> 1 passed.
  • jq empty model_prices_and_context_window.json and jq empty litellm/model_prices_and_context_window_backup.json -> valid JSON.

Mark minimax/MiniMax-M3 with supports_video_input=true in both the
bundled backup cost map and the root cost map so the documented video
input modality is advertised alongside the existing supports_vision
flag. Add regression tests covering the capability and provider.
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps

greptile-apps Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds MiniMax-M3 video-input capability metadata consistently across both model cost maps.

  • Marks minimax/MiniMax-M3 as supporting video input in the primary and bundled backup maps.
  • Adds focused tests for the model’s presence, input capabilities, and provider assignment.

Confidence Score: 5/5

The PR appears safe to merge, with both model cost maps synchronized and focused tests covering the added capability metadata.

The change consistently adds the same capability flag to the primary and bundled maps, and the added tests validate the bundled metadata without introducing network dependencies or weakening existing coverage.

Important Files Changed

Filename Overview
model_prices_and_context_window.json Adds the MiniMax-M3 video-input capability to the primary model cost map without changing unrelated metadata.
litellm/model_prices_and_context_window_backup.json Mirrors the capability flag in the bundled fallback map, keeping local and remote metadata consistent.
tests/test_litellm/llms/minimax/chat/test_transformation.py Adds local cost-map assertions covering MiniMax-M3 presence, image and video capabilities, and provider assignment.

Reviews (1): Last reviewed commit: "feat(minimax): add MiniMax-M3 video inpu..." | Re-trigger Greptile

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing octo-patch:octo/20260728-input-capability-recvppCbdQOiBf (4835fc6) with litellm_internal_staging (daf22ec)

Open in CodSpeed

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level

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.

2 participants