Files
plugins/packages/orcaterm/package.json
T
yetone 2db9b0ad7f orcaterm 0.1.8: a bare {"tool_calls":[…]} reply is refused, not sent as the answer (#1114)
#1113's model wrote OpenAI's own wire shape as text, on a line of its
own: {"tool_calls":[{"id":…,"function":{…}}]}. OrcaTerm sends no tools
upstream, so such a reply is a call with nothing to call: it is now cut
where the call starts and the turn ends with the text_tool_call error,
the same as a <tool_call> block. Streamed, a last line that may still
grow into {"tool_calls":[{ (its indent too) is held until it settles.

Prose that mentions the shape, a fenced or backticked copy,
{"tool_calls":[]} and other JSON lines stay the answer.

Sibling: doubao-work 0.1.12 (4ea39f01) lifts the same shape as calls,
since doubao-work does carry tools.

Run (WSL magpie-desktop, HOME=$(mktemp -d)):
- packages/orcaterm bun test: 164 pass, 0 fail; jsoncall.test.mjs
  covers 1-, 5- and 4096-character frames with #1113's bytes.
- Broken by hand: without the new regex alternative, all 4
  jsoncall tests fail; restored, all pass.
- bun scripts/check.mjs orcaterm: ok.
Not tried: a real OrcaTerm account producing this reply.
2026-11-14 10:02:43 +08:00

21 lines
1.4 KiB
JSON

{
"name": "@magpie-community/opencode-orcaterm-auth",
"version": "0.1.8",
"description": "OrcaTerm (Tencent Cloud 遨驰终端) AI quota as an OpenAI-compatible provider for magpie and OpenCode",
"type": "module",
"main": "./opencode.mjs",
"exports": { ".": "./opencode2.mjs" },
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "wechat.mjs", "README.md", "LICENSE"],
"keywords": ["opencode", "opencode-plugin", "magpie", "orcaterm", "tencent"],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/orcaterm"
},
"magpie": {
"maxConcurrency": 1,
"icon": "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%231C74C7'/%3E%3Cstop offset='.55' stop-color='%238870FF'/%3E%3Cstop offset='1' stop-color='%23FEAECB'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23a)' d='M56 54c-7-12.5-26.2-13.2-35.5-22.5C14.4 25.2 14 16.4 16.7 11 19.5 5.3 25.9 1 33.1 1c2.7 0 8 1 11 3 14.1 9.4 18 22.7 19.6 28.5 1.6 5.8 1.5 14.5-7.7 21.5z'/%3E%3Cpath fill='url(%23a)' opacity='.85' d='M86.2 58C78.2 75.5 48.2 70.5 33.2 64 20.6 66.3 15.2 72 15.2 81c0 9.5 6.2 17.4 15.5 18.5 9.3 1.1 22.6-5.5 33-14 9-7.4 19.8-17.6 22.5-27.5z'/%3E%3C/svg%3E"
}
}