Skip to content

Commit

Permalink
Added string return type to build_full_ai_prompt function
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Jun 6, 2024
1 parent 3c0ad11 commit 316ff9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 316ff9a

Please sign in to comment.