Skip to content

Commit

Permalink
removed function get_json_prompt as it is now taken from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus committed Apr 23, 2024
1 parent 50b08d2 commit a681216
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions question.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public function grade_response(array $response) : array {
$prompt .= ' '.trim($this->aiprompt); if ($this->markscheme > '') {
$prompt .= ' '.$this->markscheme;
} else {
/** @todo should this be a plugin setting value? */
$prompt .= ' Set marks to null in the json object.'.PHP_EOL;
}

Expand Down Expand Up @@ -193,15 +194,7 @@ public function process_feedback(string $feedback) {
}
return $contentobject;
}
/**
* Get the LLM string that tells it to return the result as json
*
* @return string
*/
protected function get_json_prompt() :string {
return 'Return only a JSON object where the JSON object is in the this format: {"feedback":"string","marks":"number"}
where marks is a single value summing all marks.\n\n';
}

/**
* Translate into the current language and
* store in a cache
Expand Down

0 comments on commit a681216

Please sign in to comment.