Files
plugins/packages/workbuddy/package.json
T
yetone d51bd50cf6 workbuddy 0.2.15: no default effort for a chat whose max_tokens is 1024 or less (#643, itspig)
itspig's change (the commit before) skips the default reasoning_effort at
max_tokens 256 or less. This raises the bound to 1024, as SMALL_BUDGET,
and reads max_completion_tokens too. Anthropic's API takes no thinking
under a 1024-token budget, so a /v1/messages request magpie translates with
max_tokens 1024 or less can't have asked for thinking, and the gateway
sends it with no effort, the same as OpenCode's default variant. 256 left
512 and 1024 asks thinking at the default.

Run, at this head, on mote:
- packages/workbuddy: bun test, 315 pass, 0 fail.
- bun scripts/check.mjs workbuddy: ok.
- Broken by hand (the SMALL_BUDGET line removed): the new test is red,
  8 pass, 1 fail.

Real, on the owner's workbuddy-ai account (www.workbuddy.ai, sandbox HOME,
no token renewal), deepseek-v4.1-flash-sg, default effort high:
- main, max_tokens 64, no effort: finish "length", 64 reasoning tokens,
  empty content (#643's pattern). This head: "stop", 0 reasoning, the
  title answered.
- main, max_tokens 1024: 76 reasoning tokens. This head: 0, answered.
- This head, max_tokens 2048: 65 reasoning tokens (the default still goes).
- An explicit "high" at 64 still ends "length"; "low" answers. An effort
  the client names goes as it came.

Not tried: the China site (copilot.tencent.com), deepseek-v4-pro (11102 on
the AI site), kimi-k3.1-pro (11158, not for free users).
2026-11-03 02:25:46 +08:00

25 lines
612 B
JSON

{
"name": "@magpie-community/opencode-workbuddy-auth",
"version": "0.2.15",
"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"
}
}