minimax

command
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Command minimax builds the CPA c-shared plugin library for MiniMax Code (中国版).

Both files in this directory are package main: main.go carries the exported cgo ABI and plugin.go carries the abiboot.Plugin implementation. Keeping the plugin implementation in the same package is what lets `go build -buildmode=c-shared ./plugins/minimax` (see scripts/build.sh) emit the shared object directly from this directory. The dynamic library file name must start with the plugin id (`minimax.so` or `minimax-v<version>.so`); any other spelling makes the host derive the wrong id, and the resource routes are mounted under `/v0/resource/plugins/<id>/`.

Package main is the CPA native plugin adapter for MiniMax Code (中国版).

It is this repository's first provider speaking the **Anthropic Messages** protocol, and the shape of the plugin follows from that. The executor declares `anthropic` on both sides, so the host converts the client's OpenAI-format request into an Anthropic Messages body before the plugin is called, and converts the Anthropic SSE the plugin returns back into whatever the client asked for. What the plugin owns is therefore narrow and specific:

  • the live model catalogue plus a four-entry measured fallback (the vendor's own static table omits the M3.1 preview, so this provider's fallback adds it deliberately);
  • the thinking matrix, which is genuinely model-dependent and includes a hard HTTP 400 for one model (`messages.go` and `product.go` carry the measured evidence);
  • the device-code login and the refresh grant;
  • the daily check-in and the credit ledger.

⚠️ Verification status, stated plainly because the two halves differ. INFERENCE was measured end to end: all four models answered HTTP 200 with text, thinking and structured `tool_use` blocks, images and effort levels were measured working. LOGIN and REFRESH were NOT: the reference's round trip was only ever unit tested, every live probe read an existing desktop-client token, and there is no MiniMax client on this machine. The login code is a faithful port of the source, not a measured result.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL