[2025-09-26 02:54:06] INFO: === Prompt15AllPartJob START ===
[2025-09-26 02:54:06] INFO: Question ID: 123
[2025-09-26 02:54:06] INFO: JSON Data: {"essayPrompt":"Write a paragraph describing your house or apartment where you live.\nYou should write at least 100 words.","essay":"I live in a small house with my family. It has one floor and five rooms : a living room ,a kitchen,a bathroom and two bedroom.My bedroom is not too big,but it has a bed, a study desk and a wardrobe.i often study and read there.The living room is the place where my family garthes to chat after meals.The kitchen is next to the living room and my mother cooks meals everyday.In front of the house, there is a small yard where my family parks the car and plays.My house is simple,but i feel happy and comfortable.","idPrompt":15,"sample":"Write a paragraph describing your house or apartment where you live. \n\nYou should write at least 100 words.","essay_prompt":"Write a paragraph describing your house or apartment where you live.\nYou should write at least 100 words.","test_site_prompt_id":15}
[2025-09-26 02:54:06] INFO: Calling Testsite15::resultWritePart with partNumber = 5
[2025-09-26 02:58:09] INFO: GPT Response received
[2025-09-26 02:58:09] INFO: Raw response content length: 949
[2025-09-26 02:58:09] INFO: Raw response preview: {
    "criteria": "Task Response",
    "score": "3.0",
    "feedback": {
        "explanation": "Bài viết bám sát đề, nêu số phòng, công năng và cảm nhận. Tuy nhiên ý tưởng đ...
[2025-09-26 02:58:09] INFO: Token usage - Total: 3952, Prompt: 646, Completion: 3306
[2025-09-26 02:58:09] INFO: Decoded JSON result: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u00e0i vi\u1ebft b\u00e1m s\u00e1t \u0111\u1ec1, n\u00eau s\u1ed1 ph\u00f2ng, c\u00f4ng n\u0103ng v\u00e0 c\u1ea3m nh\u1eadn. Tuy nhi\u00ean \u00fd t\u01b0\u1edfng \u0111\u01a1n gi\u1ea3n, thi\u00ean v\u1ec1 li\u1ec7t k\u00ea, thi\u1ebfu chi ti\u1ebft n\u1ed5i b\u1eadt v\u00e0 nguy\u00ean nh\u00e2n\/\u00fd ngh\u0129a; v\u00ed d\u1ee5 c\u00f2n chung chung, ch\u01b0a ph\u00e1t tri\u1ec3n n\u00ean m\u1ee9c \u0111\u1ed9 \u0111\u00e1p \u1ee9ng nhi\u1ec7m v\u1ee5 c\u00f2n h\u1ea1n ch\u1ebf.","examples":"\u201cIt has one floor and five rooms\u201d, \u201cThe living room is the place where my family garthes to chat after meals.\u201d, \u201cMy house is simple,but i feel happy and comfortable.\u201d","suggestions":"B\u1ed5 sung chi ti\u1ebft c\u1ee5 th\u1ec3 (m\u00e0u s\u1eafc, \u00e1nh s\u00e1ng, k\u00edch th\u01b0\u1edbc \u01b0\u1edbc l\u01b0\u1ee3ng, \u0111\u1ed3 v\u1eadt n\u1ed5i b\u1eadt), m\u00f4 t\u1ea3 b\u1ed1 c\u1ee5c (v\u1ecb tr\u00ed c\u00e1c ph\u00f2ng) v\u00e0 l\u00fd do khi\u1ebfn b\u1ea1n th\u1ea5y tho\u1ea3i m\u00e1i. Th\u00eam m\u1ed9t ho\u1ea1t \u0111\u1ed9ng\/nh\u1eafc l\u1ea1i k\u1ef7 ni\u1ec7m c\u1ee5 th\u1ec3 \u0111\u1ec3 minh h\u1ecda, tr\u00e1nh ch\u1ec9 li\u1ec7t k\u00ea."}}
[2025-09-26 02:58:09] WARNING: Unexpected response format: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u00e0i vi\u1ebft b\u00e1m s\u00e1t \u0111\u1ec1, n\u00eau s\u1ed1 ph\u00f2ng, c\u00f4ng n\u0103ng v\u00e0 c\u1ea3m nh\u1eadn. Tuy nhi\u00ean \u00fd t\u01b0\u1edfng \u0111\u01a1n gi\u1ea3n, thi\u00ean v\u1ec1 li\u1ec7t k\u00ea, thi\u1ebfu chi ti\u1ebft n\u1ed5i b\u1eadt v\u00e0 nguy\u00ean nh\u00e2n\/\u00fd ngh\u0129a; v\u00ed d\u1ee5 c\u00f2n chung chung, ch\u01b0a ph\u00e1t tri\u1ec3n n\u00ean m\u1ee9c \u0111\u1ed9 \u0111\u00e1p \u1ee9ng nhi\u1ec7m v\u1ee5 c\u00f2n h\u1ea1n ch\u1ebf.","examples":"\u201cIt has one floor and five rooms\u201d, \u201cThe living room is the place where my family garthes to chat after meals.\u201d, \u201cMy house is simple,but i feel happy and comfortable.\u201d","suggestions":"B\u1ed5 sung chi ti\u1ebft c\u1ee5 th\u1ec3 (m\u00e0u s\u1eafc, \u00e1nh s\u00e1ng, k\u00edch th\u01b0\u1edbc \u01b0\u1edbc l\u01b0\u1ee3ng, \u0111\u1ed3 v\u1eadt n\u1ed5i b\u1eadt), m\u00f4 t\u1ea3 b\u1ed1 c\u1ee5c (v\u1ecb tr\u00ed c\u00e1c ph\u00f2ng) v\u00e0 l\u00fd do khi\u1ebfn b\u1ea1n th\u1ea5y tho\u1ea3i m\u00e1i. Th\u00eam m\u1ed9t ho\u1ea1t \u0111\u1ed9ng\/nh\u1eafc l\u1ea1i k\u1ef7 ni\u1ec7m c\u1ee5 th\u1ec3 \u0111\u1ec3 minh h\u1ecda, tr\u00e1nh ch\u1ec9 li\u1ec7t k\u00ea."}}
[2025-09-26 02:58:09] ERROR: === Prompt15AllPartJob FAILED ===
[2025-09-26 02:58:09] ERROR: Question ID: 123
[2025-09-26 02:58:09] ERROR: Error message: Invalid response format from GPT
[2025-09-26 02:58:09] ERROR: Stack trace: #0 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Jobs\Testsite\Prompt15\Prompt15AllPartJob->handle()
#1 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#2 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\Container\Util::unwrapIfClosure()
#3 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#4 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/Container.php(696): Illuminate\Container\BoundMethod::call()
#5 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(126): Illuminate\Container\Container->call()
#6 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(170): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}()
#7 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(127): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#8 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(130): Illuminate\Pipeline\Pipeline->then()
#9 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\Bus\Dispatcher->dispatchNow()
#10 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(170): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue\{closure}()
#11 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(127): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#12 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(121): Illuminate\Pipeline\Pipeline->then()
#13 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(69): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware()
#14 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(102): Illuminate\Queue\CallQueuedHandler->call()
#15 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(442): Illuminate\Queue\Jobs\Job->fire()
#16 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(392): Illuminate\Queue\Worker->process()
#17 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(178): Illuminate\Queue\Worker->runJob()
#18 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(149): Illuminate\Queue\Worker->daemon()
#19 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(132): Illuminate\Queue\Console\WorkCommand->runWorker()
#20 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#21 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#22 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\Container\Util::unwrapIfClosure()
#23 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#24 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/Container.php(696): Illuminate\Container\BoundMethod::call()
#25 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Console/Command.php(213): Illuminate\Container\Container->call()
#26 /var/www/html/lms_hocmai/vendor/symfony/console/Command/Command.php(318): Illuminate\Console\Command->execute()
#27 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Symfony\Component\Console\Command\Command->run()
#28 /var/www/html/lms_hocmai/vendor/symfony/console/Application.php(1110): Illuminate\Console\Command->run()
#29 /var/www/html/lms_hocmai/vendor/symfony/console/Application.php(359): Symfony\Component\Console\Application->doRunCommand()
#30 /var/www/html/lms_hocmai/vendor/symfony/console/Application.php(194): Symfony\Component\Console\Application->doRun()
#31 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(198): Symfony\Component\Console\Application->run()
#32 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1235): Illuminate\Foundation\Console\Kernel->handle()
#33 /var/www/html/lms_hocmai/artisan(13): Illuminate\Foundation\Application->handleCommand()
#34 {main}
[2025-09-26 03:03:00] WARNING: === Prompt15AllPartJob FAILED - Starting Fallback ===
[2025-09-26 03:03:00] WARNING: Original error: App\Jobs\Testsite\Prompt15\Prompt15AllPartJob has been attempted too many times.
[2025-09-26 03:03:00] WARNING: Question ID: 123
[2025-09-26 03:03:00] WARNING: Fallback to GPT-4.1...
[2025-09-26 03:03:00] INFO: Calling Testsite15::resultWritePart with GPT-4.1 fallback
[2025-09-26 03:05:21] INFO: GPT-4.1 Response received
[2025-09-26 03:05:21] INFO: Raw response content length: 915
[2025-09-26 03:05:21] INFO: Raw response preview: {
    "criteria": "Task Response",
    "score": "3.0",
    "feedback": {
        "explanation": "Bài viết đúng chủ đề, nêu cấu trúc nhà và công năng các phòng. Tuy vậy, ý phát ...
[2025-09-26 03:05:21] INFO: Token usage - Total: 5041, Prompt: 646, Completion: 4395
[2025-09-26 03:05:21] INFO: Decoded JSON result: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u00e0i vi\u1ebft \u0111\u00fang ch\u1ee7 \u0111\u1ec1, n\u00eau c\u1ea5u tr\u00fac nh\u00e0 v\u00e0 c\u00f4ng n\u0103ng c\u00e1c ph\u00f2ng. Tuy v\u1eady, \u00fd ph\u00e1t tri\u1ec3n c\u00f2n m\u1ecfng, thi\u00ean v\u1ec1 li\u1ec7t k\u00ea, thi\u1ebfu l\u00fd do v\u00e0 chi ti\u1ebft c\u1ee5 th\u1ec3. \u0110\u1ed9 d\u00e0i h\u1ea1n ch\u1ebf (kho\u1ea3ng 100 t\u1eeb) n\u00ean b\u1ecb tr\u1ea7n \u0111i\u1ec3m; m\u1ee9c thuy\u1ebft ph\u1ee5c ch\u01b0a cao.","examples":"\u201cIt has one floor and five rooms\u201d; \u201cThe living room is the place where my family garthes to chat after meals.\u201d; \u201cMy house is simple,but i feel happy and comfortable..\u201d","suggestions":"Th\u00eam m\u00f4 t\u1ea3 c\u1ee5 th\u1ec3 (m\u00e0u s\u1eafc, \u00e1nh s\u00e1ng, k\u00edch th\u01b0\u1edbc), \u0111\u1ed3 n\u1ed9i th\u1ea5t n\u1ed5i b\u1eadt, b\u1ed1 c\u1ee5c ph\u00f2ng v\u00e0 l\u00fd do b\u1ea1n th\u00edch t\u1eebng khu; k\u00e8m v\u00ed d\u1ee5 ho\u1ea1t \u0111\u1ed9ng h\u1eb1ng ng\u00e0y. D\u00f9ng t\u1eeb n\u1ed1i (because, for example) \u0111\u1ec3 li\u00ean k\u1ebft \u00fd v\u00e0 m\u1edf r\u1ed9ng l\u00ean 150 t\u1eeb."}}
[2025-09-26 03:05:21] WARNING: Unexpected response format: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u00e0i vi\u1ebft \u0111\u00fang ch\u1ee7 \u0111\u1ec1, n\u00eau c\u1ea5u tr\u00fac nh\u00e0 v\u00e0 c\u00f4ng n\u0103ng c\u00e1c ph\u00f2ng. Tuy v\u1eady, \u00fd ph\u00e1t tri\u1ec3n c\u00f2n m\u1ecfng, thi\u00ean v\u1ec1 li\u1ec7t k\u00ea, thi\u1ebfu l\u00fd do v\u00e0 chi ti\u1ebft c\u1ee5 th\u1ec3. \u0110\u1ed9 d\u00e0i h\u1ea1n ch\u1ebf (kho\u1ea3ng 100 t\u1eeb) n\u00ean b\u1ecb tr\u1ea7n \u0111i\u1ec3m; m\u1ee9c thuy\u1ebft ph\u1ee5c ch\u01b0a cao.","examples":"\u201cIt has one floor and five rooms\u201d; \u201cThe living room is the place where my family garthes to chat after meals.\u201d; \u201cMy house is simple,but i feel happy and comfortable..\u201d","suggestions":"Th\u00eam m\u00f4 t\u1ea3 c\u1ee5 th\u1ec3 (m\u00e0u s\u1eafc, \u00e1nh s\u00e1ng, k\u00edch th\u01b0\u1edbc), \u0111\u1ed3 n\u1ed9i th\u1ea5t n\u1ed5i b\u1eadt, b\u1ed1 c\u1ee5c ph\u00f2ng v\u00e0 l\u00fd do b\u1ea1n th\u00edch t\u1eebng khu; k\u00e8m v\u00ed d\u1ee5 ho\u1ea1t \u0111\u1ed9ng h\u1eb1ng ng\u00e0y. D\u00f9ng t\u1eeb n\u1ed1i (because, for example) \u0111\u1ec3 li\u00ean k\u1ebft \u00fd v\u00e0 m\u1edf r\u1ed9ng l\u00ean 150 t\u1eeb."}}
[2025-09-26 03:05:21] ERROR: === Fallback GPT-4.1 FAILED ===
[2025-09-26 03:05:21] ERROR: Question ID: 123
[2025-09-26 03:05:21] ERROR: Fallback error message: Invalid response format from GPT
[2025-09-26 03:05:21] ERROR: Fallback stack trace: #0 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(296): App\Jobs\Testsite\Prompt15\Prompt15AllPartJob->failed()
#1 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(254): Illuminate\Queue\CallQueuedHandler->failed()
#2 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(219): Illuminate\Queue\Jobs\Job->failed()
#3 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(605): Illuminate\Queue\Jobs\Job->fail()
#4 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(528): Illuminate\Queue\Worker->failJob()
#5 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(431): Illuminate\Queue\Worker->markJobAsFailedIfAlreadyExceedsMaxAttempts()
#6 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(392): Illuminate\Queue\Worker->process()
#7 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(178): Illuminate\Queue\Worker->runJob()
#8 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(149): Illuminate\Queue\Worker->daemon()
#9 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(132): Illuminate\Queue\Console\WorkCommand->runWorker()
#10 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#11 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#12 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\Container\Util::unwrapIfClosure()
#13 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#14 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/Container.php(696): Illuminate\Container\BoundMethod::call()
#15 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Console/Command.php(213): Illuminate\Container\Container->call()
#16 /var/www/html/lms_hocmai/vendor/symfony/console/Command/Command.php(318): Illuminate\Console\Command->execute()
#17 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Symfony\Component\Console\Command\Command->run()
#18 /var/www/html/lms_hocmai/vendor/symfony/console/Application.php(1110): Illuminate\Console\Command->run()
#19 /var/www/html/lms_hocmai/vendor/symfony/console/Application.php(359): Symfony\Component\Console\Application->doRunCommand()
#20 /var/www/html/lms_hocmai/vendor/symfony/console/Application.php(194): Symfony\Component\Console\Application->doRun()
#21 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(198): Symfony\Component\Console\Application->run()
#22 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1235): Illuminate\Foundation\Console\Kernel->handle()
#23 /var/www/html/lms_hocmai/artisan(13): Illuminate\Foundation\Application->handleCommand()
#24 {main}
