[feat] Add minimax API support #4223
Conversation
|
@anshk8 is attempting to deploy a commit to the agenta projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
Adds MiniMax as a supported LLM provider across the OSS stack (API, web UI, SDK) by wiring in the provider slug (minimax) and its API key env var (MINIMAX_API_KEY) anywhere provider kinds/secrets are enumerated.
Changes:
- Added
minimaxto provider/secret enums and provider label maps (web + API + SDK client types). - Added
MINIMAX_API_KEYto provider secret transform/mapping utilities and enabled-provider detection. - Added MiniMax models to the SDK’s supported model catalog and documented the env var in docker-compose example env files.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| web/oss/src/state/app/atoms/vault.ts | Maps MINIMAX_API_KEY to the SecretDTOProvider.MINIMAX kind when creating/updating standard provider secrets. |
| web/oss/src/lib/helpers/llmProviders.ts | Adds MiniMax to provider lists and secret-to-env-var transformation mapping for UI/provider settings. |
| web/oss/src/lib/Types.ts | Extends SecretDTOProvider and PROVIDER_LABELS with minimax / “MiniMax”. |
| web/oss/src/components/pages/evaluations/onlineEvaluation/hooks/useEvaluatorTypeFromConfigs.ts | Treats minimax tokens as LLM/AI evaluators for category inference. |
| sdk/agenta/sdk/utils/assets.py | Adds MiniMax models under the minimax provider to the SDK model catalog. |
| sdk/agenta/sdk/engines/running/runners/daytona.py | Passes MINIMAX_API_KEY into Daytona sandboxes when present in vault secrets. |
| sdk/agenta/client/backend/types/standard_provider_kind.py | Updates generated standard provider kind union to include minimax. |
| sdk/agenta/client/backend/types/custom_provider_kind.py | Updates generated custom provider kind union to include minimax. |
| hosting/docker-compose/oss/env.oss.gh.example | Documents MINIMAX_API_KEY in the OSS GitHub example env file. |
| hosting/docker-compose/oss/env.oss.dev.example | Documents MINIMAX_API_KEY in the OSS dev example env file. |
| api/oss/src/utils/env.py | Adds minimax to LLM config env loading and enabled-provider detection. |
| api/oss/src/models/api/evaluation_model.py | Adds minimax to the evaluation LM provider enum (MINIMAX_API_KEY). |
| api/oss/src/core/secrets/enums.py | Adds MINIMAX = "minimax" to standard/custom provider kind enums. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Testing
Verified locally
Local Verification:
(Note: MinMax requires $25USD minimum to test which I didn't purchase, if anyone does have credits and could help verify would be appreciated 😄 )
Added or updated tests
Inside
api/oss/tests/pytest/unit/secrets/test_utils.pyI extended the existing fakeVault test so a provider_key with StandardProviderKind.MINIMAX is mapped to MINIMAX_API_KEY in the dict returned by get_user_llm_providers_secrets().QA follow-up
N/A
Demo
Screen.Recording.2026-04-24.at.9.37.31.PM.mov
Checklist
Contributor Resources