Skip to content

feat: add MiniMax provider#587

Open
octo-patch wants to merge 5 commits into
dataiku:mainfrom
octo-patch:octo/add-minimax-m3
Open

feat: add MiniMax provider#587
octo-patch wants to merge 5 commits into
dataiku:mainfrom
octo-patch:octo/add-minimax-m3

Conversation

@octo-patch

@octo-patch octo-patch commented Jul 6, 2026

Copy link
Copy Markdown

Summary

Add MiniMax as a configurable provider for MiniMax-M3 and MiniMax-M2.7, with both OpenAI-compatible and Anthropic-compatible API support.

Changes

  • Add MiniMax provider registration, configuration, environment variables, host detection, and forward-proxy routing.
  • Support global and mainland China base URLs for both compatible API protocols.
  • Route buffered and streamed responses through the codec matching the request protocol.
  • Preserve text masking for multimodal MiniMax-M3 requests while leaving image and video payloads unchanged.
  • Add MiniMax settings to the desktop UI and migrate existing provider configurations.
  • Document the provider routes and regional endpoints, and add a minor changeset.
  • Add provider, routing, authentication, request-capture, and streaming regression tests.

Testing

  • make test-go
  • make build-go
  • go vet ./src/backend/providers ./src/backend/config ./src/backend/proxy
  • npm run lint from src/frontend
  • npm run type-check from src/frontend
  • npx changeset status

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Davidnet

Davidnet commented Jul 8, 2026

Copy link
Copy Markdown
Member

Hi @octo-patch would you mind taking a look CLA? Also would love to connect, would you have any email or contact for where we should talk?

@octo-patch

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@github-actions

Copy link
Copy Markdown
Contributor

Warning

This PR touches 3+ distinct areas of the codebase.

Consider splitting into smaller, focused PRs — each covering a single semantic type.
This makes reviews easier and keeps the git history clean.

Categories found:

docs:

  • .changeset/minimax-provider.md
  • docs/01-getting-started.md
  • docs/02-development-guide.md

code:

  • src/backend/config/config.development.json
  • src/backend/config/config.go
  • src/backend/main.go
  • src/backend/providers/anthropic.go
  • src/backend/providers/minimax.go
  • src/backend/providers/openai.go
  • src/backend/providers/provider.go
  • src/backend/proxy/handler.go
  • src/backend/proxy/streaming.go
  • src/backend/proxy/transparent.go
  • src/frontend/src/components/privacy-proxy-ui.tsx
  • src/frontend/src/components/settings/ProvidersSection.tsx
  • src/frontend/src/electron/electron-main.js
  • src/frontend/src/electron/electron.d.ts
  • src/frontend/src/electron/ipc-handlers.js
  • src/frontend/src/hooks/useElectronSettings.ts
  • src/frontend/src/types/provider.ts
  • src/frontend/src/utils/providerHelpers.ts

other:

  • env.example

test:

  • src/backend/config/config_test.go
  • src/backend/main_test.go
  • src/backend/providers/minimax_test.go
  • src/backend/providers/providers_test.go
  • src/backend/proxy/handler_test.go
  • src/backend/proxy/streaming_test.go

@octo-patch octo-patch changed the title feat: add MiniMax M3 provider feat: add MiniMax provider Jul 13, 2026
@octo-patch

Copy link
Copy Markdown
Author

Thanks for the review. The CLA check is now passing, and I pushed the MiniMax protocol routing, endpoint documentation, and regression tests. I ran the full Go test suite and build, Go vet for the affected packages, and the frontend lint and type checks.

@hanneshapke

hanneshapke commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Hi @octo-patch - thank you for your submission. Are you a Kiji Proxy user?
Looks like you create numerous PRs to integrate MiniMax in open source applications, but are you using those applications?

@octo-patch

Copy link
Copy Markdown
Author

Thanks for asking. I'm not currently an active Kiji Proxy user; this contribution was prepared by the Octopatch automation account after validating Kiji Proxy's existing extension points and tests. I understand if that does not fit the project's contribution scope.

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.

3 participants