Skip to content

Commit e7c7fca

Browse files
sammacbethclaude
andauthored
Switch the frame LLM classifier to gpt-5.4-nano (#216)
OpenAI has retired gpt-4.1-nano-2025-04-14, so every frame LLM call and both button text verification calls now fail. checkLLM logs the error and returns false, so crawls record no frame LLM detections. Use the gpt-5.4-nano-2026-03-17 snapshot for the frame classifier and the verification calls. It accepts temperature 0. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fe5c2be commit e7c7fca

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎post-processing/generate-autoconsent-rules/detection.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Examples of NON-cookie popup text:
110110
`;
111111

112112
const POPUP_LLM_MODEL = 'gpt-4o-mini';
113-
const FRAME_LLM_MODEL = 'gpt-4.1-nano-2025-04-14';
113+
const FRAME_LLM_MODEL = 'gpt-5.4-nano-2026-03-17';
114114
// temperature 0 makes repeated classifications of the same text more consistent
115115
const LLM_TEMPERATURE = 0;
116116
// frame texts longer than this go to the frame LLM as an excerpt (frameExcerpt), which keeps consent notices and drops

‎post-processing/generate-autoconsent-rules/verification.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function verifyButtonTexts({ openai, rejectButtonTextsFile, otherButtonTex
3939

4040
try {
4141
const completionFalsePositive = await openai.beta.chat.completions.parse({
42-
model: 'gpt-4.1-nano-2025-04-14',
42+
model: 'gpt-5.4-nano-2026-03-17',
4343
messages: [
4444
{ role: 'system', content: systemPromptFalsePositive },
4545
{
@@ -59,7 +59,7 @@ async function verifyButtonTexts({ openai, rejectButtonTextsFile, otherButtonTex
5959

6060
try {
6161
const completionFalseNegative = await openai.beta.chat.completions.parse({
62-
model: 'gpt-4.1-nano-2025-04-14',
62+
model: 'gpt-5.4-nano-2026-03-17',
6363
messages: [
6464
{ role: 'system', content: systemPromptFalseNegative },
6565
{

‎tests/post-processing/detection.mocha.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe('detection', () => {
9292
const frame = fakeOpenAI(false);
9393
assert.strictEqual(await classifyFrameTextLLM(frame.openai, 'frame text'), false);
9494
assert.strictEqual(frame.requests[0].model, FRAME_LLM_MODEL);
95-
assert.strictEqual(FRAME_LLM_MODEL, 'gpt-4.1-nano-2025-04-14');
95+
assert.strictEqual(FRAME_LLM_MODEL, 'gpt-5.4-nano-2026-03-17');
9696
assert.strictEqual(frame.requests[0].messages[0].content, FRAME_LLM_PROMPT);
9797
assert.strictEqual(frame.requests[0].messages[1].content, 'frame text');
9898
assert.strictEqual(frame.requests[0].temperature, 0);

0 commit comments

Comments
 (0)