Files
plugins/packages/qoder/package.json
T
yetone 2b5e7d6602 qoder 0.2.69: a Kimi model's call-only turn carries a space, as QwenWork's Kimi needs (#1213)
nanfei892 measured it (#1213): on QwenWork, kimi-k3.1-pro answers 400
"Error in upstream response" (a 502 from magpie) to any request whose
history holds an assistant turn with tool_calls and a null or empty
content, which is how every OpenAI client records a call-only turn. So
every agent broke from its second turn on. One space is served, and
DeepSeek, GLM and Qwen on the same account take the empty turn.

qoderBody now passes qoderMessages a callText of " " for a Kimi model
(key kmodel*, or "kimi" in its key or name, on any Qoder site), and a
call-only turn takes it when it has no text. A turn with text, and every
other model, go as before.

Run (temp HOME): bun test in packages/qoder 443 pass, 0 fail (mote);
bun scripts/check.mjs qoder ok.
Broken by hand: without the callText fallback, the new test's Kimi case
fails (mica).

Not tried: a real QwenWork Kimi account (none here); the reporter's own
patch of the same line has served them since 15:50 UTC+8. Qoder CN's
kmodel gets the space too, unmeasured there.
2026-11-16 16:25:16 +08:00

31 lines
773 B
JSON

{
"name": "@magpie-community/opencode-qoder-auth",
"version": "0.2.69",
"description": "Qoder and QwenWork (千问办公) subscriptions in OpenCode and magpie: qoder.com, qoder.cn, gateway.qwenwork.cn and the enterprise flagship, VPC and dedicated domains",
"type": "module",
"main": "./opencode.mjs",
"exports": { ".": "./opencode2.mjs" },
"files": [
"index.mjs",
"opencode.mjs",
"opencode2.mjs",
"README.md",
"LICENSE-CLIProxyAPI"
],
"keywords": [
"opencode",
"opencode-plugin",
"magpie",
"qoder",
"qoder-cn",
"qwenwork",
"千问办公"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/qoder"
}
}