feat(minimax): beta MiniMax provider support (v2.10.2)#8
Open
feat(minimax): beta MiniMax provider support (v2.10.2)#8
Conversation
Add end-to-end MiniMax coding plan support with API client parsing, snapshot persistence, reset-cycle tracking, agent polling, web handlers, dashboard UI, and test mock engine rotation support. Includes VERSION bump to 2.10.2 and MiniMax env wiring for local and Docker configs.
| const quotaMap = provider === 'zai' | ||
| ? ['tokensLimit', 'timeLimit', 'toolCalls'] | ||
| : ['subscription', 'search', 'toolCalls']; | ||
| let quotaMap = ['subscription', 'search', 'toolCalls']; |
| : ['subscription', 'search', 'toolCalls']; | ||
| let quotaMap = ['subscription', 'search', 'toolCalls']; | ||
| if (provider === 'zai') { | ||
| quotaMap = ['tokensLimit', 'timeLimit', 'toolCalls']; |
| if (provider === 'zai') { | ||
| quotaMap = ['tokensLimit', 'timeLimit', 'toolCalls']; | ||
| } else if (provider === 'copilot') { | ||
| quotaMap = ['premium_interactions', 'chat', 'completions']; |
| } else if (provider === 'copilot') { | ||
| quotaMap = ['premium_interactions', 'chat', 'completions']; | ||
| } else if (provider === 'minimax') { | ||
| quotaMap = ['MiniMax-M2', 'MiniMax-Text-01']; |
Align MiniMax mock fixture remains_time with observed API payloads using milliseconds so mock-server scenarios match parser and tracker expectations.
Update docker metadata tagging so workflow_dispatch uses the required inputs.tag value. This enables publishing temporary beta images from PR branches without release event semver context.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.env.exampleand.env.docker.exampleVERSIONto2.10.2What was implemented
GET https://www.minimax.io/v1/api/openplatform/coding_plan/remainsAuthorization: Bearer <MINIMAX_API_KEY>model_remains,start_time,end_time,remains_time,current_interval_total_count,current_interval_usage_count)provider=minimaxandprovider=bothin current/history/summary/insights/cycles/cycle-overviewTemporary beta Docker image (ready to use)
Published from this PR branch via workflow dispatch:
ghcr.io/onllm-dev/onwatch:v2.10.2-beta.1ghcr.io/onllm-dev/onwatch@sha256:8147116c1401e2f295e13bbcbb4462fbd93784d920c35649c2079f6f64c2e0bcPull and run:
docker pull ghcr.io/onllm-dev/onwatch:v2.10.2-beta.1 docker run --rm -p 9211:9211 \ -e MINIMAX_API_KEY="<your_key>" \ ghcr.io/onllm-dev/onwatch:v2.10.2-beta.1If your org/package visibility is private, authenticate first:
Beta validation guide (for testers)
1) Run with a real MiniMax key
Open
http://localhost:9211?provider=minimax.2) Validate API response manually
Expected fields used by onWatch:
model_remains[].model_namemodel_remains[].start_timemodel_remains[].end_timemodel_remains[].remains_timemodel_remains[].current_interval_total_countmodel_remains[].current_interval_usage_count3) Validate rotating mock engine behavior
Then query:
Use
/admin/scenarioto set rotating responses and verify cycle updates.4) Linux binary
Build command used:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o temp/onwatch-linux-amd64-beta .5) Docker
Set
MINIMAX_API_KEYin.envand run:Test plan
go test ./internal/api ./internal/store ./internal/tracker ./internal/agent ./internal/web ./internal/testutil ./internal/configgo test -race ./...go vet ./...Refs #5