45 Commits

Author SHA1 Message Date
Jun Pataleta
bf18f379f7
Merge branch 'MDL-83154-main' of https://github.com/davewoloszyn/moodle 2024-11-04 16:48:39 +08:00
David Woloszyn
dd05af9259 MDL-83154 AI: Update privacy provider to include model 2024-11-01 10:39:31 +11:00
David Woloszyn
f26c38bd20 MDL-83154 AI: Updated tests to include model response 2024-11-01 10:39:31 +11:00
David Woloszyn
b7d9100445 MDL-83154 AI: Added model to the response
Not all responses will return the model used. When possible, we can
fallback to Moodle's stored config value.
2024-11-01 10:39:31 +11:00
meirzamoodle
758f79a5af MDL-82988 general: Apply helper to get path to fixture 2024-10-27 13:46:48 +07:00
meirzamoodle
ac325600b3 MDL-83376 AI: Add is_request_allowed() to the base provider 2024-10-21 13:31:49 +07:00
Jun Pataleta
b38fc30f72
Merge branch 'MDL-83442-main' of https://github.com/davewoloszyn/moodle 2024-10-17 12:13:27 +08:00
David Woloszyn
3acfcd08d5 MDL-83442 aiprovider_azureai: Correct help string URL 2024-10-16 17:52:21 +11:00
David Woloszyn
eedb68462c MDL-83381 AI: Fix OpenAI provider config 2024-10-10 11:51:32 +11:00
Jun Pataleta
3d60012841
MDL-83309 aiplacement_courseassist: Bump plugin maturity to stable 2024-10-04 11:54:58 +07:00
Sara Arjona
f4202b26cd
Merge branch 'MDL-83312-main' of https://github.com/davewoloszyn/moodle 2024-10-03 10:24:58 +02:00
David Woloszyn
3b23f4db26 MDL-83312 AI: Check provider has minimal config 2024-10-03 10:25:23 +10:00
Jun Pataleta
f24e0ecf53
MDL-83309 versions: Bump all versions and requires near release 2024-10-02 17:04:53 +08:00
Huong Nguyen
838a9abb73
Merge branch 'MDL-82900-main' of https://github.com/mickhawkins/moodle 2024-10-01 11:40:37 +07:00
Michael Hawkins
e50249fbea
MDL-82900 AI: Update language strings 2024-10-01 12:33:38 +08:00
Sara Arjona
0cde4a8842
Merge branch 'MDL-83276-main' of https://github.com/HuongNV13/moodle 2024-09-30 11:20:30 +02:00
Huong Nguyen
c2dafca314
MDL-83276 AI: Extra checks for provider and placement actions 2024-09-27 15:48:42 +07:00
raortegar
e9c2e52c9d MDL-83277 AI: Course Assistance - Remove browser console log 2024-09-27 09:55:11 +02:00
Huong Nguyen
aec2ea99c2
MDL-83123 AI: Switch to use Message Drawer Helper and PubSub 2024-09-23 15:51:33 +07:00
Huong Nguyen
d59fc721ac
Merge branch 'MDL-83123-main2' of https://github.com/raortegar/moodle 2024-09-23 15:50:46 +07:00
Sara Arjona
ebaed307fc
NOBUG: Fixed SVG browser compatibility 2024-09-20 17:12:35 +02:00
Huong Nguyen
f456c54bdf
MDL-83092 AI: Fix Behat failure for Course Assistance 2024-09-20 15:50:29 +07:00
raortegar
fa931c6885 MDL-83123 AI: Course Assistance Placement Drawer compatibility. 2024-09-20 09:26:03 +02:00
Jun Pataleta
fa31b3f3cb
Merge branch 'MDL-83092-main' of https://github.com/junpataleta/moodle 2024-09-20 10:30:33 +08:00
Matt Porritt
cfe65f1772
MDL-83092 AI: Placement action needs to check status of provider action
When all providers for a certain action are disabled, or if providers
are enabled but all individual actions of a type are disabled, then
a warning is shown on the placement admin settings page for actions
that have no providers available.

Also the text editor placement will not show the option to generate
images or text if there are no actions available.
2024-09-20 10:26:49 +08:00
Jun Pataleta
92e842dceb
Merge branch 'MDL-80890-main' of https://github.com/HuongNV13/moodle 2024-09-19 10:33:13 +08:00
Huong Nguyen
cb4e621ce9
MDL-80890 AI: Course Assistance Placement
Co-authored-by: Matt Porritt <pozze30@gmail.com>
2024-09-19 09:30:10 +07:00
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