Files
plugins/packages/minimax/package.json
T
Jiaqi Sun 1ccd764e01 minimax 0.2.5: a chat asks for no compression, so the stream really streams (#978)
Flagwill: MiniMax answers a chat asked to compress as one gzip member
flushed at the end, so a streamed answer arrived whole. The chat request
(auth.loader's fetch, the one path every chat of both sites takes, CN and
global, streamed or not) now sets accept-encoding: identity, over any
caller value. Models, usage, check-in and the tool API keep Bun's default.
New stream.test.mjs; README "Requests"; 0.2.5 (npm and main had 0.2.4).

Run at 90fc6ff3 (Bun 1.4.2, temp HOME, WSL magpie-desktop):
- bun test packages/minimax: 151 pass 0 fail (713 expects)
- bun scripts/check.mjs: exit 0
- Windows (xiaomi-gpu, temp HOME/USERPROFILE): 151 pass 0 fail, check exit 0
- merged with origin/main ebcff866 (no minimax change on main since the
  base): 151 pass 0 fail, check exit 0
- local probe (fake server, not committed): CN and global, stream true
  and false, a Request object carrying Accept-Encoding: br, all reach the
  fake as identity and arrive in 4 chunks ~150ms apart, no
  content-encoding; plain fetch still sends gzip, deflate, br, zstd; a
  server that gzips anyway is still decoded by Bun.

Broken by hand: deleting the header line turns all 3 stream.test.mjs
tests red (0 pass 3 fail).

Not tried: a real MiniMax account (the body's measurement against
agent.minimax.io is the author's).
2026-11-11 16:37:19 +08:00

13 lines
775 B
JSON

{
"name": "@magpie-community/opencode-minimax-auth",
"version": "0.2.5",
"description": "OpenCode provider plugins for MiniMax Code accounts: their credits and M Plan, China (minimax-code) and international (minimax-code-global), with MiniMax Code's own device sign-in",
"type": "module",
"main": "./opencode.mjs",
"exports": { "./server": "./magpie.mjs", ".": "./opencode2.mjs" },
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "magpie.mjs", "connector-tools.mjs", "matrix-tools.json", "web-tools.mjs", "README.md"],
"keywords": ["opencode", "opencode-plugin", "minimax", "mcode", "minimax-code"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/minimax" }
}