Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions server/collectors/__tests__/showcasePrompts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,18 @@ test("catalog prompts exist for text, structural, and mixed pickers", () => {
assert.ok(textCount >= 2);
});

test("DecodeBench uses Showcase structural prompts at temperature 0, thinking off", () => {
assert.match(benchSrc, /pickShowcasePrompts\("structural"/);
assert.match(benchSrc, /withFillToMaxInstruction/);
test("DecodeBench uses the lab structured protocol at temperature 0, thinking off", () => {
// 1.8.3 moved DecodeBench off the Showcase structural catalog + fill-to-max
// and onto the lab structured protocol (count 1 -> 200); 1.8.4 added the
// output-type picker. These assertions still referenced the removed API.
assert.match(benchSrc, /pickDecodeBenchPrompts\(/);
assert.match(benchSrc, /decodeBenchPromptForType\(/);
assert.match(benchSrc, /normalizeDecodeBenchType\(/);
assert.match(benchSrc, /temperature:\s*0/);
assert.match(benchSrc, /top_p:\s*1/);
assert.match(benchSrc, /applyThinkingFlags\(body,\s*modelId,\s*false\)/);
assert.match(benchSrc, /min_tokens:\s*maxTokens/);
assert.doesNotMatch(benchSrc, /withFillToMaxInstruction/);
assert.doesNotMatch(benchSrc, /uniquePrefillPrefix/);
assert.doesNotMatch(benchSrc, /BENCH_PROMPTS/);
});