-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.5
-
MOODLE_405_STABLE
I'm using the aiprovider_openai together with a locally hosted vLLM and the model Meta Llama 3.3 70B. We noticed that the summarise function sometimes also answers questions that appear on the page, for example in quizzes. This often happens when there is only one question on the quiz page.
This should not happen. I've tried improving the system instruction, but that doesn't help reliably.
I think it helps to modify the user prompt like this:
$userobj->content = "Summarise the following text:\n\n\"{$this->action->get_configuration('prompttext')}\"";
(instead of only giving the page content as user prompt)