Skip to content

feat: add MiniMax LLM provider support#142

Closed
itsarbit wants to merge 5 commits into
mainfrom
feat/minimax-provider-resolved
Closed

feat: add MiniMax LLM provider support#142
itsarbit wants to merge 5 commits into
mainfrom
feat/minimax-provider-resolved

Conversation

@itsarbit

Copy link
Copy Markdown
Contributor

Resolved merge conflicts from #96 (by @octo-patch) against current main.

Original PR: #96
Changes: MiniMax LLM provider, factory registration, UI dropdown, 26 tests.

Closes #96

PR Bot and others added 5 commits March 14, 2026 13:15
- Add MiniMax LLM provider using OpenAI-compatible Chat Completions API
- Support MiniMax-M2.5 and MiniMax-M2.5-highspeed models
- Handle temperature constraint (0.0, 1.0] with automatic clamping
- Implement structured output via prompt engineering + JSON parsing
- Register provider in LLM factory with provider name "minimax"
- Add unit tests for MiniMax provider
- Update README with MiniMax provider documentation
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to UI model selector
- Add minimax to providers list and env hints in frontend
- Update test references from M2.5 to M2.7
- Keep all previous models as alternatives

Co-Authored-By: Octopus <liyuan851277048@icloud.com>
…default

Address review feedback:
- Use response_format: {"type": "json_object"} for structured output instead
  of relying solely on prompt engineering. MiniMax supports this via their
  OpenAI-compatible API.
- Only include temperature in API calls when explicitly set by the user,
  matching the behavior of the OpenAI and Anthropic providers. Remove the
  hardcoded 1.0 default.
- Add null check for response content in both call() and call_async()
  to raise a clear ValueError instead of surfacing confusing downstream
  errors when MiniMax returns no content
- Add logger.warning when temperature is clamped to (0.01, 1.0] range
  so users are aware their value was adjusted
- Add tests for both changes (4 new test cases)

Addresses review feedback from @itsarbit.
@itsarbit itsarbit requested a review from a team as a code owner April 10, 2026 14:27
@itsarbit itsarbit closed this Apr 10, 2026
@itsarbit itsarbit deleted the feat/minimax-provider-resolved branch April 10, 2026 14:28
@codecov

codecov Bot commented Apr 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants