Merge branch 'MDL-84751-main' of https://github.com/davewoloszyn/moodle
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +82,8 @@ class hook_listener {
|
||||
|
||||
if ($model == 'custom') {
|
||||
$mform->addElement('header', 'modelsettingsheader', get_string('settings', 'aiprovider_openai'));
|
||||
$mform->addElement('html', get_string('settings_help', 'aiprovider_openai'));
|
||||
$settingshelp = \html_writer::tag('p', get_string('settings_help', 'aiprovider_openai'));
|
||||
$mform->addElement('html', $settingshelp);
|
||||
$mform->addElement(
|
||||
'textarea',
|
||||
'modelextraparams',
|
||||
@@ -96,7 +97,8 @@ class hook_listener {
|
||||
if ($targetmodel) {
|
||||
if ($targetmodel->has_model_settings()) {
|
||||
$mform->addElement('header', 'modelsettingsheader', get_string('settings', 'aiprovider_openai'));
|
||||
$mform->addElement('html', get_string('settings_help', 'aiprovider_openai'));
|
||||
$settingshelp = \html_writer::tag('p', get_string('settings_help', 'aiprovider_openai'));
|
||||
$mform->addElement('html', $settingshelp);
|
||||
$targetmodel->add_model_settings($mform);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user