WorkBuddy AI answers 11133 "Invalid request parameters" (the model provider rejected them) when a tool's parameters or name are of a shape its model turns away. Tried on the owner's account through magpie: deepseek-v4.1-flash and -sg refuse each of a pattern's \0, a root anyOf, parameters with no type, empty parameters, a tuple's items, and a name holding . : / a space or CJK; Kimi, GPT, Gemini and GLM refuse some; MiniMax none. Every client protocol reached the same error, so it is the tools, not the protocol. fitTools now gives each the shape that passes: an object root (unions merged as magpie's provider.ObjectRoot does), \0 as \u0000, a tuple's items as one anyOf, and a safe name, with the model's calls named back in JSON and streamed answers and the history's calls named as sent. A clean chat goes as the same bytes. Run: HOME=$(mktemp -d) bun test packages/workbuddy (54 pass), bun scripts/check.mjs workbuddy; through a sandbox magpie gateway with this package, deepseek-v4.1-flash, -sg, glm-5.3, gpt-5.4, gemini-3.5-flash and kimi-k3 answer 200 to every shape above (400 before), and an Anthropic Messages call of a tool named fs.read, streamed and not, comes back as fs.read. wyh's own ZCode/DeepSeek Harness tool set was not seen.
13 lines
566 B
JSON
13 lines
566 B
JSON
{
|
|
"name": "@magpie-community/opencode-workbuddy-auth",
|
|
"version": "0.1.12",
|
|
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.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" }
|
|
}
|