Merge branch 'dillon/122-1688-po-automation-project' into vapor/development

This commit is contained in:
Dillon Ngo
2026-01-13 17:24:43 +08:00
3 changed files with 4 additions and 2 deletions
@@ -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,
@@ -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' => [
[
@@ -124,6 +124,8 @@ class ETLPDFPurchaseOrderClaudeProcessor
* floatval(str_replace(',', '', $product['unit_price']));
});
Log::info('total: '. (string) $total);
$object = new TransactionObject(
$billNumber,
TransactionType::PURCHASE_ORDER,