Skip to content

feat(minimax): add MiniMax provider support (closes #2260) - #2282

Closed
ennajari wants to merge 7 commits into
567-labs:mainfrom
ennajari:feat/minimax-provider
Closed

feat(minimax): add MiniMax provider support (closes #2260)#2282
ennajari wants to merge 7 commits into
567-labs:mainfrom
ennajari:feat/minimax-provider

Conversation

@ennajari

Copy link
Copy Markdown

Summary

  • Add from_minimax() factory and from_provider("minimax/...") support targeting MiniMax's OpenAI-compatible chat completions API (https://api.minimax.chat/v1), with MINIMAX_API_KEY environment-variable fallback.
  • Introduce Mode.MINIMAX_TOOLS (default) and Mode.MINIMAX_JSON, with matching response/reask handlers wired into the central dispatchers (processing/response.py, processing/function_calls.py) and streaming mode sets (dsl/iterable.py, dsl/partial.py).
  • Register Provider.MINIMAX, base-URL detection in get_provider, known MiniMax model names in models.py, and an auto_client handler so from_provider("minimax/MiniMax-Text-01") works end-to-end.
  • Add an integration doc, a cookbook example, a CHANGELOG.md entry, and 18 unit tests that mock the OpenAI client so no live API calls are made.

Closes #2260.

Test plan

  • ruff check instructor tests/llm/test_minimax.py examples/minimax_example.py — all checks passed
  • ruff format --check clean on new files
  • pytest tests/llm/test_minimax.py -v — 18/18 passed
  • pytest tests/dsl/ tests/test_xai_optional_dependency.py -k "not llm and not openai" — still green
  • from_provider("minimax/MiniMax-Text-01", api_key="...") returns an Instructor with Provider.MINIMAX and Mode.MINIMAX_TOOLS
  • get_provider("https://api.minimax.chat/v1") resolves to Provider.MINIMAX

jxnl commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the provider contribution. This overlaps with the newer MiniMax provider PR #2306, so I am marking this one as duplicate to keep review focused in a single place.

@jxnl jxnl added the duplicate This issue or pull request already exists label Jun 2, 2026 — with ChatGPT Codex Connector
@jxnl jxnl closed this Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add MiniMax provider support

2 participants