fix(providers/command-code): send required stream payload (#2271)

- Force skills: "" and params.stream: true in Command Code wrapper
- Align validation probe payload with upstream-required shape
- Default validation model to deepseek/deepseek-v4-flash

Co-authored-by: ddarkr <ddarkr@users.noreply.github.com>
This commit is contained in:
ddarkr
2026-05-15 03:25:22 -03:00
committed by diegosouzapw
parent 76c20240f1
commit 4f80be1f2f
4 changed files with 28 additions and 11 deletions

View File

@@ -126,11 +126,12 @@ test("Command Code executor posts wrapped body and required headers to alpha/gen
const posted = JSON.parse(String(calls[0].init.body));
assert.deepEqual(posted, transformedBody);
for (const key of ["config", "memory", "taste", "permissionMode", "params"]) {
for (const key of ["config", "memory", "taste", "skills", "permissionMode", "params"]) {
assert.ok(key in posted, `missing ${key}`);
}
assert.equal(posted.skills, "");
assert.equal(posted.params.model, "gpt-5.4-mini");
assert.equal(posted.params.stream, false);
assert.equal(posted.params.stream, true);
assert.equal(posted.params.system, "You are concise.");
assert.equal(posted.params.messages[0].role, "user");
assert.equal(posted.params.tools[0].name, "lookup");