update: change api response for submit assessment function
This commit is contained in:
parent
dd1ec42bd3
commit
dab887965a
|
|
@ -245,7 +245,7 @@ public function submitAssessment($id)
|
||||||
$correctWeight += $weight;
|
$correctWeight += $weight;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
$apiResponse = Http::timeout(10)->post('http://127.0.0.1:8010/generate-feedback/', [
|
$apiResponse = Http::timeout(300)->post('http://127.0.0.1:8010/generate-feedback/', [
|
||||||
'user_answer' => $answer->answer_text,
|
'user_answer' => $answer->answer_text,
|
||||||
'expected_answer' => $bestMatch,
|
'expected_answer' => $bestMatch,
|
||||||
'question_text' => $question->question_text,
|
'question_text' => $question->question_text,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user