From 26121aba26a09792f4b81d7879e96f33828a251c Mon Sep 17 00:00:00 2001 From: Babak Alizadeh Date: Sat, 19 Jul 2025 13:04:23 +0000 Subject: [PATCH] redesign wizard home --- hesabixCore/src/Service/AI/AIService.php | 3 + webUI/src/views/wizard/home.vue | 3123 ++++++++++++++++------ 2 files changed, 2378 insertions(+), 748 deletions(-) diff --git a/hesabixCore/src/Service/AI/AIService.php b/hesabixCore/src/Service/AI/AIService.php index 95a5f062..c43646be 100644 --- a/hesabixCore/src/Service/AI/AIService.php +++ b/hesabixCore/src/Service/AI/AIService.php @@ -78,10 +78,13 @@ class AIService // اضافه کردن debug logging error_log('AIService Debug - AI Response: ' . $aiResponse); error_log('AIService Debug - Processed Response: ' . json_encode($processedResponse)); + error_log('AIService Debug - Usage Data: ' . json_encode($response['data']['usage'] ?? 'No usage data')); + error_log('AIService Debug - Cost Data: ' . json_encode($cost)); return [ 'success' => true, 'response' => $processedResponse['response'], + 'usage' => $response['data']['usage'] ?? null, 'cost' => $cost, 'service' => $service, 'model' => $this->getAIModel(), diff --git a/webUI/src/views/wizard/home.vue b/webUI/src/views/wizard/home.vue index aba33206..a98f5b89 100644 --- a/webUI/src/views/wizard/home.vue +++ b/webUI/src/views/wizard/home.vue @@ -1,267 +1,241 @@