Skip to content

Commit d2e1cc7

Browse files
clucraftclaude
andcommitted
Switch from Claude Haiku to Claude Sonnet for better accuracy
Haiku was being too literal in price extraction, often "correcting" valid alternative prices (like Amazon other sellers) to the main buy box price. Sonnet is more capable and should handle nuanced cases better. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6327fd6 commit d2e1cc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/src/services/ai-extractor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ async function extractWithAnthropic(
173173
const preparedHtml = prepareHtmlForAI(html);
174174

175175
const response = await anthropic.messages.create({
176-
model: 'claude-3-haiku-20240307',
176+
model: 'claude-sonnet-4-20250514',
177177
max_tokens: 1024,
178178
messages: [
179179
{
@@ -269,7 +269,7 @@ async function verifyWithAnthropic(
269269
.replace('$CURRENCY$', currency) + preparedHtml;
270270

271271
const response = await anthropic.messages.create({
272-
model: 'claude-3-haiku-20240307',
272+
model: 'claude-sonnet-4-20250514',
273273
max_tokens: 512,
274274
messages: [{ role: 'user', content: prompt }],
275275
});
@@ -625,7 +625,7 @@ async function arbitrateWithAnthropic(
625625
const prompt = ARBITRATION_PROMPT.replace('$CANDIDATES$', candidatesList) + preparedHtml;
626626

627627
const response = await anthropic.messages.create({
628-
model: 'claude-3-haiku-20240307',
628+
model: 'claude-sonnet-4-20250514',
629629
max_tokens: 512,
630630
messages: [{ role: 'user', content: prompt }],
631631
});

0 commit comments

Comments
 (0)