Skip to content

feat: add MiniMax provider support for deep-analysis mode#3

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

feat: add MiniMax provider support for deep-analysis mode#3
octo-patch wants to merge 1 commit into
joeseesun:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

  • Add minimax_provider.py with an OpenAI-compatible client targeting the MiniMax API (international endpoint https://api.minimax.io/v1)
  • Support MiniMax-M2.7 (default) and MiniMax-M2.7-highspeed as analysis models
  • Add --provider minimax flag to main.py so users can run deep-analysis using MiniMax instead of NotebookLM
  • Add optional --model flag for model selection
  • Add openai>=1.0.0 to requirements.txt
  • Add 17 unit tests in tests/test_minimax_provider.py (all passing)

Usage

# Set API key
export MINIMAX_API_KEY=your_key_here

# Deep-analysis using MiniMax-M2.7 (no NotebookLM auth required)
python main.py /path/to/file.epub --deep-analysis --provider minimax

# Use the faster model
python main.py /path/to/file.md --deep-analysis --provider minimax --model MiniMax-M2.7-highspeed

API References

Implementation Notes

  • Temperature is fixed at 1.0 per MiniMax API constraints (range: (0.0, 1.0])
  • Content is truncated to 50 000 characters when passed as context
  • The default NotebookLM workflow is unchanged; --provider minimax opts into the new path

- Add minimax_provider.py with OpenAI-compatible client targeting MiniMax API
- Support MiniMax-M2.7 (default) and MiniMax-M2.7-highspeed models
- Add --provider minimax flag to main.py for content analysis via MiniMax
- Add --model flag for model selection (default: MiniMax-M2.7)
- Add openai>=1.0.0 to requirements.txt
- Add 17 unit tests in tests/test_minimax_provider.py
- Temperature fixed at 1.0 per MiniMax API constraints
- Base URL: https://api.minimax.io/v1 (international endpoint)
- API key via MINIMAX_API_KEY environment variable
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