#563: deepseek-v4.1-flash and deepseek-v4.1-flash-sg list a "none" level. Both sites' /v3/config call them onlyReasoning, so WorkBuddy's own client hides the off switch and the plugin listed none of it. They take it anyway. On WorkBuddy AI on 2026-10-31, reasoning_effort "none" answered 200 with 0 reasoning tokens (twice on -flash, once on -sg). "low" spent 1221 and 1127 reasoning tokens, and no effort (the plugin's default high) spent 1219. glm-5.3-flash still lists no none. The default effort stays the config's high. #561: on the China build (copilot.tencent.com), deepseek-v4.1-flash's context is capped at 100000 (SITES.workbuddy.contextCap, contextOf). A smaller config value is kept. The reporter's vendor error was "prompt is too long: 100001 tokens > 100000 maximum", seen 11 times on 2 accounts, while glm-5.3-flash on the same endpoint takes 1M. The config says 1000000 on both sites. WorkBuddy AI's deepseek-v4.1-flash took 148,793- and 181,887-token prompts, so that site keeps the million. Run: - deepseek-flash.test.mjs (new, against testdata/config-561.json, the real configs cut to the models compared) and efforts.test.mjs, against the old index.mjs on mote: 5 fail, 3 pass. The ones that pass are the glm/no-none and unchanged-sibling checks. - The workbuddy package on mote, HOME=$(mktemp -d) bun test: 297 pass, 0 fail. - bun scripts/check.mjs on mote: ok. - Real WorkBuddy AI account in a sandbox HOME, through the plugin loader: the none/low/default and long-prompt numbers above. Not tried: the China build itself. Both CN sign-ins I have (desktop on this Mac and on the Windows box) answer 401 on chat, so the 100000 cap rests on the reporter's literal error, not on a reply of my own.
37 lines
1.7 KiB
JavaScript
37 lines
1.7 KiB
JavaScript
// plugins#255 (kylesean): eight models in WorkBuddy's /v3/config say
|
|
// supportsReasoning and a default reasoning.effort but no
|
|
// reasoning.supportedEfforts, so the plugin listed them as not reasoning.
|
|
// testdata/config-efforts.json is WorkBuddy AI's own config (2026-10-20,
|
|
// descriptions left out), cut to those models and a few beside them.
|
|
import { afterEach, expect, test } from "bun:test"
|
|
import { readFileSync } from "node:fs"
|
|
import { _internal } from "./index.mjs"
|
|
|
|
const real = globalThis.fetch
|
|
afterEach(() => (globalThis.fetch = real))
|
|
|
|
const config = readFileSync(new URL("./testdata/config-efforts.json", import.meta.url), "utf8")
|
|
|
|
async function listed() {
|
|
globalThis.fetch = async () => new Response(config)
|
|
const out = await _internal.liveModels(_internal.SITES["workbuddy-ai"], { access: "a", uid: "u" })
|
|
return Object.fromEntries(out.map((m) => [m.id, m.efforts]))
|
|
}
|
|
|
|
test("a model that says only supportsReasoning and a default takes low, high, max and its default", async () => {
|
|
const e = await listed()
|
|
expect(e["fast-model"]).toEqual(["low", "medium", "high", "max"])
|
|
expect(e["kimi-k3"]).toEqual(["low", "medium", "high", "max"])
|
|
expect(e["gemini-3.5-flash"]).toEqual(["low", "medium", "high", "max"])
|
|
expect(e["primary-model"]).toEqual(["low", "high", "max"])
|
|
expect(e["deepseek-v4.1-flash-sg"]).toEqual(["none", "low", "high", "max"]) // it takes none (plugins#563)
|
|
})
|
|
|
|
test("listed efforts are kept as they are, and a model that doesn't reason gets none", async () => {
|
|
const e = await listed()
|
|
expect(e["hy3"]).toEqual(["low", "high"])
|
|
expect(e["gpt-5.6-sol"]).toEqual(["none", "low", "medium", "high", "xhigh", "max"])
|
|
expect(e["glm-5.2"]).toEqual(["none", "high", "xhigh"])
|
|
expect(e["default-model"]).toBeUndefined()
|
|
})
|