Skip to content

feat: add MiniMax as a supported LLM provider with M3 as default - #815

Open
octo-patch wants to merge 3 commits into
Cinnamon:mainfrom
octo-patch:feat/add-minimax-provider
Open

feat: add MiniMax as a supported LLM provider with M3 as default#815
octo-patch wants to merge 3 commits into
Cinnamon:mainfrom
octo-patch:feat/add-minimax-provider

Conversation

@octo-patch

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

Copy link
Copy Markdown

Summary

  • Add MiniMax as a supported LLM provider via OpenAI-compatible API
  • Default model is now MiniMax-M3 (512K context, up to 128K output, image input)
  • Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed as alternatives
  • Temperature clamping and response_format removal for MiniMax API compatibility
  • Register ChatMiniMax in vendor list for UI model selection

Changes

  • libs/kotaemon/kotaemon/llms/chats/minimax.py — ChatMiniMax class extending ChatOpenAI; default MiniMax-M3
  • libs/ktem/ktem/llms/manager.py — Register ChatMiniMax as vendor
  • flowsettings.py — Default MiniMax config uses MiniMax-M3
  • .env.exampleMINIMAX_API_KEY placeholder
  • README.md — MiniMax documentation listing M3 (default), M2.7, M2.7-highspeed
  • libs/kotaemon/tests/test_llms_chat_models.py — Unit tests verifying M3 as default and M2.7 backward compatibility

Why

MiniMax-M3 is the latest flagship model, providing a 512K context window, up to 128K output, and image input via the OpenAI-compatible endpoint. Keeping M2.7 and M2.7-highspeed preserves access to the previous generation.

Testing

  • Unit tests updated and passing
  • Default model verified as MiniMax-M3
  • Backward compatibility verified for MiniMax-M2.7 and MiniMax-M2.7-highspeed
  • Temperature clamping and response_format removal still verified

PR Bot and others added 2 commits March 15, 2026 08:58
Add native support for MiniMax large language models (MiniMax-M2.5,
MiniMax-M2.5-highspeed) via their OpenAI-compatible API endpoint.

Changes:
- Add ChatMiniMax class extending ChatOpenAI with MiniMax-specific
  defaults and parameter handling (temperature clamping, response_format
  removal)
- Register ChatMiniMax in LLMManager vendors for UI model selection
- Add default MiniMax configuration in flowsettings.py
- Add MINIMAX_API_KEY to .env.example
- Add unit test for ChatMiniMax
- Update README to mention MiniMax in supported providers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list
- Set MiniMax-M2.7 as default model
- Keep all previous models as alternatives
- Update related tests
@octo-patch octo-patch changed the title feat: add MiniMax as a supported LLM provider feat: add MiniMax as a supported LLM provider with M2.7 as default Mar 18, 2026
- Add MiniMax-M3 to model list and set as default
- Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed
- Remove older models (M2.5/M2.5-highspeed)
- Update related tests
@octo-patch octo-patch changed the title feat: add MiniMax as a supported LLM provider with M2.7 as default feat: add MiniMax as a supported LLM provider with M3 as default Jun 2, 2026
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