Skip to content

Add MiniMax hosted inference adapter#1063

Open
octo-patch wants to merge 1 commit into
meta-llama:mainfrom
octo-patch:octo/20260713-minimax-provider-recvoNmc2JsgEl-reopen
Open

Add MiniMax hosted inference adapter#1063
octo-patch wants to merge 1 commit into
meta-llama:mainfrom
octo-patch:octo/20260713-minimax-provider-recvoNmc2JsgEl-reopen

Conversation

@octo-patch

Copy link
Copy Markdown

What does this PR do?

Adds a MiniMax hosted inference adapter with complete model and endpoint coverage.

Summary

  • Support MiniMax-M3 and MiniMax-M2.7.
  • Support global and China endpoints through OpenAI- and Anthropic-compatible API formats.
  • Document all four endpoint configurations and add request-capture tests for their final request paths.

Feature/Issue validation/testing

  • PYTHONPATH=src python src/tests/test_llm.py -v
  • python -m black --target-version py38 --check src/tests/test_llm.py
  • python -m black --target-version py38 --line-ranges 163-230 --check src/llama_cookbook/inference/llm.py
  • python -m py_compile src/llama_cookbook/inference/llm.py src/tests/test_llm.py
  • python -m pip check
  • git diff --check

Before submitting

  • Read the contributor guidelines.
  • Updated the documentation.
  • Added focused tests for the new adapter.

@meta-cla

meta-cla Bot commented Jul 13, 2026

Copy link
Copy Markdown

Hi @octo-patch!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla

meta-cla Bot commented Jul 14, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant