Skip to content

feat: add MiniMax as first-class LLM provider#116

Open
octo-patch wants to merge 1 commit intoMiroMindAI:miroflow-1.7from
octo-patch:feature/add-minimax-provider
Open

feat: add MiniMax as first-class LLM provider#116
octo-patch wants to merge 1 commit intoMiroMindAI:miroflow-1.7from
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link

@octo-patch octo-patch commented Mar 19, 2026

Summary

Add MiniMax as a first-class LLM provider for MiroFlow, enabling users to leverage MiniMax M2.7 and M2.7-highspeed models through the OpenAI-compatible API.

Changes

  • New provider: MiniMaxClient in miroflow/llm/minimax_client.py – extends LLMClientBase using OpenAI-compatible endpoint at api.minimax.io/v1
  • Config template: config/llm/base_minimax.yaml – ready-to-use YAML config for MiniMax M2.7
  • Temperature clamping: Automatic clamping to MiniMax valid range (0.0, 1.0]
  • Tests: 28 unit tests + 3 integration tests in tests/llm/test_minimax_client.py
  • Documentation: Updated README, LLM clients overview, and contribution guide

Supported Models

Model Description
MiniMax-M2.7 Peak performance, ultimate value (default)
MiniMax-M2.7-highspeed Same performance, faster and more agile

Both models support 204,800 tokens context window.

Usage

# In your agent config
main_agent:
  llm:
    provider_class: MiniMaxClient
    model_name: MiniMax-M2.7
    api_key: ${oc.env:MINIMAX_API_KEY,???}
    base_url: ${oc.env:MINIMAX_BASE_URL,https://api.minimax.io/v1}

API Documentation

Test Plan

  • 28 unit tests covering temperature clamping, client creation, response processing, tool calls, message history
  • 3 integration tests with live MiniMax API (M2.7 + M2.7-highspeed)
  • All 31 tests passing

- Add MiniMaxClient extending LLMClientBase with OpenAI-compatible API
- Add base_minimax.yaml config template for MiniMax M2.7
- Add temperature clamping for MiniMax API constraints  
- Add 28 unit tests + 3 integration tests
- Update README and documentation with MiniMax examples
@octo-patch octo-patch force-pushed the feature/add-minimax-provider branch from 969d503 to fca17aa Compare March 19, 2026 22:25
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