Skip to content

Add MiniMax as LLM provider via OpenAI-compatible API#4095

Open
octo-patch wants to merge 1 commit intomicrosoft:mainfrom
octo-patch:feature/add-minimax-provider
Open

Add MiniMax as LLM provider via OpenAI-compatible API#4095
octo-patch wants to merge 1 commit intomicrosoft:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link

Summary

  • Add MiniMax as an LLM provider for Promptflow via the existing OpenAI-compatible connection
  • MiniMax offers M2.5 and M2.5-highspeed models with 204K context window through an OpenAI-compatible API (https://api.minimax.io/v1)
  • No core code changes required — leverages existing OpenAIConnection with base_url parameter

Changes

File Description
examples/connections/minimax.yml Connection config using OpenAI connection type
examples/flex-flows/chat-with-minimax/ Complete flex-flow chat example (flow.py, chat.prompty, flow.flex.yaml, data.jsonl, requirements.txt, README)
docs/integrations/llms/minimax.md Integration documentation with setup instructions
docs/integrations/llms/index.md Added minimax to toctree
tests/minimax/ 29 unit tests + 6 integration tests

Key implementation details

  • Temperature clamping to MiniMax's supported range [0.0, 1.0]
  • get_minimax_config() helper for easy model configuration
  • Works with both OpenAIConnection and OpenAIModelConfiguration

Test plan

  • 29 unit tests pass (constants, temperature clamping, config helpers, YAML validation, docs checks)
  • 6 integration tests pass with live MiniMax API (chat completion, streaming, connection compat, flow e2e)
  • Manual: Create minimax connection and run the chat-with-minimax example flow

MiniMax (https://www.minimaxi.com) offers M2.5 and M2.5-highspeed models
with 204K context through an OpenAI-compatible API. This PR adds:

- Connection config example (examples/connections/minimax.yml)
- Flex-flow chat example with temperature clamping (examples/flex-flows/chat-with-minimax/)
- Integration documentation (docs/integrations/llms/minimax.md)
- 29 unit tests + 6 integration tests (tests/minimax/)

No core code changes — leverages existing OpenAIConnection base_url support.
@octo-patch octo-patch requested a review from a team as a code owner March 17, 2026 15:17
@github-actions github-actions bot added documentation Improvements or additions to documentation examples Improvements on examples external labels Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation examples Improvements on examples external

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant