Skip to content

feat: add MiniMax as LLM provider#288

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

feat: add MiniMax as LLM provider#288
octo-patch wants to merge 1 commit into
ragapp:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

  • Add MiniMax as a first-class LLM provider alongside OpenAI, Gemini, Groq, Mistral, Ollama, Azure OpenAI, and T-Systems
  • MiniMax models (M2.7, M2.7-highspeed, M2.5, M2.5-highspeed) are accessible via their OpenAI-compatible API using the existing llama-index-llms-openai-like dependency
  • MiniMax supports function calling, enabling multi-agent workflows

Changes

Backend (Python):

  • MiniMaxConfig model class with MINIMAX_API_KEY env var
  • configured computed field recognizes minimax provider
  • Settings patch (patch/backend/app/settings.py) adds init_minimax() using OpenAILike with temperature clamping to MiniMax's (0, 1] range
  • Multi-agent support: MiniMax returns True for function-calling check

Frontend (TypeScript/React):

  • minimax.ts provider schema with Zod validation
  • minimax.tsx form component with API key input and model selector
  • Registered in provider index, model config schema union, and UI dispatch

Tests:

  • 22 unit tests covering config defaults, env mapping, configured check, multi-agent support, temperature clamping, and settings dispatch
  • 3 integration tests for config roundtrip, env roundtrip, and OpenAILike LLM creation

Test plan

  • All 22 unit tests pass
  • All 3 integration tests pass (with MINIMAX_API_KEY)
  • Existing test suite (test_agent_manager) passes without regressions
  • Manual: select MiniMax in Admin UI, enter API key, verify chat works

Add MiniMax AI as a first-class LLM provider alongside OpenAI, Gemini,
Groq, Mistral, Ollama, Azure OpenAI, and T-Systems. MiniMax models
(M2.7, M2.7-highspeed, M2.5, M2.5-highspeed) are accessible via
their OpenAI-compatible API using llama-index-llms-openai-like.

Changes:
- Backend: MiniMaxConfig model, configured check, settings patch with
  init_minimax() using OpenAILike + temperature clamping
- Frontend: MiniMax provider schema, form component with model selector,
  registered in provider index and model config UI
- Multi-agent: MiniMax models support function calling
- Tests: 22 unit tests + 3 integration tests covering config, env
  roundtrip, temperature clamping, and multi-agent support
- README: mention MiniMax in supported providers
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 22, 2026

⚠️ No Changeset found

Latest commit: 7ba26e1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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