fix(web): keep thinking off the spoken consult and rectification answer
Enumerate evidence kinds so education cannot be proposed as a kind, and stream Chinese thinking on a separate channel that collapses when the reply arrives. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -67,6 +67,8 @@ test("system prompt carries only high-priority boundaries, never the method copy
|
||||
assert.match(prompt, /rectification-offer-candidates/);
|
||||
assert.match(prompt, /on_user_stop/);
|
||||
assert.match(prompt, /禁止只说记下了/);
|
||||
assert.match(prompt, /工具执行过程保持静默/);
|
||||
assert.match(prompt, /思考过程必须用简体中文/);
|
||||
assert.match(prompt, /skill_verification_report/);
|
||||
assert.match(prompt, /精度阶段追问不挡出牌/);
|
||||
assert.match(prompt, /不得询问外貌、体质、胎记或疤痕/);
|
||||
@@ -294,7 +296,7 @@ test("server-loaded Skill is bound before the provider and the first model step
|
||||
assert.equal(typeof firstStep?.toolChoice, "string");
|
||||
assert.equal(await observedStreamOptions.prepareStep?.({ stepNumber: 1 }), undefined);
|
||||
assert.equal(observedStreamOptions.modelSettings?.maxOutputTokens, 8192);
|
||||
assert.deepEqual(observedStreamOptions.providerOptions?.openai, { thinking: { type: "disabled" } });
|
||||
assert.deepEqual(observedStreamOptions.providerOptions?.openai, { thinking: { type: "enabled" } });
|
||||
assert.equal(emitted.filter((event) => event.type === "skill.bound").length, 1);
|
||||
assert.equal(emitted.some((event) => event.type === "run.completed"), true);
|
||||
assert.equal(
|
||||
|
||||
Reference in New Issue
Block a user