From 31b601da252082d8ffbf14e8e076bb112518bc36 Mon Sep 17 00:00:00 2001 From: Marcus Green Date: Thu, 6 Jun 2024 15:34:54 +0100 Subject: [PATCH] Fix to the translation to return json against global json format later --- question.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question.php b/question.php index 4061e27..f3b634d 100755 --- a/question.php +++ b/question.php @@ -204,7 +204,7 @@ public function build_full_ai_prompt($response, $aiprompt, $defaultmark, $marksc $prompt .= ' Set marks to null in the json object.'.PHP_EOL; } $prompt .= ' '.trim(get_config('qtype_aitext', 'jsonprompt')); - $prompt .= ' translate to the language '.current_language(); + $prompt .= ' translate the feedback to the language '.current_language(); return $prompt; } @@ -244,7 +244,7 @@ public function process_feedback(string $feedback) { * @param string $text * @return string */ - protected function llm_translate(string $text) :string { + protected function llm_translate(string $text): string { if (current_language() == 'en') { return $text; }