Skip to content

feat: add MiniMax as LLM provider for synthetic data generation#259

Open
octo-patch wants to merge 2 commits intohitsz-ids:mainfrom
octo-patch:feature/add-minimax-provider
Open

feat: add MiniMax as LLM provider for synthetic data generation#259
octo-patch wants to merge 2 commits intohitsz-ids:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link

Summary

Add MiniMax as an alternative LLM provider for synthetic tabular data generation, complementing the existing OpenAI GPT support.

Changes

  • New SingleTableMiniMaxModel: Inherits from SingleTableGPTModel, uses MiniMax's OpenAI-compatible API
  • Supported models: MiniMax-M2.7 (default) and MiniMax-M2.7-highspeed
  • Environment variables: MINIMAX_API_KEY and MINIMAX_API_URL (defaults to https://api.minimax.io/v1)
  • Temperature clamping: Automatically clamps temperature to MiniMax's valid range (0.0, 1.0]
  • 24 unit tests + 3 integration tests
  • README update: Added MiniMax quick start section

Usage

import os
os.environ["MINIMAX_API_KEY"] = "your-key"

from sdgx.models.LLM.single_table.minimax import SingleTableMiniMaxModel

model = SingleTableMiniMaxModel()
model.fit(raw_data)
synthetic_data = model.sample(100)

Files Changed (4 files, ~360 additions)

File Description
sdgx/models/LLM/single_table/minimax.py MiniMax model implementation
sdgx/models/LLM/single_table/__init__.py Export new model
tests/models/test_singletable_minimax.py 24 unit + 3 integration tests
README.md MiniMax documentation section

API Reference

Test Plan

  • Unit tests pass (24/24)
  • Integration tests pass with real MiniMax API (3/3)
  • Existing GPT model tests unaffected
  • Temperature clamping works correctly
  • Environment variable loading works

PR Bot and others added 2 commits March 23, 2026 23:08
- Add SingleTableMiniMaxModel inheriting from SingleTableGPTModel
- Support MiniMax-M2.7 and MiniMax-M2.7-highspeed models via OpenAI-compatible API
- Add MINIMAX_API_KEY and MINIMAX_API_URL environment variable support
- Add temperature clamping for MiniMax's (0.0, 1.0] range
- Add 24 unit tests and 3 integration tests
- Update README with MiniMax quick start guide
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