Skip to content

feat: add MiniMax as alternative backend provider#109

Open
octo-patch wants to merge 1 commit intostulzq:masterfrom
octo-patch:feature/add-minimax-provider
Open

feat: add MiniMax as alternative backend provider#109
octo-patch wants to merge 1 commit intostulzq:masterfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

  • Add MiniMax as an alternative backend provider alongside Azure OpenAI
  • MiniMax provides an OpenAI-compatible API, so the proxy can seamlessly route requests to either Azure or MiniMax based on provider_type configuration
  • Support for MiniMax-M2.7, MiniMax-M2.5, and MiniMax-M2.5-highspeed models

Changes

  • azure/model.go: Add ProviderType field to DeploymentConfig; add MiniMaxConverter implementing RequestConverter for MiniMax API routing (Bearer auth, no api-version param)
  • azure/init.go: Add InitMiniMaxFromEnv() for MINIMAX_API_KEY/MINIMAX_ENDPOINT/MINIMAX_MODEL_MAPPER environment variable support with default model registration
  • azure/proxy.go: Auto-select converter based on provider_type; update ModelProxy() to return static MiniMax model info alongside Azure deployments
  • constant/env.go: Add MiniMax environment variable constants
  • README.md: Document MiniMax configuration (env vars, Docker, config file, mixed Azure+MiniMax setup)

Test Plan

  • 9 unit tests: converter name, path preservation, auth handling, streaming, custom endpoint, deployment config, backward compatibility
  • 3 integration tests with mock HTTP servers: chat completions proxy, model list, streaming proxy
  • All 12 tests pass
  • Verify backward compatibility: existing Azure-only configurations work unchanged

Add support for MiniMax cloud models (MiniMax-M2.7, MiniMax-M2.5,
MiniMax-M2.5-highspeed) as an alternative backend alongside Azure OpenAI.

MiniMax provides an OpenAI-compatible API at https://api.minimax.io/v1,
so the proxy can seamlessly route requests to either Azure or MiniMax
based on the provider_type configuration.

Changes:
- Add MiniMaxConverter implementing RequestConverter for MiniMax API routing
- Add ProviderType field to DeploymentConfig for provider discrimination
- Add MINIMAX_API_KEY/MINIMAX_ENDPOINT/MINIMAX_MODEL_MAPPER env var support
- Update ModelProxy to return static MiniMax model info alongside Azure models
- Update Proxy to auto-select converter based on provider type
- Add 9 unit tests and 3 integration tests with mock servers
- Update README with MiniMax configuration documentation
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