bigstage915 (Qoder CN, qoder-cn/qfmodel through ZCode) saw qfmodel now and
then begin a native tool call and never send its function name. events()
then ended the stream with "the model's native tool call has no name", an
SSE error frame on a 200, which ZCode reads as not retryable: the whole
turn died, with the reasoning and text already shown (9 incidents in four
days, after reasoning-end and after a named call's tool-input-start and
argument deltas).
An unnamed call is still never given, and its held arguments go nowhere,
not into the text. Now:
- Nothing of the answer said before it (no text, reasoning or call): the
reply is the same 502 as before, marked nameless, and ask sends the
request once more under a new request_id. A second such reply goes back
as the 502, before any byte, which magpie's gateway retries or fails
over (retryable: status >= 500).
- The answer had begun: the call is dropped and the answer ends as it
would have without it, tool_calls beside a named call, stop (or length)
otherwise, and console.warn says so (the host's stderr, in magpie's
log). The non-streaming reply is the same: named calls kept, the
unnamed one left out.
Tests (native-tools.test.mjs): the after-reasoning test now expects the
reasoning kept, no tool frame, finish stop and the warning; new cases for
an unnamed call after a named call's start and argument deltas (stream),
beside a named one (non-streaming, unnamed first and after), after text,
and nothing-said (asked twice, then 502; asked twice, second answer
given). The two 502 tests now also count two chat requests.
Run, on the WSL2 box (magpie-desktop, Bun 1.4.2; mote at load ~120):
- native-tools.test.mjs: 15 pass.
- The new test file against origin/main's index.mjs: the 7 new or
changed tests fail, the 8 others pass.
- Broken by hand: the in-plugin retry off, 3 fail (the retry tests);
reasoning not counted as said, 1 fails (after-reasoning).
- Full `HOME=$(mktemp -d) bun test` at this tree: 4469 pass, 1 fail,
agent-office's "midnight and metadata-only changes do not read JSONL
again", red alone on untouched origin/main 26864ec too, in UTC and
Asia/Shanghai: filed as #580. `bun scripts/check.mjs`: ok.
Siblings: no other package has this guard (grep of the error text and an
unnamed-call check over packages/). magpie's own chatTidy already drops a
call whose first fragment has no name and ends stop (#1475), the same
choice.
Not tried: a real Qoder CN account; the failure is the model's and not
reproducible on demand.
29 lines
695 B
JSON
29 lines
695 B
JSON
{
|
|
"name": "@magpie-community/opencode-qoder-auth",
|
|
"version": "0.2.51",
|
|
"description": "Qoder and QwenWork (千问办公) subscriptions in OpenCode and magpie: qoder.com, qoder.cn, gateway.qwenwork.cn and the enterprise flagship (VPC)",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": [
|
|
"index.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"
|
|
}
|
|
}
|