1688 PO Automation Project

This commit is contained in:
Dillon Ngo
2026-01-15 02:19:58 +08:00
parent 168265c406
commit 4fb2366fab
@@ -81,6 +81,8 @@ class ETLPDFPurchaseOrderClaudeProcessor
// Upload PDFs to Claude
$fileIds = $this->uploadsClaudeFiles->execute($tempPaths);
Log::info('fileIds: '. json_encode($fileIds));
$kvp = KeyValuePair::where(
'key',
KVPKey::CLAUDE_PROMPT_PREFIX . 'EXTRACT_1'
@@ -93,6 +95,8 @@ class ETLPDFPurchaseOrderClaudeProcessor
$userPrompt = $kvp->value;
$response = $this->createsClaudeResponseWithFiles->execute($userPrompt, $fileIds);
Log::info('response: '. json_encode($response));
$textContent = $response['content'][0]['text'] ?? '[]';
// Strip ```json fences