diff --git a/app/Classes/Modules/Anthropic/Services/CreatesClaudeResponse.php b/app/Classes/Modules/Anthropic/Services/CreatesClaudeResponse.php index 3e3fd830..2d89daa3 100644 --- a/app/Classes/Modules/Anthropic/Services/CreatesClaudeResponse.php +++ b/app/Classes/Modules/Anthropic/Services/CreatesClaudeResponse.php @@ -19,7 +19,7 @@ class CreatesClaudeResponse public function execute(string $userPrompt, string $model = "") { try { // Default to the latest recommended Claude model - $modelId = $model ?? config('anthropic.default_model', 'claude-haiku-4-5-20251001'); + $modelId = $model ?? config('anthropic.default_model', 'claude-sonnet-4-5-20250929'); $data = [ 'model' => $modelId, diff --git a/app/Classes/Modules/Anthropic/Services/CreatesClaudeResponseWithFiles.php b/app/Classes/Modules/Anthropic/Services/CreatesClaudeResponseWithFiles.php index ae888a6e..0acd806c 100644 --- a/app/Classes/Modules/Anthropic/Services/CreatesClaudeResponseWithFiles.php +++ b/app/Classes/Modules/Anthropic/Services/CreatesClaudeResponseWithFiles.php @@ -37,7 +37,7 @@ class CreatesClaudeResponseWithFiles 'anthropic-beta' => 'files-api-2025-04-14', 'Content-Type' => 'application/json', ])->post(config('anthropic.base_url') . '/v1/messages', [ - 'model' => config('anthropic.default_model', 'claude-haiku-4-5-20251001'), + 'model' => config('anthropic.default_model', 'claude-sonnet-4-5-20250929'), 'max_tokens' => 16384, 'messages' => [ [ diff --git a/app/Classes/Modules/Transactions/Processors/ETLPDFPurchaseOrderClaudeProcessor.php b/app/Classes/Modules/Transactions/Processors/ETLPDFPurchaseOrderClaudeProcessor.php index b633b32d..2549c10f 100644 --- a/app/Classes/Modules/Transactions/Processors/ETLPDFPurchaseOrderClaudeProcessor.php +++ b/app/Classes/Modules/Transactions/Processors/ETLPDFPurchaseOrderClaudeProcessor.php @@ -124,6 +124,8 @@ class ETLPDFPurchaseOrderClaudeProcessor * floatval(str_replace(',', '', $product['unit_price'])); }); + Log::info('total: '. (string) $total); + $object = new TransactionObject( $billNumber, TransactionType::PURCHASE_ORDER,