From 316ff9adc0b4105e0b04d73e0b7390ba1fdbaa39 Mon Sep 17 00:00:00 2001 From: Marcus Green Date: Thu, 6 Jun 2024 10:46:30 +0100 Subject: [PATCH] Added string return type to build_full_ai_prompt function --- question.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question.php b/question.php index 0b88a0c..4061e27 100755 --- a/question.php +++ b/question.php @@ -188,7 +188,7 @@ public function grade_response(array $response) : array { * @param string $markscheme * @return string; */ - public function build_full_ai_prompt($response, $aiprompt, $defaultmark, $markscheme) { + public function build_full_ai_prompt($response, $aiprompt, $defaultmark, $markscheme): string { $responsetext = strip_tags($response); $responsetext = '[['.$responsetext.']]'; $prompt = get_config('qtype_aitext', 'prompt');