Skip to content

Add MiniMax Flash and M3 provider support - #2

Open
octo-patch wants to merge 4 commits into
OpenBMB:mainfrom
octo-patch:octo/20260801-provider-add-recvqd5qFyBqtK
Open

octo-patch wants to merge 4 commits into
OpenBMB:mainfrom
octo-patch:octo/20260801-provider-add-recvqd5qFyBqtK

Conversation

@octo-patch

@octo-patch octo-patch commented Aug 1, 2026 •

Copy link
Copy Markdown

Reason: AppCopilot needs native MiniMax selection with MiniMax-M3.1-Flash as the default and MiniMax-M3 as the other current model, while retaining screenshot input and multi-turn reasoning history.

Changes:

  • Add MiniMax provider, model, region, and compatible transport selection to the agent CLI.
  • Advertise MiniMax-M3.1-Flash first and MiniMax-M3 second; forward explicitly supplied legacy/custom model IDs unchanged for text requests.
  • Use the documented global and China endpoint presets, including the current api.minimaxi.com China endpoints.
  • Preserve screenshot input with matching JPEG bytes and media types, plus previous-step results and complete reasoning history in both compatible transports.
  • Leave thinking and effort unset to use API defaults, without sending Flash-incompatible options. Unlisted models reject image input because their image capability is unknown.

Validation:

  • Python 3.12.13 with the relevant dependencies constrained by requirements.txt, including openai==1.97.0, requests==2.32.4, and pytest==7.4.4.
  • .venv/bin/python -m pytest -q test/test_minimax_wrapper.py test/test_minimax_transport.py test/mv_test.py — 44 passed; 48 jsonschema deprecation warnings.
  • .venv/bin/python -m compileall -q wrappers run_agent.py test/test_minimax_wrapper.py test/test_minimax_transport.py — passed.
  • git diff --check — passed.
  • Offline tests capture serialized requests from the real SDK and HTTP client for both regions and transports, covering defaults, explicit current/legacy/custom models, image bytes, previous-step results, and reasoning history. CLI selection tests execute the actual parser and factory methods in isolation from device/OCR imports.

Limitations:

  • Full application/OCR dependency setup is paused by the shared resource gate; only the focused prebuilt test dependencies were installed.
  • No Android-device run, paid inference, or live regional API validation was performed.
  • The external-service/email test in test/api_test.py was not run. No lint/typecheck configuration or CI workflow is present in the repository.

API references:

@octo-patch

Copy link
Copy Markdown
Author

Added a follow-up fix so MiniMax multi-step tasks accept and forward the previous step result, with a regression test. I ran python -m pytest test/test_minimax_wrapper.py -q (5 passed), compileall, and git diff --check.

@octo-patch octo-patch changed the title Add MiniMax provider support Add MiniMax Flash and M3 provider support Oct 20, 2026
@octo-patch

Copy link
Copy Markdown
Author

I updated both China transport presets to the current api.minimaxi.com endpoints and pushed the regression assertions with the same commit. The 44 focused offline tests, compileall, and git diff --check pass.

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