Files
plugins/packages/workbuddy/package.json
T
yetone 0a34ff8508 workbuddy 0.2.37: a kimi-k3.1-pro call-only turn carries a space
Gloria335056 on X: from dsh through magpie, WorkBuddy's kimi-k3.1-pro
fails with 400 "Invalid request parameters" while every other model
works. dsh (pi-ai openai-completions) records a call-only assistant turn
as "content": null, captured at magpie's gateway, so every request after
the model's first tool call carries one. The same model on QwenWork
refused null and "" and served one space (nanfei892, #1213, measured),
and kimi-k3 on www.workbuddy.ai took the null turn (measured today).

systemOn now runs callText: for kimi-k3.1-pro and kimi-k3.1-pro-highspeed
on both sites, an assistant turn with tool_calls and an empty content
(null, "", or only empty text parts) goes with content " ". A turn with
text, and every other model (kimi-k3, kimi-k3-1, kimi-k2.6, DeepSeek,
GLM), go as they came.

Test: kimi-call-text.test.mjs uses dsh 0.2.1's literal second request
through the loader on both sites.

Run (temp HOME, mica): bun test in packages/workbuddy 390 pass, 0 fail;
bun scripts/check.mjs workbuddy ok.
Broken by hand: with the callText call taken out of systemOn, the four
null-turn cases fail (mica).

Not tried: a real kimi-k3.1-pro request. Both owner accounts are free
(WorkBuddy AI refuses the model for personal_free_user before reading
the body), and the China account's refresh token is refused (12153).
2026-11-19 15:16:43 +08:00

27 lines
669 B
JSON

{
"name": "@magpie-community/opencode-workbuddy-auth",
"version": "0.2.37",
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
"type": "module",
"main": "./opencode.mjs",
"exports": { ".": "./opencode2.mjs" },
"files": [
"index.mjs",
"opencode.mjs",
"opencode2.mjs",
"README.md"
],
"keywords": [
"opencode",
"opencode-plugin",
"workbuddy",
"codebuddy"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/workbuddy"
}
}