Skip to content

feat: add MiniMax provider support#58

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

feat: add MiniMax provider support#58
octo-patch wants to merge 1 commit intorepowise-dev:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

  • Add MiniMaxProvider using MiniMax's Anthropic-compatible API (https://api.minimax.io/anthropic)
  • Support models: MiniMax-M2.7 (default) and MiniMax-M2.7-highspeed
  • Register MiniMax in the provider registry, rate limiter defaults, and server provider catalog
  • Add MINIMAX_API_KEY environment variable support (also respects MINIMAX_BASE_URL override)
  • Implement temperature clamping to (0.0, 1.0] as required by the MiniMax API
  • Handle ThinkingBlock in responses by extracting the first text type content block
  • Add 19 unit tests and 2 live integration tests

API Reference

Test plan

  • Unit tests: uv run pytest tests/providers/test_minimax_provider.py tests/providers/test_registry.py -v — 34 passed
  • Integration tests: MINIMAX_API_KEY=... uv run pytest tests/integration/test_provider_live.py -k minimax -v — 2 passed

- Add MiniMax chat model provider using Anthropic-compatible API
- Add MINIMAX_API_KEY environment variable support
- Register MiniMax in provider registry, rate limiter, and server catalog
- Add models: MiniMax-M2.7 (default) and MiniMax-M2.7-highspeed
- Add unit tests and live integration tests
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