Skip to content

Commit 7f6f108

Browse files
clucraftclaude
andcommitted
Switch from Sonnet 4 to Haiku 3.5 to reduce API costs
Sonnet 4 is ~4-12x more expensive than Haiku 3.5. Haiku 3.5 should still be capable enough for price extraction. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b9d8d15 commit 7f6f108

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-sonnet-4-20250514',
176+
model: 'claude-3-5-haiku-20241022',
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-sonnet-4-20250514',
272+
model: 'claude-3-5-haiku-20241022',
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-sonnet-4-20250514',
628+
model: 'claude-3-5-haiku-20241022',
629629
max_tokens: 512,
630630
messages: [{ role: 'user', content: prompt }],
631631
});

0 commit comments

Comments
 (0)