MDL-84751 aiprovider_ollama: Fix settings help spacing

This commit is contained in:
David Woloszyn
2025-05-13 13:52:50 +10:00
parent 52e9b4cdbe
commit 67d2b86614
+4 -2
View File
@@ -103,7 +103,8 @@ class hook_listener {
if ($model == 'custom') {
$mform->addElement('header', 'modelsettingsheader', get_string('settings', 'aiprovider_ollama'));
$mform->addElement('html', get_string('settings_help', 'aiprovider_ollama'));
$settingshelp = \html_writer::tag('p', get_string('settings_help', 'aiprovider_ollama'));
$mform->addElement('html', $settingshelp);
$mform->addElement(
'textarea',
'modelextraparams',
@@ -117,7 +118,8 @@ class hook_listener {
if ($targetmodel) {
if ($targetmodel->has_model_settings()) {
$mform->addElement('header', 'modelsettingsheader', get_string('settings', 'aiprovider_ollama'));
$mform->addElement('html', get_string('settings_help', 'aiprovider_ollama'));
$settingshelp = \html_writer::tag('p', get_string('settings_help', 'aiprovider_ollama'));
$mform->addElement('html', $settingshelp);
$targetmodel->add_model_settings($mform);
}
}