mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
1688 PO Automation Project, feedback from Brian
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user