Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

feat: add MiniMax LLM provider support (M2.7 default)#1348

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

feat: add MiniMax LLM provider support (M2.7 default)#1348
octo-patch wants to merge 2 commits into
AntonOsika:mainfrom
octo-patch:feat/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

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

Summary

Add MiniMax as a first-class LLM provider for gpt-engineer, with MiniMax-M2.7 as the default model.

Changes

  • Add MiniMax provider via OpenAI-compatible API (ChatOpenAI)
  • Support MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, MiniMax-M2.5-highspeed models
  • Set MiniMax-M2.7 as the recommended default model
  • Auto-detect MINIMAX_API_KEY with configurable MINIMAX_API_BASE
  • Temperature clamping (min 0.01) for MiniMax API compatibility
  • Unit tests for model creation, temperature constraint, and missing API key

Why

MiniMax-M2.7 is the latest flagship model with enhanced reasoning and coding capabilities, offering a strong alternative to existing providers.

Testing

  • Unit tests updated and passing (6/6)
  • Integration tested with MiniMax API

PR Bot added 2 commits March 13, 2026 21:21
Add MiniMax as a supported LLM provider alongside OpenAI and Anthropic.
MiniMax models (MiniMax-M2.5, MiniMax-M2.5-highspeed) are accessed via
their OpenAI-compatible API with automatic temperature clamping to
satisfy MiniMax's (0.0, 1.0] constraint.

Changes:
- Add MiniMax model detection and ChatOpenAI configuration in AI class
- Load MINIMAX_API_KEY from environment/.env files
- Add is_minimax_model() helper for token usage tracking
- Add unit tests for MiniMax model creation, temperature constraint,
  and missing API key validation
- Update README with MiniMax setup instructions and model details
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list
- Set MiniMax-M2.7 as default model in README example
- Keep all previous models (M2.5, M2.5-highspeed) as alternatives
- Update related unit tests to use M2.7
@octo-patch octo-patch force-pushed the feat/add-minimax-provider branch from 9412063 to 7ed9f7c Compare March 18, 2026 09:43
@octo-patch octo-patch changed the title feat: add MiniMax LLM provider support feat: add MiniMax LLM provider support (M2.7 default) Mar 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant