18 Commits

Author SHA1 Message Date
Matt Porritt
75382a1e92 MDL-82411 AI: Provider Plugin - Azure AI
Add an AI provider plugin for Microsoft Azure AI.
The Azure AI provider supports generating images,
as well as generating and summarising text.
2024-09-18 17:09:59 +10:00
Huong Nguyen
aec7313e12
Merge branch 'main_MDL-82945' of https://github.com/mattporritt/moodle 2024-09-17 08:49:30 +07:00
Huong Nguyen
c7c2eddfb7
Merge branch 'main_MDL-82609' of https://github.com/mattporritt/moodle 2024-09-16 15:31:35 +07:00
Matt Porritt
2ae9b25ad4 MDL-82609 AI: Provider - Action settings
Allow each each Provider plugin to be able
to specify settings for the actions that they
support. Adds admin setting support for these
settings.
2024-09-16 18:19:22 +10:00
Paul Holden
99be8d5676
MDL-83134 ai: context/capability checks for setting provider state. 2024-09-16 16:08:27 +08:00
Matt Porritt
598c84cec9 MDL-82945 AI: Image watermark rendering
When an image is generated using AI a watermark is added.
This patch examines the area of the image where the water
mark is to be added and changes the font color of the mark
to either black or white, so it can be read against the
background color.
2024-09-14 07:53:47 +10:00
Huong Nguyen
7809ad9d96
MDL-82627 AI: Rename TinyMCE placement to a more generic name
To make the plugin name a bit more generic, we renamed as below
 - Shortname: `aiplacement_tinymce` -> `aiplacement_editor`
 - Fullname: `TinyMCE Editor Placement` -> HTML Text Editor Placement
2024-09-11 11:25:17 +07:00
Huong Nguyen
9746d9d5a1
MDL-82627 AI: Make some methods abstract 2024-09-11 11:25:17 +07:00
Huong Nguyen
3300712cda
MDL-82627 AI: Extra PHPUnit tests for OpenAI provider 2024-09-11 11:25:17 +07:00
Andrew Nicols
4adc7257e9
MDL-82627 AI: Improve and restructure 2024-09-11 11:25:16 +07:00
Andrew Nicols
52855d0bb0
MDL-82627 AI: AI Image code cleanup 2024-09-11 11:25:16 +07:00
Andrew Nicols
acc1f4136b
MDL-82627 AI: Placement Text Editor - Code cleanup
Co-authored-by: Huong Nguyen <huongnv13@gmail.com>
2024-09-11 11:25:16 +07:00
Huong Nguyen
253253eede
MDL-82627 AI: Code cleanup
Co-authored-by: Meirza <meirza.arson@moodle.com>
2024-09-11 11:25:16 +07:00
Matt Porritt
7c622cde3f
MDL-82627 AI: Placement Text Editor - Image & Text
Initial AI placement plugin for the TinyMCE editor.
It includes a TinyMCE plugin and the AI placement plugin.
It supports both text and image generation.

Originally implemented in MDL-80891

Co-authored-by: Huong Nguyen <huongnv13@gmail.com>
2024-09-11 11:25:14 +07:00
Matt Porritt
ece707e40e
MDL-82627 AI: Provider Plugin - Open AI
Initial Open AI API Provider plugin.
Originally implemented in MDL-80894

Co-authored-by: Huong Nguyen <huongnv13@gmail.com>
2024-09-11 11:02:53 +07:00
Huong Nguyen
8186e6ce25
MDL-82627 core: Add testsuite for AI
Originally implemented in MDL-80889
2024-09-11 11:02:53 +07:00
Huong Nguyen
67e6898853
MDL-82627 AI: Privacy provider
Originally implemented in MDL-82781
2024-09-11 11:02:53 +07:00
Matt Porritt
086ac975f0
MDL-82627 AI: LMS Subsystem
Initial implementation of the LMS AI subsystem.
Originally implemented in MDL-80889

Co-authored-by: Meirza <meirza.arson@moodle.com>
2024-09-11 11:02:51 +07:00