Repository navigation
Conversation
c66f476 to
9da9c15
Compare
|
Codex review: found issues before merge. Reviewed July 2, 2026, 9:04 PM ET / 01:04 UTC. Summary PR surface: Source +86, Tests +162, Docs +5, Generated 0, Other 0. Total +253 across 15 files. Reproducibility: not applicable. as a bug reproduction: this PR adds a provider feature. The merge blockers are source-reproducible from PR head against current main and the latest release SDK surface. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Preserve the shipped SDK family/constant and legacy helper behavior, then land the MiniMax provider-owned priority path only after maintainers explicitly accept fastMode as the paid M3 opt-in. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this PR adds a provider feature. The merge blockers are source-reproducible from PR head against current main and the latest release SDK surface. Is this the best way to solve the issue? No. The MiniMax-owned wrapper is the right layer, but this is not the best merge shape until it preserves shipped SDK/helper compatibility and maintainers accept paid fastMode semantics. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9238d9aeae8d. Label changesLabel justifications:
Evidence reviewedPR surface: Source +86, Tests +162, Docs +5, Generated 0, Other 0. Total +253 across 15 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
9da9c15 to
314f759
Compare
|
Pushed a revision and refreshed the PR body with full proof. Summary of what changed since the review:
Tests add a load-bearing @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
3c23320 to
c6c512f
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
MiniMax-M3 supports a paid `service_tier: "priority"` low-latency lane. Gate it behind the per-model `extraParams.fastMode` flag so callers can opt M3 requests into priority routing while leaving M2.x untouched (no priority benefit there). An already-set `service_tier` is preserved. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Resolve fastMode dynamically (including /fast auto function form) by injecting service_tier=priority from createMinimaxFastModeWrapper, the provider-owned path that already resolves DynamicFastMode per stream call, instead of a true-only check in the core thinking shim. Adds auto-mode regression coverage and documents the M3 priority-lane behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Address openclaw#95802 review: - BLOCKER: fast mode now bills the lane it actually runs. M3 priority (`service_tier=priority`) bills 1.5x the standard rate per MiniMax pricing (https://platform.minimax.io/docs/guides/pricing-paygo), and M2.7 highspeed bills the variant's rate. `createMinimaxFastModeWrapper` gains an optional `resolveFastLaneCost`; the wrapper picks the lane and the MiniMax plugin owns the pricing, so core stays provider-pricing free. - Docs: describe M3 priority processing, `/fast auto`, pricing, and affected provider IDs in providers/minimax, gateway/config-tools, concepts/model- providers, tools/slash-commands, and plugins/sdk-provider-plugins. - Tests: provider-registration M3 `service_tier`+cost coverage for `minimax` and `minimax-portal`; core wrapper highspeed/priority cost tests. - NIT: preservation test uses MiniMax's `standard` tier value, not Anthropic's. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The bundled MiniMax provider wires its own fast-mode hook with the plugin-owned cost resolver, so the deprecated shared-family `minimax-fast-mode` seam had no production consumer and its cost-less variant would inject the paid `service_tier: priority` without billing it. Remove the family member, the `MINIMAX_FAST_MODE_STREAM_HOOKS` export, the now-unused import, its stream-matrix test coverage, and the families-table doc row; regenerate the plugin SDK API baseline. Also correct the M3 priority-cost comment so its example matches the billed rate ($0.60/$2.40 -> $0.90/$3.60) rather than the promo rate. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…orts Rebasing onto main surfaced the pinned plugin SDK surface budget: this PR exports `resolveBooleanFastMode` and the `ResolveMinimaxFastLaneCost` type from `provider-stream` (each counted twice via the `provider-stream-family` wildcard), a net +2 public exports / +2 callable after dropping the deprecated `MINIMAX_FAST_MODE_STREAM_HOOKS`. Pin the defaults to the new counts (public exports 10409 -> 10411, callable 5224 -> 5226) so `plugin-sdk-surface-report --check` and its test stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
8809914 to
2682d76
Compare
|
Superseded by #107378, which rebases onto latest main and takes a cleaner approach: the fast-mode wrapper moves into the MiniMax plugin's own |
What Problem This Solves
MiniMax-M3 exposes a paid low-latency
service_tier: "priority"lane on itsAnthropic-compatible endpoint, but OpenClaw has no way to opt a model's
requests into it. Operators running latency-sensitive M3 workloads cannot
trade spend for the faster lane today.
Why This Change Was Made
Gate the priority lane behind the existing per-model
fastModeflag, in theMiniMax-owned fast-mode wrapper (
createMinimaxFastModeWrapper). Thatwrapper is the canonical fast-mode path: it already receives
DynamicFastModeand resolves it per stream call (via
resolveBooleanFastMode), so it handlesthe function form
/fast autopasses, not just a literaltrue. For M2.7 itrewrites to the highspeed model variant; for M3 (which has no highspeed
variant) it now injects
service_tier: "priority".The MiniMax plugin wires this wrapper itself, passing a plugin-owned cost
resolver, instead of the generic
minimax-fast-modestream-family shortcut.Pricing therefore stays plugin-owned and core stays provider-pricing-free.
Because the bundled provider was that deprecated shortcut's only consumer, this
revision removes the now-orphaned
MINIMAX_FAST_MODE_STREAM_HOOKSseam ratherthan leave a divergent, billing-incomplete second path.
Scope and non-goals:
fastModeis unset/false.priority
service_tier.service_tieralready set by an earlier wrapper or caller is preserved.User Impact
Operators can opt MiniMax-M3 requests into MiniMax's priority lane by setting
fastMode(/fast on,/fast auto, orparams.fastMode: true) on the model,reducing latency at higher cost, and OpenClaw's cost estimate now matches the
billed lane. No impact on any model or caller that does not enable fast mode.
Evidence
This revision is rebased onto latest
mainand resolves the reviewfindings plus the follow-up cleanup:
into
service_tier: prioritypreviously kept standard M3 pricing, and theM2.7 highspeed rewrite kept standard M2.7 pricing. The fast-mode wrapper now
bills the lane it actually runs:
createMinimaxFastModeWrappergained anoptional
resolveFastLaneCost, the wrapper picks the lane and the MiniMaxplugin owns the pricing (core stays provider-pricing free). M3 priority
bills 1.5x the standard rate per
MiniMax pricing;
M2.7 highspeed bills the highspeed variant's rate. Mirrors the OpenAI
service-tier multiplier approach in
openai-responses.ts.docs/providers/minimax.md,docs/gateway/config-tools.md,docs/concepts/model-providers.md,docs/tools/slash-commands.md,docs/tools/thinking.md, anddocs/plugins/sdk-provider-plugins.mdnowdescribe M3 priority processing,
/fast auto, the 1.5x pricing, and theaffected provider IDs.
extensions/minimax/index.test.tsproves the M3
service_tier: priority+ 1.5x cost path through the realregistered provider hook for both
minimaxandminimax-portal.standardtier value instead of Anthropic's
standard_only.minimax-fast-modeSDK family seam. Sincethe plugin now wires its own hook, the deprecated
MINIMAX_FAST_MODE_STREAM_HOOKSexport, the
minimax-fast-modefamily member/case, its stream-matrix testcoverage, and the families-table doc row are removed. Regenerated the plugin
SDK API baseline and re-pinned the public surface budget for the net export
change (
resolveBooleanFastModeis now exported and theResolveMinimaxFastLaneCosttype added;
+2public exports /+2callable after dropping the deprecatedhook). Also corrected the M3 priority-cost comment so its example matches the
billed rate (
$0.60/$2.40 -> $0.90/$3.60).Validation (all local, rebased onto latest
main):The registration test drives the exact hooks the MiniMax extension registers
for both provider IDs and captures the outgoing payload + billed cost:
MiniMax-M2.7+ fast mode → request modelMiniMax-M2.7-highspeed(bothminimaxandminimax-portal)MiniMax-M3+ fast mode → outgoingservice_tier: "priority"and model costscaled to 1.5x (
{0.6,2.4,0.12,0}→{0.9,3.6,0.18,0}) for bothminimaxandminimax-portalLive endpoint proof. Real MiniMax-M3 requests to
https://api.minimax.io/anthropic/v1/messages(API key redacted), showing theserved lane MiniMax echoes back in
usage.service_tier:The live endpoint accepts
service_tier: "priority"for MiniMax-M3 and confirmsthe request was served on the priority lane (
usage.service_tier: "priority"),versus
"standard"with the flag off — the exact before/after this PR'sfastModeflag produces.🤖 Generated with Claude Code