[2025-09-25 10:03:48] INFO: === Prompt15AllPartJob START ===
[2025-09-25 10:03:48] INFO: Question ID: 92
[2025-09-25 10:03:48] 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-25 10:03:48] INFO: Calling Testsite15::resultWritePart with partNumber = 5
[2025-09-25 10:04:23] INFO: GPT Response received
[2025-09-25 10:04:23] INFO: Raw response content length: 984
[2025-09-25 10:04:23] INFO: Raw response preview: {
    "criteria": "Task Response",
    "score": "3.0",
    "feedback": {
        "explanation": "Bạn mô tả được ngôi nhà và các phòng, bám đề. Tuy vậy, ý tưởng lặp và phát ...
[2025-09-25 10:04:23] INFO: Token usage - Total: 4733, Prompt: 646, Completion: 4087
[2025-09-25 10:04:23] INFO: Decoded JSON result: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u1ea1n m\u00f4 t\u1ea3 \u0111\u01b0\u1ee3c ng\u00f4i nh\u00e0 v\u00e0 c\u00e1c ph\u00f2ng, b\u00e1m \u0111\u1ec1. Tuy v\u1eady, \u00fd t\u01b0\u1edfng l\u1eb7p v\u00e0 ph\u00e1t tri\u1ec3n n\u00f4ng, thi\u1ebfu chi ti\u1ebft c\u1ee5 th\u1ec3 v\u00e0 \u00edt li\u00ean k\u1ebft. T\u1eeb v\u1ef1ng\/c\u1ea5u tr\u00fac \u0111\u01a1n gi\u1ea3n, nhi\u1ec1u l\u1ed7i c\u01a1 b\u1ea3n, l\u00e0m suy gi\u1ea3m m\u1ee9c \u0111\u1ed9 ho\u00e0n th\u00e0nh y\u00eau c\u1ea7u Task Response.","examples":"\u201cIt has one floor and five rooms\u201d, \u201cMy bedroom is not too big\u201d, \u201cThe kitchen is next to the living room\u201d \u2014 c\u00e1c c\u00e2u n\u00eau th\u00f4ng tin nh\u01b0ng c\u00f2n chung chung, thi\u1ebfu l\u00fd do\/chi ti\u1ebft m\u00f4 t\u1ea3 c\u1ee5 th\u1ec3.","suggestions":"B\u1ed5 sung chi ti\u1ebft c\u1ee5 th\u1ec3 (k\u00edch th\u01b0\u1edbc, m\u00e0u s\u1eafc, v\u1ecb tr\u00ed, \u0111\u1ed3 n\u1ed9i th\u1ea5t n\u1ed5i b\u1eadt) v\u00e0 l\u00fd do b\u1ea1n th\u00edch t\u1eebng ph\u00f2ng; d\u00f9ng li\u00ean k\u1ebft (for example, moreover, because). Vi\u1ebft 150\u2013180 t\u1eeb, c\u00f3 c\u00e2u ch\u1ee7 \u0111\u1ec1\/k\u1ebft lu\u1eadn, tr\u00e1nh l\u1eb7p, \u0111a d\u1ea1ng h\u00f3a t\u1eeb v\u1ef1ng v\u00e0 c\u1ea5u tr\u00fac."}}
[2025-09-25 10:04:23] WARNING: Unexpected response format: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u1ea1n m\u00f4 t\u1ea3 \u0111\u01b0\u1ee3c ng\u00f4i nh\u00e0 v\u00e0 c\u00e1c ph\u00f2ng, b\u00e1m \u0111\u1ec1. Tuy v\u1eady, \u00fd t\u01b0\u1edfng l\u1eb7p v\u00e0 ph\u00e1t tri\u1ec3n n\u00f4ng, thi\u1ebfu chi ti\u1ebft c\u1ee5 th\u1ec3 v\u00e0 \u00edt li\u00ean k\u1ebft. T\u1eeb v\u1ef1ng\/c\u1ea5u tr\u00fac \u0111\u01a1n gi\u1ea3n, nhi\u1ec1u l\u1ed7i c\u01a1 b\u1ea3n, l\u00e0m suy gi\u1ea3m m\u1ee9c \u0111\u1ed9 ho\u00e0n th\u00e0nh y\u00eau c\u1ea7u Task Response.","examples":"\u201cIt has one floor and five rooms\u201d, \u201cMy bedroom is not too big\u201d, \u201cThe kitchen is next to the living room\u201d \u2014 c\u00e1c c\u00e2u n\u00eau th\u00f4ng tin nh\u01b0ng c\u00f2n chung chung, thi\u1ebfu l\u00fd do\/chi ti\u1ebft m\u00f4 t\u1ea3 c\u1ee5 th\u1ec3.","suggestions":"B\u1ed5 sung chi ti\u1ebft c\u1ee5 th\u1ec3 (k\u00edch th\u01b0\u1edbc, m\u00e0u s\u1eafc, v\u1ecb tr\u00ed, \u0111\u1ed3 n\u1ed9i th\u1ea5t n\u1ed5i b\u1eadt) v\u00e0 l\u00fd do b\u1ea1n th\u00edch t\u1eebng ph\u00f2ng; d\u00f9ng li\u00ean k\u1ebft (for example, moreover, because). Vi\u1ebft 150\u2013180 t\u1eeb, c\u00f3 c\u00e2u ch\u1ee7 \u0111\u1ec1\/k\u1ebft lu\u1eadn, tr\u00e1nh l\u1eb7p, \u0111a d\u1ea1ng h\u00f3a t\u1eeb v\u1ef1ng v\u00e0 c\u1ea5u tr\u00fac."}}
[2025-09-25 10:04:23] ERROR: === Prompt15AllPartJob FAILED ===
[2025-09-25 10:04:23] ERROR: Question ID: 92
[2025-09-25 10:04:23] ERROR: Error message: Invalid response format from GPT
[2025-09-25 10:04:23] 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-25 10:04:23] INFO: === Prompt15AllPartJob START ===
[2025-09-25 10:04:23] INFO: Question ID: 92
[2025-09-25 10:04:23] 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-25 10:04:23] INFO: Calling Testsite15::resultWritePart with partNumber = 5
[2025-09-25 10:04:46] INFO: GPT Response received
[2025-09-25 10:04:46] INFO: Raw response content length: 1016
[2025-09-25 10:04:46] INFO: Raw response preview: {
    "criteria": "Task Response",
    "score": "2.5",
    "feedback": {
        "explanation": "Bạn bám sát đề và mô tả được các phòng, chức năng cơ bản. Tuy nhiên ý tưởng...
[2025-09-25 10:04:46] INFO: Token usage - Total: 2758, Prompt: 646, Completion: 2112
[2025-09-25 10:04:46] INFO: Decoded JSON result: {"criteria":"Task Response","score":"2.5","feedback":{"explanation":"B\u1ea1n b\u00e1m s\u00e1t \u0111\u1ec1 v\u00e0 m\u00f4 t\u1ea3 \u0111\u01b0\u1ee3c c\u00e1c ph\u00f2ng, ch\u1ee9c n\u0103ng c\u01a1 b\u1ea3n. Tuy nhi\u00ean \u00fd t\u01b0\u1edfng \u0111\u01a1n gi\u1ea3n, l\u1eb7p v\u00e0 ch\u01b0a ph\u00e1t tri\u1ec3n; thi\u1ebfu chi ti\u1ebft, v\u00ed d\u1ee5 c\u1ee5 th\u1ec3; t\u1eeb v\u1ef1ng\/c\u1ea5u tr\u00fac h\u1ea1n ch\u1ebf. B\u00e0i kho\u1ea3ng 98 t\u1eeb n\u00ean b\u1ecb tr\u1ea7n 3.0; Task Response gi\u1ea3m th\u00eam v\u00ec ph\u00e1t tri\u1ec3n \u00fd m\u1ecfng.","examples":"\"It has one floor and five rooms\"; \"My bedroom is not too big, but it has a bed, a study desk and a wardrobe\"; \"The living room is the place where my family garthes to chat after meals\".","suggestions":"Ph\u00e1t tri\u1ec3n m\u1ed7i \u00fd b\u1eb1ng chi ti\u1ebft c\u1ee5 th\u1ec3: v\u1ecb tr\u00ed\/phong c\u00e1ch, m\u00e0u s\u1eafc, \u00e1nh s\u00e1ng, di\u1ec7n t\u00edch, v\u1eadt d\u1ee5ng n\u1ed5i b\u1eadt v\u00e0 ho\u1ea1t \u0111\u1ed9ng \u0111i\u1ec3n h\u00ecnh; gi\u1ea3i th\u00edch v\u00ec sao b\u1ea1n th\u00edch t\u1eebng kh\u00f4ng gian. D\u00f9ng v\u00ed d\u1ee5 c\u1ee5 th\u1ec3, li\u00ean t\u1eeb (for example, moreover), tr\u00e1nh l\u1eb7p, v\u00e0 m\u1edf r\u1ed9ng l\u00ean 150\u2013180 t\u1eeb."}}
[2025-09-25 10:04:46] WARNING: Unexpected response format: {"criteria":"Task Response","score":"2.5","feedback":{"explanation":"B\u1ea1n b\u00e1m s\u00e1t \u0111\u1ec1 v\u00e0 m\u00f4 t\u1ea3 \u0111\u01b0\u1ee3c c\u00e1c ph\u00f2ng, ch\u1ee9c n\u0103ng c\u01a1 b\u1ea3n. Tuy nhi\u00ean \u00fd t\u01b0\u1edfng \u0111\u01a1n gi\u1ea3n, l\u1eb7p v\u00e0 ch\u01b0a ph\u00e1t tri\u1ec3n; thi\u1ebfu chi ti\u1ebft, v\u00ed d\u1ee5 c\u1ee5 th\u1ec3; t\u1eeb v\u1ef1ng\/c\u1ea5u tr\u00fac h\u1ea1n ch\u1ebf. B\u00e0i kho\u1ea3ng 98 t\u1eeb n\u00ean b\u1ecb tr\u1ea7n 3.0; Task Response gi\u1ea3m th\u00eam v\u00ec ph\u00e1t tri\u1ec3n \u00fd m\u1ecfng.","examples":"\"It has one floor and five rooms\"; \"My bedroom is not too big, but it has a bed, a study desk and a wardrobe\"; \"The living room is the place where my family garthes to chat after meals\".","suggestions":"Ph\u00e1t tri\u1ec3n m\u1ed7i \u00fd b\u1eb1ng chi ti\u1ebft c\u1ee5 th\u1ec3: v\u1ecb tr\u00ed\/phong c\u00e1ch, m\u00e0u s\u1eafc, \u00e1nh s\u00e1ng, di\u1ec7n t\u00edch, v\u1eadt d\u1ee5ng n\u1ed5i b\u1eadt v\u00e0 ho\u1ea1t \u0111\u1ed9ng \u0111i\u1ec3n h\u00ecnh; gi\u1ea3i th\u00edch v\u00ec sao b\u1ea1n th\u00edch t\u1eebng kh\u00f4ng gian. D\u00f9ng v\u00ed d\u1ee5 c\u1ee5 th\u1ec3, li\u00ean t\u1eeb (for example, moreover), tr\u00e1nh l\u1eb7p, v\u00e0 m\u1edf r\u1ed9ng l\u00ean 150\u2013180 t\u1eeb."}}
[2025-09-25 10:04:46] ERROR: === Prompt15AllPartJob FAILED ===
[2025-09-25 10:04:46] ERROR: Question ID: 92
[2025-09-25 10:04:46] ERROR: Error message: Invalid response format from GPT
[2025-09-25 10:04:46] 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-25 10:04:46] INFO: === Prompt15AllPartJob START ===
[2025-09-25 10:04:46] INFO: Question ID: 92
[2025-09-25 10:04:46] 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-25 10:04:46] INFO: Calling Testsite15::resultWritePart with partNumber = 5
[2025-09-25 10:05:13] INFO: GPT Response received
[2025-09-25 10:05:13] INFO: Raw response content length: 889
[2025-09-25 10:05:13] INFO: Raw response preview: {
    "criteria": "Task Response",
    "score": "3.0",
    "feedback": {
        "explanation": "Bài viết đúng trọng tâm, mô tả các phòng và công năng cơ bản. Tuy nhiên độ dài ...
[2025-09-25 10:05:13] INFO: Token usage - Total: 3363, Prompt: 646, Completion: 2717
[2025-09-25 10:05:13] INFO: Decoded JSON result: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u00e0i vi\u1ebft \u0111\u00fang tr\u1ecdng t\u00e2m, m\u00f4 t\u1ea3 c\u00e1c ph\u00f2ng v\u00e0 c\u00f4ng n\u0103ng c\u01a1 b\u1ea3n. Tuy nhi\u00ean \u0111\u1ed9 d\u00e0i <150 t\u1eeb n\u00ean b\u1ecb gi\u1edbi h\u1ea1n \u0111i\u1ec3m. \u00dd t\u01b0\u1edfng c\u00f2n \u0111\u01a1n gi\u1ea3n, \u00edt ph\u00e1t tri\u1ec3n, thi\u1ebfu chi ti\u1ebft c\u1ee5 th\u1ec3 v\u00e0 v\u00ed d\u1ee5 minh h\u1ecda n\u00ean t\u00ednh thuy\u1ebft ph\u1ee5c ch\u01b0a cao.","examples":"\"It has one floor and five rooms\"; \"My bedroom is not too big\"; \"The kitchen is next to the living room\"; \"there is a small yard\".","suggestions":"H\u00e3y m\u1edf r\u1ed9ng l\u00ean \u2265150 t\u1eeb v\u00e0 ph\u00e1t tri\u1ec3n chi ti\u1ebft: b\u1ed1 c\u1ee5c, k\u00edch th\u01b0\u1edbc, m\u00e0u s\u1eafc, \u00e1nh s\u00e1ng, \u0111\u1ed3 \u0111\u1ea1c n\u1ed5i b\u1eadt, c\u00e1ch s\u1eed d\u1ee5ng t\u1eebng ph\u00f2ng (v\u00ed d\u1ee5 th\u1eddi \u0111i\u1ec3m, ho\u1ea1t \u0111\u1ed9ng), l\u00fd do b\u1ea1n y\u00eau th\u00edch, \u01b0u\/nh\u01b0\u1ee3c \u0111i\u1ec3m. Th\u00eam v\u00ed d\u1ee5 c\u1ee5 th\u1ec3 \u0111\u1ec3 minh h\u1ecda."}}
[2025-09-25 10:05:13] WARNING: Unexpected response format: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u00e0i vi\u1ebft \u0111\u00fang tr\u1ecdng t\u00e2m, m\u00f4 t\u1ea3 c\u00e1c ph\u00f2ng v\u00e0 c\u00f4ng n\u0103ng c\u01a1 b\u1ea3n. Tuy nhi\u00ean \u0111\u1ed9 d\u00e0i <150 t\u1eeb n\u00ean b\u1ecb gi\u1edbi h\u1ea1n \u0111i\u1ec3m. \u00dd t\u01b0\u1edfng c\u00f2n \u0111\u01a1n gi\u1ea3n, \u00edt ph\u00e1t tri\u1ec3n, thi\u1ebfu chi ti\u1ebft c\u1ee5 th\u1ec3 v\u00e0 v\u00ed d\u1ee5 minh h\u1ecda n\u00ean t\u00ednh thuy\u1ebft ph\u1ee5c ch\u01b0a cao.","examples":"\"It has one floor and five rooms\"; \"My bedroom is not too big\"; \"The kitchen is next to the living room\"; \"there is a small yard\".","suggestions":"H\u00e3y m\u1edf r\u1ed9ng l\u00ean \u2265150 t\u1eeb v\u00e0 ph\u00e1t tri\u1ec3n chi ti\u1ebft: b\u1ed1 c\u1ee5c, k\u00edch th\u01b0\u1edbc, m\u00e0u s\u1eafc, \u00e1nh s\u00e1ng, \u0111\u1ed3 \u0111\u1ea1c n\u1ed5i b\u1eadt, c\u00e1ch s\u1eed d\u1ee5ng t\u1eebng ph\u00f2ng (v\u00ed d\u1ee5 th\u1eddi \u0111i\u1ec3m, ho\u1ea1t \u0111\u1ed9ng), l\u00fd do b\u1ea1n y\u00eau th\u00edch, \u01b0u\/nh\u01b0\u1ee3c \u0111i\u1ec3m. Th\u00eam v\u00ed d\u1ee5 c\u1ee5 th\u1ec3 \u0111\u1ec3 minh h\u1ecda."}}
[2025-09-25 10:05:13] ERROR: === Prompt15AllPartJob FAILED ===
[2025-09-25 10:05:13] ERROR: Question ID: 92
[2025-09-25 10:05:13] ERROR: Error message: Invalid response format from GPT
[2025-09-25 10:05:13] 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-25 10:05:13] WARNING: === Prompt15AllPartJob FAILED - Starting Fallback ===
[2025-09-25 10:05:13] WARNING: Original error: Invalid response format from GPT
[2025-09-25 10:05:13] WARNING: Question ID: 92
[2025-09-25 10:05:13] WARNING: Fallback to GPT-4.1...
[2025-09-25 10:05:13] INFO: Calling Testsite15::resultWritePart with GPT-4.1 fallback
[2025-09-25 10:06:27] INFO: GPT-4.1 Response received
[2025-09-25 10:06:27] INFO: Raw response content length: 987
[2025-09-25 10:06:27] INFO: Raw response preview: {
    "criteria": "Task Response",
    "score": "3.0",
    "feedback": {
        "explanation": "Bài viết đúng chủ đề, mô tả số phòng và chức năng. Tuy nhiên ý tưởng đơn gi...
[2025-09-25 10:06:27] INFO: Token usage - Total: 5122, Prompt: 646, Completion: 4476
[2025-09-25 10:06:27] INFO: Decoded JSON result: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u00e0i vi\u1ebft \u0111\u00fang ch\u1ee7 \u0111\u1ec1, m\u00f4 t\u1ea3 s\u1ed1 ph\u00f2ng v\u00e0 ch\u1ee9c n\u0103ng. Tuy nhi\u00ean \u00fd t\u01b0\u1edfng \u0111\u01a1n gi\u1ea3n, ch\u1ee7 y\u1ebfu li\u1ec7t k\u00ea; thi\u1ebfu ph\u00e1t tri\u1ec3n chi\u1ec1u s\u00e2u, chi ti\u1ebft c\u1ee5 th\u1ec3 v\u00e0 li\u00ean k\u1ebft. T\u1eeb v\u1ef1ng\/c\u1ea5u tr\u00fac l\u1eb7p, v\u00ed d\u1ee5 chung chung n\u00ean m\u1ee9c thuy\u1ebft ph\u1ee5c c\u00f2n th\u1ea5p.","examples":"V\u00ed d\u1ee5: \"It has one floor and five rooms...\", \"My bedroom is not too big, but it has...\", \"The kitchen is next to the living room...\". Nh\u1eefng c\u00e2u n\u00e0y ch\u1ee7 y\u1ebfu li\u1ec7t k\u00ea, thi\u1ebfu mi\u00eau t\u1ea3 c\u1ee5 th\u1ec3.","suggestions":"B\u1ed5 sung chi ti\u1ebft c\u1ee5 th\u1ec3 (di\u1ec7n t\u00edch, m\u00e0u t\u01b0\u1eddng, \u00e1nh s\u00e1ng, v\u1eadt li\u1ec7u, m\u00f9i\/\u00e2m thanh), n\u00eau l\u00fd do y\u00eau th\u00edch t\u1eebng ph\u00f2ng v\u00e0 m\u1ed9t ho\u1ea1t \u0111\u1ed9ng \u0111i\u1ec3n h\u00ecnh. D\u00f9ng li\u00ean k\u1ebft (because, so, which) \u0111\u1ec3 ph\u00e1t tri\u1ec3n \u00fd, th\u00eam so s\u00e1nh\/c\u1ea3m x\u00fac \u0111\u1ec3 l\u00e0m \u0111o\u1ea1n mi\u00eau t\u1ea3 s\u1ed1ng \u0111\u1ed9ng."}}
[2025-09-25 10:06:27] WARNING: Unexpected response format: {"criteria":"Task Response","score":"3.0","feedback":{"explanation":"B\u00e0i vi\u1ebft \u0111\u00fang ch\u1ee7 \u0111\u1ec1, m\u00f4 t\u1ea3 s\u1ed1 ph\u00f2ng v\u00e0 ch\u1ee9c n\u0103ng. Tuy nhi\u00ean \u00fd t\u01b0\u1edfng \u0111\u01a1n gi\u1ea3n, ch\u1ee7 y\u1ebfu li\u1ec7t k\u00ea; thi\u1ebfu ph\u00e1t tri\u1ec3n chi\u1ec1u s\u00e2u, chi ti\u1ebft c\u1ee5 th\u1ec3 v\u00e0 li\u00ean k\u1ebft. T\u1eeb v\u1ef1ng\/c\u1ea5u tr\u00fac l\u1eb7p, v\u00ed d\u1ee5 chung chung n\u00ean m\u1ee9c thuy\u1ebft ph\u1ee5c c\u00f2n th\u1ea5p.","examples":"V\u00ed d\u1ee5: \"It has one floor and five rooms...\", \"My bedroom is not too big, but it has...\", \"The kitchen is next to the living room...\". Nh\u1eefng c\u00e2u n\u00e0y ch\u1ee7 y\u1ebfu li\u1ec7t k\u00ea, thi\u1ebfu mi\u00eau t\u1ea3 c\u1ee5 th\u1ec3.","suggestions":"B\u1ed5 sung chi ti\u1ebft c\u1ee5 th\u1ec3 (di\u1ec7n t\u00edch, m\u00e0u t\u01b0\u1eddng, \u00e1nh s\u00e1ng, v\u1eadt li\u1ec7u, m\u00f9i\/\u00e2m thanh), n\u00eau l\u00fd do y\u00eau th\u00edch t\u1eebng ph\u00f2ng v\u00e0 m\u1ed9t ho\u1ea1t \u0111\u1ed9ng \u0111i\u1ec3n h\u00ecnh. D\u00f9ng li\u00ean k\u1ebft (because, so, which) \u0111\u1ec3 ph\u00e1t tri\u1ec3n \u00fd, th\u00eam so s\u00e1nh\/c\u1ea3m x\u00fac \u0111\u1ec3 l\u00e0m \u0111o\u1ea1n mi\u00eau t\u1ea3 s\u1ed1ng \u0111\u1ed9ng."}}
[2025-09-25 10:06:27] ERROR: === Fallback GPT-4.1 FAILED ===
[2025-09-25 10:06:27] ERROR: Question ID: 92
[2025-09-25 10:06:27] ERROR: Fallback error message: Invalid response format from GPT
[2025-09-25 10:06:27] 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(551): Illuminate\Queue\Worker->failJob()
#5 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(474): Illuminate\Queue\Worker->markJobAsFailedIfWillExceedMaxAttempts()
#6 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(448): Illuminate\Queue\Worker->handleJobException()
#7 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(392): Illuminate\Queue\Worker->process()
#8 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(178): Illuminate\Queue\Worker->runJob()
#9 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(149): Illuminate\Queue\Worker->daemon()
#10 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(132): Illuminate\Queue\Console\WorkCommand->runWorker()
#11 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#12 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#13 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\Container\Util::unwrapIfClosure()
#14 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#15 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Container/Container.php(696): Illuminate\Container\BoundMethod::call()
#16 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Console/Command.php(213): Illuminate\Container\Container->call()
#17 /var/www/html/lms_hocmai/vendor/symfony/console/Command/Command.php(318): Illuminate\Console\Command->execute()
#18 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Symfony\Component\Console\Command\Command->run()
#19 /var/www/html/lms_hocmai/vendor/symfony/console/Application.php(1110): Illuminate\Console\Command->run()
#20 /var/www/html/lms_hocmai/vendor/symfony/console/Application.php(359): Symfony\Component\Console\Application->doRunCommand()
#21 /var/www/html/lms_hocmai/vendor/symfony/console/Application.php(194): Symfony\Component\Console\Application->doRun()
#22 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(198): Symfony\Component\Console\Application->run()
#23 /var/www/html/lms_hocmai/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1235): Illuminate\Foundation\Console\Kernel->handle()
#24 /var/www/html/lms_hocmai/artisan(13): Illuminate\Foundation\Application->handleCommand()
#25 {main}
