From cd663e84af8efa20d20bcca25bbe5e0a96252026 Mon Sep 17 00:00:00 2001 From: Marcus Green Date: Mon, 2 Dec 2024 22:15:06 +0000 Subject: [PATCH] Update to the settings.php and readme --- changelog.md | 15 +++++++++++---- lang/en/qtype_aitext.php | 6 +----- settings.php | 1 - 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/changelog.md b/changelog.md index e48a5f9..fe993a0 100644 --- a/changelog.md +++ b/changelog.md @@ -9,14 +9,21 @@ It is now possible to select from three different "back end" systems for connect * Moodle 4.5 AI Subsystem * Local AI Manager -Tool AI Connect was the only way previously. The Moodle 4.5 AI subsystem only supports OpenAI ChatGPT and Microsoft Azure (which supports the Open AI Models) -Local AI Manager support Openai, Ollama, and has features to con +Tool AI Connect was the only way previously. The Moodle 4.5 AI subsystem only supports OpenAI ChatGPT and Microsoft Azure (which supports the Open AI Models). +Local AI Manager support Openai (ChatGPT), Ollama, and has other interesting features including this from the readme -https://github.com/mebis-lp/moodle-local_ai_manager -https://github.com/marcusgreen/moodle-tool_aiconnect +https://github.com/mebis-lp/moodle-local_ai_manager/blob/main/README.md +"The AI manager provides the key feature of being a multi-tenant AI backend which is the main reason you should be using this plugin for providing AI functionality in your moodle instance instead of the moodle core AI subsystem." +Removed the ability to pick a different model for each question. + +New configuration options in settings.php + +Marks prompt in the editing interface is optional + +Translation of the response is optional ### Release 0.01 of the Moodle AIText question type May 2024 diff --git a/lang/en/qtype_aitext.php b/lang/en/qtype_aitext.php index 2b0a174..0b58ed2 100755 --- a/lang/en/qtype_aitext.php +++ b/lang/en/qtype_aitext.php @@ -33,7 +33,7 @@ $string['attachmentsoptional'] = 'Attachments are optional'; $string['automatic_spellcheck'] = 'Automatic spellcheck'; $string['backends'] = 'AI back end systems'; -$string['backends_text'] = 'Backends text description of the systems'; +$string['backends_text'] = 'Core AI System was introduced with Moodle 4.5, Local AI System is from https://github.com/mebis-lp/moodle-local_ai_manager and Tool AI System is from https://github.com/marcusgreen/moodle-tool_aiconnect'; $string['cachedef_stringdata'] = 'Cachedef stringdata'; $string['coreaisubsystem'] = 'Core AI Subsystem '; $string['defaultmarksscheme'] = 'Marks scheme'; @@ -42,7 +42,6 @@ $string['defaultprompt_setting'] = 'This will be the default AI prompt for new questions. It tells the AI grader how to analyse the student response. It is the guideline that AI uses to give feedback on the student response. Question authors should alter this to suit the question.'; $string['disclaimer'] = 'Disclaimer'; $string['disclaimer_setting'] = 'Text appended to each response indicating feedback is from a Large Language Model and not a human'; -$string['err_airesponsefailed'] = 'Error: {$a}'; $string['err_maxminmismatch'] = 'Maximum word limit must be greater than minimum word limit'; $string['err_maxwordlimit'] = 'Maximum word limit is enabled but is not set'; $string['err_maxwordlimitnegative'] = 'Maximum word limit cannot be a negative number'; @@ -99,8 +98,6 @@ $string['responseformat_setting'] = 'The editor the student uses when responding'; $string['responseisrequired'] = 'Require the student to enter text'; $string['responsenotrequired'] = 'Text input is optional'; -$string['responsenotrequired'] = 'Text input is optional'; -$string['responseoptions'] = 'Response options'; $string['responseoptions'] = 'Response options'; $string['responsetemplate'] = 'Response template'; $string['responsetemplate_help'] = 'Any text entered here will be displayed in the response input box when a new attempt at the question starts.'; @@ -118,7 +115,6 @@ $string['thedefaultmarksscheme'] = 'Deduct a point from the total score for each grammar or spelling mistake.'; $string['thedefaultprompt'] = 'Explain if there is anything wrong with the grammar and spelling in the text.'; $string['toolaimanager'] = 'Tool AI Manager'; -$string['untestedquestionbehaviour'] = 'Untested question behaviour'; $string['use_local_ai_manager'] = 'Use AI backend provided by local_ai_manager plugin'; $string['use_local_ai_manager_setting'] = 'Use the local_ai_manager plugin to process AI related queries (must be installed)'; $string['wordcount'] = 'Word count: {$a}'; diff --git a/settings.php b/settings.php index eb5feb5..9db359d 100644 --- a/settings.php +++ b/settings.php @@ -73,7 +73,6 @@ 0 )); // Define the choices for the radio buttons. - xdebug_break(); $backends = [ 'local_ai_manager' => get_string('localaimanager', 'qtype_aitext'), 'core_ai_subsystem' => get_string('coreaisubsystem', 'qtype_aitext'),