Skip to content

feat(minimax): opt M3 into MiniMax priority lane via fastMode - #95802

Closed
jzakirov wants to merge 5 commits into
openclaw:mainfrom
jzakirov:minimax-service-tier-priority
Closed

jzakirov wants to merge 5 commits into
openclaw:mainfrom
jzakirov:minimax-service-tier-priority

Conversation

@jzakirov

@jzakirov jzakirov commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

MiniMax-M3 exposes a paid low-latency service_tier: "priority" lane on its
Anthropic-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 fastMode flag, in the
MiniMax-owned fast-mode wrapper (createMinimaxFastModeWrapper). That
wrapper is the canonical fast-mode path: it already receives DynamicFastMode
and resolves it per stream call (via resolveBooleanFastMode), so it handles
the function form /fast auto passes, not just a literal true. For M2.7 it
rewrites 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-mode stream-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_HOOKS seam rather
than leave a divergent, billing-incomplete second path.

Scope and non-goals:

  • Opt-in only. Default behavior is unchanged when fastMode is unset/false.
  • M3 only. M2.x models route to the highspeed variant instead and gain no
    priority service_tier.
  • A service_tier already 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, or params.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 main and resolves the review
findings plus the follow-up cleanup:

  • [BLOCKER] Priority/highspeed cost is reflected in estimates. Opting M3
    into service_tier: priority previously kept standard M3 pricing, and the
    M2.7 highspeed rewrite kept standard M2.7 pricing. The fast-mode wrapper now
    bills the lane it actually runs: createMinimaxFastModeWrapper gained an
    optional resolveFastLaneCost, the wrapper picks the lane and the MiniMax
    plugin 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.
  • [IMPORTANT] Docs. docs/providers/minimax.md, docs/gateway/config-tools.md,
    docs/concepts/model-providers.md, docs/tools/slash-commands.md,
    docs/tools/thinking.md, and docs/plugins/sdk-provider-plugins.md now
    describe M3 priority processing, /fast auto, the 1.5x pricing, and the
    affected provider IDs.
  • [IMPORTANT] Registration coverage. extensions/minimax/index.test.ts
    proves the M3 service_tier: priority + 1.5x cost path through the real
    registered provider hook for both minimax and minimax-portal.
  • [NIT] Tier value. The preservation test uses MiniMax's own standard
    tier value instead of Anthropic's standard_only.
  • [cleanup] Dropped the orphaned minimax-fast-mode SDK family seam. Since
    the plugin now wires its own hook, the deprecated MINIMAX_FAST_MODE_STREAM_HOOKS
    export, the minimax-fast-mode family member/case, its stream-matrix test
    coverage, 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 (resolveBooleanFastMode is now exported and the ResolveMinimaxFastLaneCost
    type added; +2 public exports / +2 callable after dropping the deprecated
    hook). 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):

pnpm test src/llm/providers/stream-wrappers/minimax.test.ts   → 22 passed
pnpm test extensions/minimax/index.test.ts                    → 15 passed
pnpm test src/plugin-sdk/provider-stream.test.ts              →  8 passed
pnpm test test/scripts/plugin-sdk-surface-report.test.ts      →  8 passed
tsgo:core:test / tsgo:extensions:test                         → clean
pnpm build                                                    → clean (no INEFFECTIVE_DYNAMIC_IMPORT)
oxfmt --check / plugin-sdk:api:check / surface-report --check → clean

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 model MiniMax-M2.7-highspeed (both
    minimax and minimax-portal)
  • MiniMax-M3 + fast mode → outgoing service_tier: "priority" and model cost
    scaled to 1.5x ({0.6,2.4,0.12,0} → {0.9,3.6,0.18,0}) for both
    minimax and minimax-portal

Live endpoint proof. Real MiniMax-M3 requests to
https://api.minimax.io/anthropic/v1/messages (API key redacted), showing the
served lane MiniMax echoes back in usage.service_tier:

# control — no service_tier
  request:  {"model":"MiniMax-M3","max_tokens":16,"messages":[{"role":"user","content":"ping"}]}
  HTTP 200  → usage.service_tier = "standard"

# with the flag this PR sets
  request:  {"model":"MiniMax-M3","max_tokens":16,"messages":[...],"service_tier":"priority"}
  HTTP 200  → usage.service_tier = "priority"
  response: {"type":"message","model":"MiniMax-M3","content":[{"type":"text","text":"🏓 Pong! ..."}],
             "usage":{"input_tokens":50,"output_tokens":12,"service_tier":"priority"},"stop_reason":"end_turn"}

The live endpoint accepts service_tier: "priority" for MiniMax-M3 and confirms
the request was served on the priority lane (usage.service_tier: "priority"),
versus "standard" with the flag off — the exact before/after this PR's
fastMode flag produces.

🤖 Generated with Claude Code

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S labels Jun 22, 2026
@jzakirov
jzakirov force-pushed the minimax-service-tier-priority branch from c66f476 to 9da9c15 Compare June 22, 2026 20:21
@clawsweeper

clawsweeper Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 2, 2026, 9:04 PM ET / 01:04 UTC.

Summary
The PR maps MiniMax-M3 fastMode to MiniMax service_tier=priority, scales MiniMax fast-lane costs in the provider plugin, updates docs/tests, and removes the deprecated MiniMax stream-family SDK shortcut.

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.

  • Public SDK Compatibility: 1 family key removed, 1 hook constant removed. These are released plugin SDK surfaces, so the API change matters even if bundled code no longer uses them.
  • Legacy Helper Behavior: 1 two-argument helper path retiered. Existing callers of the helper can start sending paid M3 priority requests without cost correction.
  • Provider IDs Affected: 2 provider IDs. Both API-key minimax traffic and OAuth minimax-portal traffic take the new priority-lane path.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🦞 diamond lobster
Patch quality: 🧂 unranked krab
Result: blocked by patch quality or review findings.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Restore the shipped MiniMax stream-family API or document an explicit maintainer-approved breaking/deprecation path.
  • Keep legacy helper callers from sending paid M3 priority traffic without cost correction.
  • Get maintainer acceptance for mapping existing MiniMax-M3 fastMode settings to a paid priority lane.

Risk before merge

  • [P1] The latest release still ships the minimax-fast-mode family and MINIMAX_FAST_MODE_STREAM_HOOKS, so removing them is a released plugin SDK compatibility break.
  • [P1] Existing two-argument createMinimaxFastModeWrapper callers would begin sending paid MiniMax-M3 priority requests while keeping base M3 cost metadata unless they adopt the new optional resolver.
  • [P1] Existing persisted fastMode: true or /fast auto settings for MiniMax-M3 would become a paid priority-lane opt-in after upgrade, which needs maintainer product acceptance.

Maintainer options:

  1. Restore SDK Compatibility Before Merge (recommended)
    Keep the shipped minimax-fast-mode family and hook constant, or add an explicitly approved deprecation path that does not make old helper callers send paid priority without cost correction.
  2. Accept The SDK Break Deliberately
    Maintainers can choose to own the released SDK break and paid fastMode upgrade behavior, but that should be explicit before merge.
  3. Pause For MiniMax FastMode Policy
    If reusing existing fastMode is too surprising for paid M3 traffic, pause this PR for a MiniMax-specific opt-in or provider-pricing policy decision.

Next step before merge

  • [P2] Maintainer API/product review is needed for released SDK compatibility and paid fastMode semantics before repair or merge is safe.

Security
Cleared: The diff changes provider payload/cost logic, docs, tests, a generated checksum, and a budget script without adding dependencies, workflows, permissions, downloaded code, or secret-handling paths.

Review findings

  • [P1] Preserve the shipped MiniMax stream-family API — src/plugin-sdk/provider-stream.ts:56-61
  • [P1] Do not retier legacy helper callers without cost correction — src/llm/providers/stream-wrappers/minimax.ts:118-127
Review details

Best 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:

  • [P1] Preserve the shipped MiniMax stream-family API — src/plugin-sdk/provider-stream.ts:56-61
    provider-stream is a published plugin SDK path, and v2026.6.11 still ships both the "minimax-fast-mode" family and MINIMAX_FAST_MODE_STREAM_HOOKS. Removing them here means external plugins using the released family can stop compiling or importing after upgrade. Keep the deprecated family/constant with compatible behavior, or add an explicit maintainer-approved breaking/deprecation path instead.
    Confidence: 0.91
  • [P1] Do not retier legacy helper callers without cost correction — src/llm/providers/stream-wrappers/minimax.ts:118-127
    The third resolveFastLaneCost argument is optional, but existing two-argument createMinimaxFastModeWrapper calls now inject service_tier=priority for MiniMax-M3 while leaving model.cost at the base rate. Gate M3 priority on a resolver or split a provider-owned helper so old calls keep the previous no-op M3 behavior.
    Confidence: 0.88

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9238d9aeae8d.

Label changes

Label justifications:

  • P2: The PR is a bounded provider feature but has real SDK compatibility, billing, and provider-routing implications.
  • merge-risk: 🚨 compatibility: The diff removes released plugin SDK symbols and changes legacy helper upgrade behavior.
  • merge-risk: 🚨 auth-provider: The diff changes MiniMax API-key and OAuth provider request routing by adding priority service-tier behavior for M3 fastMode calls.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦞 diamond lobster and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The PR body includes redacted live MiniMax output showing standard versus priority usage.service_tier, plus provider-hook payload and cost capture for both MiniMax provider IDs.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes redacted live MiniMax output showing standard versus priority usage.service_tier, plus provider-hook payload and cost capture for both MiniMax provider IDs.
Evidence reviewed

PR surface:

Source +86, Tests +162, Docs +5, Generated 0, Other 0. Total +253 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 4 104 18 +86
Tests 3 185 23 +162
Docs 6 11 6 +5
Config 0 0 0 0
Generated 1 2 2 0
Other 1 2 2 0
Total 15 304 51 +253

What I checked:

Likely related people:

  • vincentkoc: History ties this handle to MiniMax fast-mode support and the shared stream-family hook surface this PR changes. (role: recent provider stream and MiniMax fast-mode contributor; confidence: high; commits: f7bc9818b5d7, bc648ac8e668, 25efa8cf8158; files: src/plugin-sdk/provider-stream.ts, src/llm/providers/stream-wrappers/minimax.ts, extensions/minimax/provider-registration.ts)
  • steipete: Authored the MiniMax-M3 rollout touching provider registration, model definitions, tests, and docs that this PR extends. (role: recent MiniMax M3 feature contributor; confidence: high; commits: 0369672691cf; files: extensions/minimax/provider-registration.ts, extensions/minimax/model-definitions.ts, docs/providers/minimax.md)
  • ximiximi423: Authored the recent MiniMax pricing correction that touched the pricing definitions this PR extends for fast-lane billing. (role: MiniMax pricing contributor; confidence: medium; commits: 9e0cf17d0c25; files: extensions/minimax/model-definitions.ts)
  • IamVNIE: Contributed the M3 thinking-policy fix in the same MiniMax wrapper/provider area used to detect M3.x behavior here. (role: recent MiniMax M3 thinking behavior contributor; confidence: medium; commits: 443ac732a11d; files: src/llm/providers/stream-wrappers/minimax.ts, extensions/minimax/provider-registration.ts, docs/providers/minimax.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (1 earlier review cycle)
  • reviewed 2026-07-02T17:49:16.525Z sha 2682d76 :: found issues before merge. :: [P1] Preserve the shipped MiniMax stream-family API | [P1] Do not retier legacy helper callers without cost correction

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Jun 23, 2026
@jzakirov

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@jzakirov
jzakirov force-pushed the minimax-service-tier-priority branch from 9da9c15 to 314f759 Compare June 23, 2026 17:30
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation and removed agents Agent runtime and tooling labels Jun 23, 2026
@jzakirov

Copy link
Copy Markdown
Contributor Author

Pushed a revision and refreshed the PR body with full proof. Summary of what changed since the review:

  • [P2] (dynamic fast mode): moved the M3 priority injection out of the core thinking shim (extra-params.ts) and into the provider-owned createMinimaxFastModeWrapper, which already resolves DynamicFastMode per stream call via resolveBooleanFastMode. It now honors the function form /fast auto passes, not just a literal true. The core extra-params.ts change is dropped entirely.
  • [P3] (docs): docs/tools/thinking.md fast-mode section now documents the M3 priority-lane behavior.
  • [P1] (live proof): real MiniMax-M3 requests against https://api.minimax.io/anthropic/v1/messages (key redacted) — control with no service_tier is served usage.service_tier: "standard"; with the flag this PR sets, service_tier: "priority" returns HTTP 200 and usage.service_tier: "priority". Full capture is in the PR body.

Tests add a load-bearing /fast auto (function-based) regression; tsgo:core and oxfmt --check clean; rebased onto latest main.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 24, 2026
@shakkernerd shakkernerd self-assigned this Jun 24, 2026
@jzakirov

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot removed the rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. label Jun 24, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 24, 2026
@jzakirov
jzakirov force-pushed the minimax-service-tier-priority branch from 3c23320 to c6c512f Compare July 2, 2026 13:02
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Jul 2, 2026
@jzakirov

jzakirov commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Emil Zakirov and others added 5 commits July 2, 2026 17:23
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]>
@jzakirov

Copy link
Copy Markdown
Contributor Author

Superseded by #107378, which rebases onto latest main and takes a cleaner approach: the fast-mode wrapper moves into the MiniMax plugin's own wrapStreamFn (where pricing lives), so M2.7 fast pricing is a plain name→price lookup and M3 priority is a 1.5x multiplier, with no cross-boundary cost callback. It also fixes the pre-existing MiniMax-M2.7-highspeed underbill. Closing in favor of #107378.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: minimax gateway Gateway runtime merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants