Skip to content

Commit

Permalink
Fix to the translation to return json against global json format later
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Jun 6, 2024
1 parent 316ff9a commit 31b601d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 31b601d

Please sign in to comment.