MDL-82977 AI: Provider instances

Create provider instances for AI povider plugins.
Each provider plugin can now have multiple instances,
allowing for different configurations and models using
the same base provider.
This commit is contained in:
Matt Porritt 2025-01-17 15:38:48 +11:00
parent eabd31c5d3
commit 368114c7cd
56 changed files with 2987 additions and 477 deletions

View file

@ -3260,6 +3260,12 @@ $functions = array(
'ajax' => true,
'readonlysession' => true,
],
'core_ai_delete_provider_instance' => [
'classname' => \core_ai\external\delete_provider_instance::class,
'description' => 'Delete a provider instance',
'type' => 'write',
'ajax' => true,
],
'core_ai_set_policy_status' => [
'classname' => 'core_ai\external\set_policy_status',
'description' => 'Set a users AI policy acceptance',
@ -3280,6 +3286,12 @@ $functions = array(
'type' => 'write',
'ajax' => true,
],
'core_ai_set_provider_status' => [
'classname' => \core_ai\external\set_provider_status::class,
'description' => 'Set a providers status',
'type' => 'write',
'ajax' => true,
],
'core_sms_set_gateway_status' => [
'classname' => 'core_sms\external\sms_gateway_status',
'description' => 'Set the sms gateway status',