From f05e16a826aa4040df08c0a1e8df0f45260171d2 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Sat, 25 Apr 2026 21:41:50 -0400 Subject: [PATCH] Switch AI price check to Haiku for cost and speed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Testing Haiku 4.5 for catalog price analysis — structured JSON output with explicit rules is well within its capabilities. Revert to Sonnet if result quality is insufficient. Co-Authored-By: Claude Sonnet 4.6 --- .../Services/AiCatalogPriceCheckService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowderCoating.Infrastructure/Services/AiCatalogPriceCheckService.cs b/src/PowderCoating.Infrastructure/Services/AiCatalogPriceCheckService.cs index 6cfe391..dd689e1 100644 --- a/src/PowderCoating.Infrastructure/Services/AiCatalogPriceCheckService.cs +++ b/src/PowderCoating.Infrastructure/Services/AiCatalogPriceCheckService.cs @@ -20,7 +20,7 @@ public class AiCatalogPriceCheckService : IAiCatalogPriceCheckService private readonly IConfiguration _config; private readonly ILogger _logger; - private const string Model = "claude-sonnet-4-6"; + private const string Model = "claude-haiku-4-5-20251001"; private const int BatchSize = 25; private const int MaxConcurrentBatches = 1; // Tier 1 output limit is 8,000 TPM — sequential avoids bursting past it private const int RateLimitRetrySeconds = 65; // wait just past the 60s window before retrying a 429