Reflection's Beam (reflection/beam:free) answered a fresh one-turn chat and turned the second turn away with 400 "Missing required parameter: 'messages[N].reasoning_content'", a reply another model made included; it took the request once each earlier assistant message had something there (EDwinpzy on magpie's Discord, magpie 0.1.2717, through /v1/chat/completions and /v1/responses alike). The Provider API's list says nothing of it (Beam's entry is id, name, context_length and supported_endpoints, read 2026-11-03), so: - a model matching reflection/beam has reasoning_content on every assistant message: its own when it has some, the thinking sent back as reasoning (moved, not duplicated), else "." (a blank one, which magpie sends tool turns with, is replaced too: whitespace may read as missing); - any other model the Provider API refuses with a 400 asking for reasoning_content is asked once more with it filled, and is filled from then on (in-process). Other models' requests go as they came. Run at this head (mote, bun 1.4.2): bun test in packages/commandcode, HOME=$(mktemp -d) as pr.yml does: 101 pass, 0 fail. bun scripts/check.mjs commandcode: ok. Broken by hand: reasoning-back.test.mjs against the old index.mjs: 4 of 7 fail (both of the reporter's two-turn shapes, the reasoning/blank case and the learned model get 400); the three "goes as it came" pass. Not tried: a real Beam request. The one Command Code key on this machine answers 401, so the placeholder "." and the refusal's JSON around the reporter's words are not checked against Beam itself. Go's /alpha/generate path is unchanged and not tried with Beam.
13 lines
534 B
JSON
13 lines
534 B
JSON
{
|
|
"name": "@magpie-community/opencode-commandcode-auth",
|
|
"version": "0.1.22",
|
|
"description": "Command Code plans (Pro, GOAT, Max, Ultra, Go, Teams) in OpenCode and magpie",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md", "CHANGELOG.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "commandcode"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/commandcode" }
|
|
}
|