diff --git a/hesabixCore/src/Service/AI/AIService.php b/hesabixCore/src/Service/AI/AIService.php index 95a5f06..c43646b 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 aba3320..a98f5b8 100644 --- a/webUI/src/views/wizard/home.vue +++ b/webUI/src/views/wizard/home.vue @@ -1,267 +1,241 @@