<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/502/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Raortegar</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/502/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Raortegar"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/Special:Contributions/Raortegar"/>
	<updated>2026-05-12T13:18:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=admin/environment/custom_check/Router_not_configured&amp;diff=155182</id>
		<title>admin/environment/custom check/Router not configured</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=admin/environment/custom_check/Router_not_configured&amp;diff=155182"/>
		<updated>2026-03-23T14:54:50Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Redirected page to Configuring the Router&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Configuring the Router]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Google_Drive_repository&amp;diff=154749</id>
		<title>Google Drive repository</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Google_Drive_repository&amp;diff=154749"/>
		<updated>2025-11-20T13:53:28Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Update documentation after changes in google scopes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Repositories}}&lt;br /&gt;
Google Drive can serve both as a repository from which users can access files they have previously uploaded from Moodle and also as a [[Google Docs portfolio|portfolio]] into which they can &amp;quot;push&amp;quot; files they want to keep. When using the &amp;lt;code&amp;gt;auth/drive.file&amp;lt;/code&amp;gt; scope, users cannot browse or pull files directly from their full Google Drive; only files uploaded via Moodle will be shown. Both options need to be enabled by the administrator before they are available for teachers and students. Both options need to be enabled by the administrator before they are available for teachers and students.&lt;br /&gt;
&lt;br /&gt;
==Enabling the Google Drive repository==&lt;br /&gt;
&lt;br /&gt;
To use the Google Drive repository, an administrator must first create a Google service (a new requirement in Moodle 3.3 onwards).&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;OAuth 2 services&#039; in Site administration and click the button to create a new Google service.&lt;br /&gt;
# Follow the instructions in [[OAuth 2 Google service]] and obtain a client ID and secret.&lt;br /&gt;
# Enter the client ID and secret and save changes.&lt;br /&gt;
# Go to &#039;Manage repositories&#039; in Site administration and enable the Google Drive repository.&lt;br /&gt;
# On the Google Drive configuration page, make sure that Google is selected as the OAuth 2 service then save changes.&lt;br /&gt;
&lt;br /&gt;
===Troubleshooting===&lt;br /&gt;
&lt;br /&gt;
If you obtain a &#039;This app isn&#039;t verified&#039; message, you will need to complete a [https://support.google.com/code/contact/oauth_app_verification OAuth Developer Verification Form]. The list of scopes that Moodle requires are: &amp;lt;code&amp;gt;openid profile email https://www.googleapis.com/auth/drive.file&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
See the discussion [https://moodle.org/mod/forum/discuss.php?d=356871 Google Drive Repository and Moodle 3.3.1] for more details.&lt;br /&gt;
&lt;br /&gt;
==Access controlled links==&lt;br /&gt;
&lt;br /&gt;
Students may submit files from Google Drive as &#039;access controlled links&#039; in [[Using Assignment|assignments]]. Once submitted, the student may no longer change them, but the teacher is allowed to edit them.&lt;br /&gt;
&lt;br /&gt;
Teachers may display files from Google Drive as &#039;access controlled links&#039;. The teacher can then continue updating the files, but students can only view them.&lt;br /&gt;
&lt;br /&gt;
To enable this feature, ensure that:&lt;br /&gt;
&lt;br /&gt;
# A system account has been connected in [[OAuth 2 services]] in Site administration. This account will own and control access to files submitted by students and teachers. Teachers will be able to edit the files but students will not. This should be a dedicated account for this purpose.&lt;br /&gt;
# &amp;quot;Supported files&amp;quot; is set  to &amp;quot;Internal and External&amp;quot;. &lt;br /&gt;
# &amp;quot;Default return type&amp;quot; is set  to &amp;quot;External (only links stored in Moodle)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Getting (&amp;quot;pulling&amp;quot;) your files from Google Drive==&lt;br /&gt;
&lt;br /&gt;
* From the file picker, click on the Google Drive link and a prompt to log in will appear:&lt;br /&gt;
&lt;br /&gt;
*  If it is your first time, the click the &amp;quot;Allow access&amp;quot; button to log in.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[File:newgoogledocs.png|thumb|Log into your account]]&lt;br /&gt;
| [[File:newgooglepermission.png|thumb|Allow access]]&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* Your files will display for you to choose from (you will only see files that you have previously uploaded from Moodle to Google Drive.)&lt;br /&gt;
* You also have the option to upload a new file to Google Drive using the &#039;&#039;&#039;upload icon&#039;&#039;&#039;. After uploading, the file will appear in the list and can be selected like any other repository file.[[File:Screenshot from 2025-11-20 13-58-05.png|none|thumb]]&lt;br /&gt;
*You can view them in three ways by clicking one of the options at the top right.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[File:googledocsrepothumb.png|thumb|Icon view]]&lt;br /&gt;
| [[File:googledocstableview.png|thumb|Table view]]&lt;br /&gt;
| [[File:googledocslistview.png|thumb|List view]] &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Repository capabilities==&lt;br /&gt;
&lt;br /&gt;
There is just one capability, [[Capabilities/repository/googledocs:view|View Google Drive repository]], which is allowed for the default authenticated user role. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=438797#p1770856 Issue with submitting assignments via Google Drive for those using Google Education Plus]&lt;br /&gt;
* [[OAuth 2 authentication]] for enabling users to log in to Moodle with their Google account&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=355716 Google Drive repository in 3.3 with non-institutional accounts] forum discussion&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=356871 Google Drive Repository and Moodle 3.3.1] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
[[Category:OAuth 2]]&lt;br /&gt;
&lt;br /&gt;
[[de:Google Drive Repository]]&lt;br /&gt;
[[es:Repositorio Google Drive]]&lt;br /&gt;
[[fr:Google Drive]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=File:Screenshot_from_2025-11-20_13-58-05.png&amp;diff=154748</id>
		<title>File:Screenshot from 2025-11-20 13-58-05.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=File:Screenshot_from_2025-11-20_13-58-05.png&amp;diff=154748"/>
		<updated>2025-11-20T13:49:43Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Upload functionality&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=File:upload_icon.png&amp;diff=154747</id>
		<title>File:upload icon.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=File:upload_icon.png&amp;diff=154747"/>
		<updated>2025-11-20T13:47:50Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Upload to google drive icon&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Google_Drive_repository&amp;diff=154746</id>
		<title>Google Drive repository</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Google_Drive_repository&amp;diff=154746"/>
		<updated>2025-11-20T12:47:52Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: This part is not working now.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Repositories}}&lt;br /&gt;
Google Drive can serve both as a repository from which users can &amp;quot;pull&amp;quot; files they need for their course and also a [[Google Docs portfolio|portfolio]] into which they can &amp;quot;push&amp;quot; files they want to keep. Both options need to be enabled by the administrator before they are available for teachers and students.&lt;br /&gt;
&lt;br /&gt;
==Enabling the Google Drive repository==&lt;br /&gt;
&lt;br /&gt;
To use the Google Drive repository, an administrator must first create a Google service (a new requirement in Moodle 3.3 onwards).&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;OAuth 2 services&#039; in Site administration and click the button to create a new Google service.&lt;br /&gt;
# Follow the instructions in [[OAuth 2 Google service]] and obtain a client ID and secret.&lt;br /&gt;
# Enter the client ID and secret and save changes.&lt;br /&gt;
# Go to &#039;Manage repositories&#039; in Site administration and enable the Google Drive repository.&lt;br /&gt;
# On the Google Drive configuration page, make sure that Google is selected as the OAuth 2 service then save changes.&lt;br /&gt;
&lt;br /&gt;
===Troubleshooting===&lt;br /&gt;
&lt;br /&gt;
If you obtain a &#039;This app isn&#039;t verified&#039; message, you will need to complete a [https://support.google.com/code/contact/oauth_app_verification OAuth Developer Verification Form]. The list of scopes that Moodle requires are: &amp;lt;code&amp;gt;openid profile email https://www.googleapis.com/auth/drive.file&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
See the discussion [https://moodle.org/mod/forum/discuss.php?d=356871 Google Drive Repository and Moodle 3.3.1] for more details.&lt;br /&gt;
&lt;br /&gt;
==Access controlled links==&lt;br /&gt;
&lt;br /&gt;
Students may submit files from Google Drive as &#039;access controlled links&#039; in [[Using Assignment|assignments]]. Once submitted, the student may no longer change them, but the teacher is allowed to edit them.&lt;br /&gt;
&lt;br /&gt;
Teachers may display files from Google Drive as &#039;access controlled links&#039;. The teacher can then continue updating the files, but students can only view them.&lt;br /&gt;
&lt;br /&gt;
To enable this feature, ensure that:&lt;br /&gt;
&lt;br /&gt;
# A system account has been connected in [[OAuth 2 services]] in Site administration. This account will own and control access to files submitted by students and teachers. Teachers will be able to edit the files but students will not. This should be a dedicated account for this purpose.&lt;br /&gt;
# &amp;quot;Supported files&amp;quot; is set  to &amp;quot;Internal and External&amp;quot;. &lt;br /&gt;
# &amp;quot;Default return type&amp;quot; is set  to &amp;quot;External (only links stored in Moodle)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Getting (&amp;quot;pulling&amp;quot;) your files from Google Drive==&lt;br /&gt;
&lt;br /&gt;
* From the file picker, click on the Google Drive link and a prompt to log in will appear:&lt;br /&gt;
&lt;br /&gt;
*  If it is your first time, the click the &amp;quot;Allow access&amp;quot; button to log in&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[File:newgoogledocs.png|thumb|Log into your account]]&lt;br /&gt;
| [[File:newgooglepermission.png|thumb|Allow access]]&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* Your files will display for you to choose from.&lt;br /&gt;
*You can view them in three ways by clicking one of the options at the top right.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[File:googledocsrepothumb.png|thumb|Icon view]]&lt;br /&gt;
| [[File:googledocstableview.png|thumb|Table view]]&lt;br /&gt;
| [[File:googledocslistview.png|thumb|List view]] &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Repository capabilities==&lt;br /&gt;
&lt;br /&gt;
There is just one capability, [[Capabilities/repository/googledocs:view|View Google Drive repository]], which is allowed for the default authenticated user role. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=438797#p1770856 Issue with submitting assignments via Google Drive for those using Google Education Plus]&lt;br /&gt;
* [[OAuth 2 authentication]] for enabling users to log in to Moodle with their Google account&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=355716 Google Drive repository in 3.3 with non-institutional accounts] forum discussion&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=356871 Google Drive Repository and Moodle 3.3.1] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
[[Category:OAuth 2]]&lt;br /&gt;
&lt;br /&gt;
[[de:Google Drive Repository]]&lt;br /&gt;
[[es:Repositorio Google Drive]]&lt;br /&gt;
[[fr:Google Drive]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Google_Drive_repository&amp;diff=154745</id>
		<title>Google Drive repository</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Google_Drive_repository&amp;diff=154745"/>
		<updated>2025-11-20T12:46:45Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Change scope&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Repositories}}&lt;br /&gt;
Google Drive can serve both as a repository from which users can &amp;quot;pull&amp;quot; files they need for their course and also a [[Google Docs portfolio|portfolio]] into which they can &amp;quot;push&amp;quot; files they want to keep. Both options need to be enabled by the administrator before they are available for teachers and students.&lt;br /&gt;
&lt;br /&gt;
==Enabling the Google Drive repository==&lt;br /&gt;
&lt;br /&gt;
To use the Google Drive repository, an administrator must first create a Google service (a new requirement in Moodle 3.3 onwards).&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;OAuth 2 services&#039; in Site administration and click the button to create a new Google service.&lt;br /&gt;
# Follow the instructions in [[OAuth 2 Google service]] and obtain a client ID and secret.&lt;br /&gt;
# Enter the client ID and secret and save changes.&lt;br /&gt;
# Go to &#039;Manage repositories&#039; in Site administration and enable the Google Drive repository.&lt;br /&gt;
# On the Google Drive configuration page, make sure that Google is selected as the OAuth 2 service then save changes.&lt;br /&gt;
&lt;br /&gt;
In Moodle 3.3 onwards, an admin can set default import file formats on the Google Drive configuration page. For example, the default document import format can be chosen from rtf, docx, html, odt, pdf and txt.&lt;br /&gt;
&lt;br /&gt;
===Troubleshooting===&lt;br /&gt;
&lt;br /&gt;
If you obtain a &#039;This app isn&#039;t verified&#039; message, you will need to complete a [https://support.google.com/code/contact/oauth_app_verification OAuth Developer Verification Form]. The list of scopes that Moodle requires are: &amp;lt;code&amp;gt;openid profile email https://www.googleapis.com/auth/drive.file&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
See the discussion [https://moodle.org/mod/forum/discuss.php?d=356871 Google Drive Repository and Moodle 3.3.1] for more details.&lt;br /&gt;
&lt;br /&gt;
==Access controlled links==&lt;br /&gt;
&lt;br /&gt;
Students may submit files from Google Drive as &#039;access controlled links&#039; in [[Using Assignment|assignments]]. Once submitted, the student may no longer change them, but the teacher is allowed to edit them.&lt;br /&gt;
&lt;br /&gt;
Teachers may display files from Google Drive as &#039;access controlled links&#039;. The teacher can then continue updating the files, but students can only view them.&lt;br /&gt;
&lt;br /&gt;
To enable this feature, ensure that:&lt;br /&gt;
&lt;br /&gt;
# A system account has been connected in [[OAuth 2 services]] in Site administration. This account will own and control access to files submitted by students and teachers. Teachers will be able to edit the files but students will not. This should be a dedicated account for this purpose.&lt;br /&gt;
# &amp;quot;Supported files&amp;quot; is set  to &amp;quot;Internal and External&amp;quot;. &lt;br /&gt;
# &amp;quot;Default return type&amp;quot; is set  to &amp;quot;External (only links stored in Moodle)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Getting (&amp;quot;pulling&amp;quot;) your files from Google Drive==&lt;br /&gt;
&lt;br /&gt;
* From the file picker, click on the Google Drive link and a prompt to log in will appear:&lt;br /&gt;
&lt;br /&gt;
*  If it is your first time, the click the &amp;quot;Allow access&amp;quot; button to log in&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[File:newgoogledocs.png|thumb|Log into your account]]&lt;br /&gt;
| [[File:newgooglepermission.png|thumb|Allow access]]&lt;br /&gt;
 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* Your files will display for you to choose from.&lt;br /&gt;
*You can view them in three ways by clicking one of the options at the top right.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[File:googledocsrepothumb.png|thumb|Icon view]]&lt;br /&gt;
| [[File:googledocstableview.png|thumb|Table view]]&lt;br /&gt;
| [[File:googledocslistview.png|thumb|List view]] &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Repository capabilities==&lt;br /&gt;
&lt;br /&gt;
There is just one capability, [[Capabilities/repository/googledocs:view|View Google Drive repository]], which is allowed for the default authenticated user role. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=438797#p1770856 Issue with submitting assignments via Google Drive for those using Google Education Plus]&lt;br /&gt;
* [[OAuth 2 authentication]] for enabling users to log in to Moodle with their Google account&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=355716 Google Drive repository in 3.3 with non-institutional accounts] forum discussion&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=356871 Google Drive Repository and Moodle 3.3.1] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
[[Category:OAuth 2]]&lt;br /&gt;
&lt;br /&gt;
[[de:Google Drive Repository]]&lt;br /&gt;
[[es:Repositorio Google Drive]]&lt;br /&gt;
[[fr:Google Drive]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OAuth_2_Google_service&amp;diff=154744</id>
		<title>OAuth 2 Google service</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OAuth_2_Google_service&amp;diff=154744"/>
		<updated>2025-11-20T12:39:31Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Change scope for Google Drive repository&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{OAuth2}}&lt;br /&gt;
==Features requiring the OAuth 2 Google service==&lt;br /&gt;
&lt;br /&gt;
You will need to set up an OAuth 2 Google service in order to use the following features:&lt;br /&gt;
&lt;br /&gt;
* [[Google Drive repository]]&lt;br /&gt;
* [[OAuth 2 authentication]] for enabling users to log in to Moodle with their Google account&lt;br /&gt;
* [[Google Drive converter]] for converting assignment submission files to PDF for teachers to annotate&lt;br /&gt;
&lt;br /&gt;
==OAuth 2 Google service setup==&lt;br /&gt;
&lt;br /&gt;
To set up an OAuth 2 client with Google, log in to the [https://console.developers.google.com/ Google Developers Console] and click the arrow by &#039;Select a project&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:SelectAProject.png]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;Create a new project&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:New project.png]]&lt;br /&gt;
&lt;br /&gt;
Give it a name. The name is not visible to anyone so you can choose any name you like.&lt;br /&gt;
&lt;br /&gt;
[[File:google-2-create-new-modal.png|none|frame|Name the project]]&lt;br /&gt;
&lt;br /&gt;
Click Credentials from the menu on the left.&lt;br /&gt;
&lt;br /&gt;
[[File:google-3-credentials.png|none|frame|Switch to credentials page]]&lt;br /&gt;
&lt;br /&gt;
Setup the consent screen for your application. This is where you provide the public information that is shown to users when they are asked to authorise your application. Setting a product name is the minimum information that is required, but the more information you provide here - the more confidence users will have when granting this authorisation.&lt;br /&gt;
&lt;br /&gt;
[[File:app information.png|none|frame|Setup consent screen]]&lt;br /&gt;
&lt;br /&gt;
Now you can create some client credentials. Click Credentials from the menu on the left again then click &amp;quot;+ Create credentials&amp;quot; and select OAuth client ID.&lt;br /&gt;
&lt;br /&gt;
[[File:google-5-oauth-credentials.png|none|frame|Create an OAuth Client ID]]&lt;br /&gt;
&lt;br /&gt;
Select Web application as Application type and click to add an authorised redirect URI. This must be set to &amp;quot;your moodle site url + /admin/oauth2callback.php&amp;quot;. If your Moodle site was accessible at &amp;lt;nowiki&amp;gt;https://lemon.edu/&amp;lt;/nowiki&amp;gt; then this callback URL should be set to &amp;lt;nowiki&amp;gt;https://lemon.edu/admin/oauth2callback.php&amp;lt;/nowiki&amp;gt;. Enter the URL then click Create.&lt;br /&gt;
&lt;br /&gt;
[[File:google-6-web-application-credentials.png|none|frame|Set the callback URL]]&lt;br /&gt;
&lt;br /&gt;
When you have saved the information on this page, Google will give you the client ID and client secret that you need to enter into Moodle.&lt;br /&gt;
&lt;br /&gt;
[[File:google-7-oauth-details.png|none|frame|Got my secrets!]]&lt;br /&gt;
&lt;br /&gt;
Finally we have to enable the Drive API (if we want to use the google drive repository or file converter plugins).&lt;br /&gt;
&lt;br /&gt;
Click Library from the menu on the left.&lt;br /&gt;
&lt;br /&gt;
[[File:google-8-library.png|none|frame|View the Library tab]]&lt;br /&gt;
&lt;br /&gt;
Search for drive and select Google Drive API. Click the Enable button.&lt;br /&gt;
&lt;br /&gt;
[[File:google-10-enable-drive.png|none|frame|Enable the API]]&lt;br /&gt;
&lt;br /&gt;
==App verification==&lt;br /&gt;
&lt;br /&gt;
NOTE: If you are just using this for document conversion you will not need to verify (as it only uses one account). You will, however, need to verify your ownership of your domain (see [https://support.google.com/webmasters/answer/35179 Verify your site ownership - Search Console Help].)&lt;br /&gt;
&lt;br /&gt;
The Google Drive repository and Google Drive converter also require the app to be verified by completing the OAuth Developer Verification Form. The list of scopes that Moodle requires are: &amp;lt;code&amp;gt;openid profile email https://www.googleapis.com/auth/drive.file&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
Moodle in English forum discussions:&lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=356871 Google Drive Repository and Moodle 3.3.1] &lt;br /&gt;
* [https://moodle.org/mod/forum/discuss.php?d=416645 Setting up Oauth2 service Google]&lt;br /&gt;
&lt;br /&gt;
[[es:Servicio OAuth 2 Google]]&lt;br /&gt;
[[de:OAuth2 Google Service]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Upgrading&amp;diff=154267</id>
		<title>Upgrading</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Upgrading&amp;diff=154267"/>
		<updated>2025-10-03T10:41:23Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: /* Code directories restructure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
&#039;&#039;This page explains in detail how to upgrade Moodle. For a summary of the process, see [[Upgrade overview]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Warning|The directory structure of Moodle files has changed in 5.1. A new &amp;quot;public&amp;quot; folder has been introduced to contain all web accessible files. Configuration and other sensitive files are now stored below this folder for better security. You will need to reconfigure your web server to accommodate this change as part of the upgrade process. See the section below [[Upgrading#Code_directories_restructure|Code directories restructure]].}}&lt;br /&gt;
&lt;br /&gt;
==Check the requirements==&lt;br /&gt;
{{Note| You need to upgrade to Moodle 4.1.2 or later before upgrading to {{Version}}.}}&lt;br /&gt;
Before upgrading, check that your server meets all requirements for {{Version}} in &#039;&#039;Site administration &amp;gt; Server &amp;gt; [[Environment]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
See the [{{Release notes}} Moodle {{Version}} release notes] for server and client software requirements.&lt;br /&gt;
&lt;br /&gt;
==Before upgrading==&lt;br /&gt;
&#039;&#039;&#039;We advise that you test the upgrade first on a COPY of your production site, to make sure it works as you expect.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Consider setting the [[upgrade key]] for your site.&lt;br /&gt;
== Backup important data ==&lt;br /&gt;
There are three areas that should be backed up before any upgrade:&lt;br /&gt;
#Moodle software (For example, everything in server/htdocs/moodle)&lt;br /&gt;
#Moodle uploaded files (For example, server/moodledata)&lt;br /&gt;
#Moodle database (For example, your Postgres or MySQL database dump)&lt;br /&gt;
See [[Site backup]] for more specific information.&lt;br /&gt;
== Check for plugin updates ==&lt;br /&gt;
If you have [[Automatic updates deployment]] enabled, you will be able to update installed plugins automatically during the upgrade. Just make sure you check for available updates (via the button for it) at the Plugins check screen.&lt;br /&gt;
&lt;br /&gt;
If you are updating plugins manually, it is a good moment now to check in the [http://moodle.org/plugins Moodle Plugins directory] whether there is a {{Version}} version available for any [[Installing plugins#Plugins overview|plugins (including themes) installed on your site]]. If so, download the plugin package. In the next step, you will copy it to the appropriate location in your Moodle code (see [[Installing plugins]]).&lt;br /&gt;
&lt;br /&gt;
The upgrade of the plugin will then happen as part of the Moodle upgrade process.&lt;br /&gt;
&lt;br /&gt;
If an out-of-date plugin causes your upgrade to fail, you can usually delete the plugin code rather than uninstalling it from within Moodle so that the data associated with it is not deleted.&lt;br /&gt;
&lt;br /&gt;
==Put your site into maintenance mode==&lt;br /&gt;
Before you begin upgrading your site, you should put it into [[maintenance mode]] to stop any non-admin users from logging in. Then you should wait for any currently running cron processes to complete before proceeding.&lt;br /&gt;
&lt;br /&gt;
==Code directories restructure==&lt;br /&gt;
&lt;br /&gt;
The directory structure of Moodle files has changed in 5.1. In previous versions, the entire Moodle codebase sat within the web server’s document root. From Moodle 5.1 onwards, only the files that are safe to be accessed directly are located in /public.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important: You need to update your web server configuration so that the document root points to /moodle/public.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If the root of your Moodle site&#039;s is located at /var/www/moodle:&lt;br /&gt;
&lt;br /&gt;
In Apache:&lt;br /&gt;
 DocumentRoot /var/www/moodle/public&lt;br /&gt;
 &amp;lt;Directory /var/www/moodle/public&amp;gt;&lt;br /&gt;
    AllowOverride None&lt;br /&gt;
    Require all granted&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Nginx:&lt;br /&gt;
 root /var/www/moodle/public;&lt;br /&gt;
Apply the change then restart the web server.&lt;br /&gt;
&lt;br /&gt;
== Install the new Moodle software ==&lt;br /&gt;
You can download the latest release from [https://download.moodle.org/ Moodle downloads].&lt;br /&gt;
&lt;br /&gt;
=== Standard install package ===&lt;br /&gt;
# Move your old Moodle software program files to another location. &#039;&#039;Do NOT copy new files over the old files.&#039;&#039;&lt;br /&gt;
# Unzip or unpack the upgrade file so that all the new Moodle software program files are in the location the old files used to be in on the server. Moodle will adjust SQL and moodledata if it needs to in the upgrade.&lt;br /&gt;
# Copy your old [[Configuration file|config.php file]] back to the new Moodle directory. &lt;br /&gt;
As mentioned above, if you had installed any plugins on your site you should add them to the new code tree (Moodle directory structure) now. It is important to check that you get the correct version for your new version of Moodle. Be particularly careful that you do not overwrite any code in the new version of Moodle and that you place the plugin folders in the correct directory (the same directory that they are in in the current installation.)&lt;br /&gt;
&lt;br /&gt;
Your moodledata folder should be located separately to your Moodle code folder and, as such, should not need anything done to it. Moodle 3.0 will throw a warning if it is located in a web accessible folder and the moodledata should never be located in the Moodle code folder. If you are moving your installation to a new server or new location on your server, then you will need to follow the [[Migration]] documents.&lt;br /&gt;
====Linux====&lt;br /&gt;
 mv moodle moodle.backup&lt;br /&gt;
 tar xvzf moodle-latest-{{Version}}.tgz&lt;br /&gt;
Next, copy across your config.php, any custom plugins, and your .htaccess file if you created one (&#039;&#039;&#039;check that custom plugins are the correct version for your new Moodle first&#039;&#039;&#039;):&lt;br /&gt;
 cp moodle.backup/config.php moodle&lt;br /&gt;
 cp -pr moodle.backup/theme/mytheme moodle/public/theme/mytheme&lt;br /&gt;
 cp -pr moodle.backup/mod/mymod moodle/public/mod/mymod&lt;br /&gt;
Don&#039;t forget to make moodle/config.php (and the rest of the source code) readable by your www server. For maximum security the files should not be writeable by your server. This is especially important on a &#039;production&#039; server open to the public internet. &lt;br /&gt;
 chown -R root:root moodle (Linux debian - or even create a user especially for moodle. &#039;&#039;&#039;Don&#039;t&#039;&#039;&#039; use the web server user, e.g. www-data)&lt;br /&gt;
 chmod -R 755 moodle&lt;br /&gt;
If you use cron, take care that cron.php is executeable and uses the correct php command: &lt;br /&gt;
 chmod 740 admin/cli/cron.php (some configurations need chmod 750 or chmod 755)&lt;br /&gt;
 copy the first line from cron.php (if it looks like &#039;#!/usr/local/bin/php&#039; or &#039;#!/usr/local/bin/php5.3&#039;, no need to copy &#039;&amp;lt;?php&#039;) &lt;br /&gt;
if necessary. However, for a simple upgrade, there should be no need to change anything with cron.&lt;br /&gt;
=== Using Git ===&lt;br /&gt;
You can use Git for updating or upgrading your Moodle. See [[Git for Administrators]] for details.&lt;br /&gt;
===Command line upgrade===&lt;br /&gt;
On Linux servers, Moodle {{Version}} supports running the [[CLI|upgrade from the command line]], rather than through a web browser. This is likely to be more reliable, particularly for large sites.&lt;br /&gt;
&lt;br /&gt;
== Finishing the upgrade ==&lt;br /&gt;
The last step is to trigger the upgrade processes within Moodle. &lt;br /&gt;
&lt;br /&gt;
If you put your site into Maintenance mode earlier; take it out now!&lt;br /&gt;
&lt;br /&gt;
To do this just go to &#039;&#039;Site administration &amp;gt; Notifications&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Moodle will automatically detect the new version and perform all the SQL database or file system upgrades that are necessary. If there is anything it can&#039;t do itself (very rare) then you will see messages telling you what you need to do.&lt;br /&gt;
&lt;br /&gt;
Assuming all goes well (no error messages) then you can start using your new version of Moodle and enjoy the new features!&lt;br /&gt;
&lt;br /&gt;
Note: If you are running multiple servers or find some functionality missing (such as the &#039;&#039;filepicker&#039;&#039; not loading) then you should purge all caches manually (via &#039;&#039;Site administration &amp;gt; Development &amp;gt; Purge all caches&#039;&#039;) after completing the upgrade.&lt;br /&gt;
===Fatal error: Maximum execution time of 30 seconds exceeded...===&lt;br /&gt;
If your server uses a main language other than English, you may encounter a &#039;Fatal error: Maximum execution time of 30 seconds exceeded&#039; when you try to upgrade it. You can increase max_execution_time = 160 on php.ini to allow the scripts enough time to process the language update. Otherwise, you can switch to English as the default language before doing the upgrade and back to your original language after a successful upgrade. See the forum discussion at https://moodle.org/mod/forum/discuss.php?d=119598.&lt;br /&gt;
&lt;br /&gt;
==Possible issues that may affect you in Moodle {{Version}}==&lt;br /&gt;
&lt;br /&gt;
===Moodle code restructure===&lt;br /&gt;
&lt;br /&gt;
As noted above, the directory structure of Moodle files has changed. Make sure your web server has been configured to use this new structure. For configuration information, see [https://moodledev.io/docs/5.1/guides/restructure Code Restructure | Moodle Developer Resources].&lt;br /&gt;
&lt;br /&gt;
===Activity chooser enhancements===&lt;br /&gt;
&lt;br /&gt;
[[Activity chooser]] items are organised into categories according to their purpose.&lt;br /&gt;
&lt;br /&gt;
The setting &#039;Activity chooser tabs&#039; in the Site administration is removed, as activities are no longer classified as activity or resource.&lt;br /&gt;
&lt;br /&gt;
In the Activity chooser, to select an activity, you need to click it and then click the Add button. Alternatively, to quickly go to the Add activity page you can double-click an activity. Previously, a single click took you to the Add activity page; the Add button provides an improved user experience.&lt;br /&gt;
&lt;br /&gt;
===Activities and Section links blocks removed===&lt;br /&gt;
&lt;br /&gt;
The Activities and Section links blocks are no longer included in Moodle 5.1 onwards, as the functionality is provided elsewhere. The [[Activities overview]] lists all activities in the course and the course index includes links to sections.&lt;br /&gt;
&lt;br /&gt;
===Main menu block renamed Additional activities block===&lt;br /&gt;
&lt;br /&gt;
The Main menu block is renamed [[Additional activities block]]. The block can also be used in courses in Single activity format to show links to additional activities in the course. The title of the block can be changed if required.&lt;br /&gt;
&lt;br /&gt;
===Social course format is disabled by default===&lt;br /&gt;
&lt;br /&gt;
Social course format is disabled by default in &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Manage course formats&#039;&#039; in Moodle 5.1 onwards, and will be removed in a future version, as the functionality is provided by Single activity format with Forum as the type of activity.&lt;br /&gt;
&lt;br /&gt;
Any courses using Social format will remain unchanged, though it is recommended that you change the [[Course formats|course format]] to Single activity format with Forum as the type of activity.&lt;br /&gt;
&lt;br /&gt;
===Forgotten password page reCAPTCHA===&lt;br /&gt;
&lt;br /&gt;
You can protect against automated attacks by adding reCAPTCHA to the forgotten password page in &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Manage authentication&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Media drag and drop setting removed===&lt;br /&gt;
&lt;br /&gt;
Media drag and drop is always enabled. The setting &#039;Media drag and drop&#039; (label | dndmedia) in &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Text and media area&#039;&#039; is removed, as there is no reason to disable the functionality.&lt;br /&gt;
&lt;br /&gt;
===Maximum number of sections setting deprecated===&lt;br /&gt;
&lt;br /&gt;
The setting &#039;Maximum number of sections&#039; (maxsections) in &#039;&#039;Site administration &amp;gt; Courses &amp;gt; Course default settings&#039;&#039; is no longer used in any standard feature. The setting is deprecated and will be removed in a future version. A teacher can add as many sections as they want to their course with no limit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See also the list of [https://tracker.moodle.org/issues/?jql=project%20%3D%20MDL%20AND%20resolution%20%3D%20Fixed%20AND%20fixVersion%20%3D%205.1%20AND%20labels%20%3D%20upgrade_notes upgrade_notes-labelled issues] and [https://tracker.moodle.org/issues/?jql=project%20%3D%20MDL%20AND%20resolution%20%3D%20Fixed%20AND%20fixVersion%20%3D%205.1%20AND%20labels%20%3D%20ui_change ui_change-labelled issues].&lt;br /&gt;
&lt;br /&gt;
===New capabilities in Moodle {{Version}}===&lt;br /&gt;
&lt;br /&gt;
* moodle/customfield:configureshared&lt;br /&gt;
&lt;br /&gt;
== Moodle 4.1, 4.2, 4.3, 4.4 and 4.5 upgrading notes ==&lt;br /&gt;
Depending on which version you are upgrading from, please see the section &#039;Possible issues that may affect you&#039; in the documentation:&lt;br /&gt;
* [https://docs.moodle.org/401/en/Upgrading Upgrading to Moodle 4.1]&lt;br /&gt;
* [https://docs.moodle.org/402/en/Upgrading Upgrading to Moodle 4.2]&lt;br /&gt;
* [https://docs.moodle.org/403/en/Upgrading Upgrading to Moodle 4.3]&lt;br /&gt;
* [https://docs.moodle.org/404/en/Upgrading Upgrading to Moodle 4.4]&lt;br /&gt;
* [https://docs.moodle.org/405/en/Upgrading Upgrading to Moodle 4.5]&lt;br /&gt;
&lt;br /&gt;
==Any questions about the process?==&lt;br /&gt;
Please post in the [https://moodle.org/mod/forum/view.php?id=28 Installing and upgrading help forum] on moodle.org.&lt;br /&gt;
&lt;br /&gt;
[[es:Actualización de moodle]]&lt;br /&gt;
[[fr:Mise à jour]]&lt;br /&gt;
[[ja:Moodleをアップグレードする]]&lt;br /&gt;
[[de:Aktualisierung von Moodle]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Upgrading&amp;diff=154266</id>
		<title>Upgrading</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Upgrading&amp;diff=154266"/>
		<updated>2025-10-03T09:20:55Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Update nginx configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
&#039;&#039;This page explains in detail how to upgrade Moodle. For a summary of the process, see [[Upgrade overview]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Warning|The directory structure of Moodle files has changed in 5.1. A new &amp;quot;public&amp;quot; folder has been introduced to contain all web accessible files. Configuration and other sensitive files are now stored below this folder for better security. You will need to reconfigure your web server to accommodate this change as part of the upgrade process. See the section below [[Upgrading#Code_directories_restructure|Code directories restructure]].}}&lt;br /&gt;
&lt;br /&gt;
==Check the requirements==&lt;br /&gt;
{{Note| You need to upgrade to Moodle 4.1.2 or later before upgrading to {{Version}}.}}&lt;br /&gt;
Before upgrading, check that your server meets all requirements for {{Version}} in &#039;&#039;Site administration &amp;gt; Server &amp;gt; [[Environment]]&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
See the [{{Release notes}} Moodle {{Version}} release notes] for server and client software requirements.&lt;br /&gt;
&lt;br /&gt;
==Before upgrading==&lt;br /&gt;
&#039;&#039;&#039;We advise that you test the upgrade first on a COPY of your production site, to make sure it works as you expect.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Consider setting the [[upgrade key]] for your site.&lt;br /&gt;
== Backup important data ==&lt;br /&gt;
There are three areas that should be backed up before any upgrade:&lt;br /&gt;
#Moodle software (For example, everything in server/htdocs/moodle)&lt;br /&gt;
#Moodle uploaded files (For example, server/moodledata)&lt;br /&gt;
#Moodle database (For example, your Postgres or MySQL database dump)&lt;br /&gt;
See [[Site backup]] for more specific information.&lt;br /&gt;
== Check for plugin updates ==&lt;br /&gt;
If you have [[Automatic updates deployment]] enabled, you will be able to update installed plugins automatically during the upgrade. Just make sure you check for available updates (via the button for it) at the Plugins check screen.&lt;br /&gt;
&lt;br /&gt;
If you are updating plugins manually, it is a good moment now to check in the [http://moodle.org/plugins Moodle Plugins directory] whether there is a {{Version}} version available for any [[Installing plugins#Plugins overview|plugins (including themes) installed on your site]]. If so, download the plugin package. In the next step, you will copy it to the appropriate location in your Moodle code (see [[Installing plugins]]).&lt;br /&gt;
&lt;br /&gt;
The upgrade of the plugin will then happen as part of the Moodle upgrade process.&lt;br /&gt;
&lt;br /&gt;
If an out-of-date plugin causes your upgrade to fail, you can usually delete the plugin code rather than uninstalling it from within Moodle so that the data associated with it is not deleted.&lt;br /&gt;
&lt;br /&gt;
==Put your site into maintenance mode==&lt;br /&gt;
Before you begin upgrading your site, you should put it into [[maintenance mode]] to stop any non-admin users from logging in. Then you should wait for any currently running cron processes to complete before proceeding.&lt;br /&gt;
&lt;br /&gt;
==Code directories restructure==&lt;br /&gt;
&lt;br /&gt;
The directory structure of Moodle files has changed in 5.1. In previous versions, the entire Moodle codebase sat within the web server’s document root. From Moodle 5.1 onwards, only the files that are safe to be accessed directly are located in /public.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important: You need to update your web server configuration so that the document root points to /moodle/public.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In Apache:&lt;br /&gt;
 DocumentRoot /var/www/moodle/public&lt;br /&gt;
 &amp;lt;Directory /var/www/moodle/public&amp;gt;&lt;br /&gt;
    AllowOverride None&lt;br /&gt;
    Require all granted&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Nginx:&lt;br /&gt;
 root /var/www/moodle/public;&lt;br /&gt;
Apply the change then restart the web server.&lt;br /&gt;
&lt;br /&gt;
== Install the new Moodle software ==&lt;br /&gt;
You can download the latest release from [https://download.moodle.org/ Moodle downloads].&lt;br /&gt;
&lt;br /&gt;
=== Standard install package ===&lt;br /&gt;
# Move your old Moodle software program files to another location. &#039;&#039;Do NOT copy new files over the old files.&#039;&#039;&lt;br /&gt;
# Unzip or unpack the upgrade file so that all the new Moodle software program files are in the location the old files used to be in on the server. Moodle will adjust SQL and moodledata if it needs to in the upgrade.&lt;br /&gt;
# Copy your old [[Configuration file|config.php file]] back to the new Moodle directory. &lt;br /&gt;
As mentioned above, if you had installed any plugins on your site you should add them to the new code tree (Moodle directory structure) now. It is important to check that you get the correct version for your new version of Moodle. Be particularly careful that you do not overwrite any code in the new version of Moodle and that you place the plugin folders in the correct directory (the same directory that they are in in the current installation.)&lt;br /&gt;
&lt;br /&gt;
Your moodledata folder should be located separately to your Moodle code folder and, as such, should not need anything done to it. Moodle 3.0 will throw a warning if it is located in a web accessible folder and the moodledata should never be located in the Moodle code folder. If you are moving your installation to a new server or new location on your server, then you will need to follow the [[Migration]] documents.&lt;br /&gt;
====Linux====&lt;br /&gt;
 mv moodle moodle.backup&lt;br /&gt;
 tar xvzf moodle-latest-{{Version}}.tgz&lt;br /&gt;
Next, copy across your config.php, any custom plugins, and your .htaccess file if you created one (&#039;&#039;&#039;check that custom plugins are the correct version for your new Moodle first&#039;&#039;&#039;):&lt;br /&gt;
 cp moodle.backup/config.php moodle&lt;br /&gt;
 cp -pr moodle.backup/theme/mytheme moodle/public/theme/mytheme&lt;br /&gt;
 cp -pr moodle.backup/mod/mymod moodle/public/mod/mymod&lt;br /&gt;
Don&#039;t forget to make moodle/config.php (and the rest of the source code) readable by your www server. For maximum security the files should not be writeable by your server. This is especially important on a &#039;production&#039; server open to the public internet. &lt;br /&gt;
 chown -R root:root moodle (Linux debian - or even create a user especially for moodle. &#039;&#039;&#039;Don&#039;t&#039;&#039;&#039; use the web server user, e.g. www-data)&lt;br /&gt;
 chmod -R 755 moodle&lt;br /&gt;
If you use cron, take care that cron.php is executeable and uses the correct php command: &lt;br /&gt;
 chmod 740 admin/cli/cron.php (some configurations need chmod 750 or chmod 755)&lt;br /&gt;
 copy the first line from cron.php (if it looks like &#039;#!/usr/local/bin/php&#039; or &#039;#!/usr/local/bin/php5.3&#039;, no need to copy &#039;&amp;lt;?php&#039;) &lt;br /&gt;
if necessary. However, for a simple upgrade, there should be no need to change anything with cron.&lt;br /&gt;
=== Using Git ===&lt;br /&gt;
You can use Git for updating or upgrading your Moodle. See [[Git for Administrators]] for details.&lt;br /&gt;
===Command line upgrade===&lt;br /&gt;
On Linux servers, Moodle {{Version}} supports running the [[CLI|upgrade from the command line]], rather than through a web browser. This is likely to be more reliable, particularly for large sites.&lt;br /&gt;
&lt;br /&gt;
== Finishing the upgrade ==&lt;br /&gt;
The last step is to trigger the upgrade processes within Moodle. &lt;br /&gt;
&lt;br /&gt;
If you put your site into Maintenance mode earlier; take it out now!&lt;br /&gt;
&lt;br /&gt;
To do this just go to &#039;&#039;Site administration &amp;gt; Notifications&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Moodle will automatically detect the new version and perform all the SQL database or file system upgrades that are necessary. If there is anything it can&#039;t do itself (very rare) then you will see messages telling you what you need to do.&lt;br /&gt;
&lt;br /&gt;
Assuming all goes well (no error messages) then you can start using your new version of Moodle and enjoy the new features!&lt;br /&gt;
&lt;br /&gt;
Note: If you are running multiple servers or find some functionality missing (such as the &#039;&#039;filepicker&#039;&#039; not loading) then you should purge all caches manually (via &#039;&#039;Site administration &amp;gt; Development &amp;gt; Purge all caches&#039;&#039;) after completing the upgrade.&lt;br /&gt;
===Fatal error: Maximum execution time of 30 seconds exceeded...===&lt;br /&gt;
If your server uses a main language other than English, you may encounter a &#039;Fatal error: Maximum execution time of 30 seconds exceeded&#039; when you try to upgrade it. You can increase max_execution_time = 160 on php.ini to allow the scripts enough time to process the language update. Otherwise, you can switch to English as the default language before doing the upgrade and back to your original language after a successful upgrade. See the forum discussion at https://moodle.org/mod/forum/discuss.php?d=119598.&lt;br /&gt;
&lt;br /&gt;
==Possible issues that may affect you in Moodle {{Version}}==&lt;br /&gt;
&lt;br /&gt;
===Moodle code restructure===&lt;br /&gt;
&lt;br /&gt;
As noted above, the directory structure of Moodle files has changed. Make sure your web server has been configured to use this new structure. For configuration information, see [https://moodledev.io/docs/5.1/guides/restructure Code Restructure | Moodle Developer Resources].&lt;br /&gt;
&lt;br /&gt;
===Activity chooser enhancements===&lt;br /&gt;
&lt;br /&gt;
[[Activity chooser]] items are organised into categories according to their purpose.&lt;br /&gt;
&lt;br /&gt;
The setting &#039;Activity chooser tabs&#039; in the Site administration is removed, as activities are no longer classified as activity or resource.&lt;br /&gt;
&lt;br /&gt;
In the Activity chooser, to select an activity, you need to click it and then click the Add button. Alternatively, to quickly go to the Add activity page you can double-click an activity. Previously, a single click took you to the Add activity page; the Add button provides an improved user experience.&lt;br /&gt;
&lt;br /&gt;
===Activities and Section links blocks removed===&lt;br /&gt;
&lt;br /&gt;
The Activities and Section links blocks are no longer included in Moodle 5.1 onwards, as the functionality is provided elsewhere. The [[Activities overview]] lists all activities in the course and the course index includes links to sections.&lt;br /&gt;
&lt;br /&gt;
===Main menu block renamed Additional activities block===&lt;br /&gt;
&lt;br /&gt;
The Main menu block is renamed [[Additional activities block]]. The block can also be used in courses in Single activity format to show links to additional activities in the course. The title of the block can be changed if required.&lt;br /&gt;
&lt;br /&gt;
===Social course format is disabled by default===&lt;br /&gt;
&lt;br /&gt;
Social course format is disabled by default in &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Manage course formats&#039;&#039; in Moodle 5.1 onwards, and will be removed in a future version, as the functionality is provided by Single activity format with Forum as the type of activity.&lt;br /&gt;
&lt;br /&gt;
Any courses using Social format will remain unchanged, though it is recommended that you change the [[Course formats|course format]] to Single activity format with Forum as the type of activity.&lt;br /&gt;
&lt;br /&gt;
===Forgotten password page reCAPTCHA===&lt;br /&gt;
&lt;br /&gt;
You can protect against automated attacks by adding reCAPTCHA to the forgotten password page in &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Manage authentication&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Media drag and drop setting removed===&lt;br /&gt;
&lt;br /&gt;
Media drag and drop is always enabled. The setting &#039;Media drag and drop&#039; (label | dndmedia) in &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Text and media area&#039;&#039; is removed, as there is no reason to disable the functionality.&lt;br /&gt;
&lt;br /&gt;
===Maximum number of sections setting deprecated===&lt;br /&gt;
&lt;br /&gt;
The setting &#039;Maximum number of sections&#039; (maxsections) in &#039;&#039;Site administration &amp;gt; Courses &amp;gt; Course default settings&#039;&#039; is no longer used in any standard feature. The setting is deprecated and will be removed in a future version. A teacher can add as many sections as they want to their course with no limit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See also the list of [https://tracker.moodle.org/issues/?jql=project%20%3D%20MDL%20AND%20resolution%20%3D%20Fixed%20AND%20fixVersion%20%3D%205.1%20AND%20labels%20%3D%20upgrade_notes upgrade_notes-labelled issues] and [https://tracker.moodle.org/issues/?jql=project%20%3D%20MDL%20AND%20resolution%20%3D%20Fixed%20AND%20fixVersion%20%3D%205.1%20AND%20labels%20%3D%20ui_change ui_change-labelled issues].&lt;br /&gt;
&lt;br /&gt;
===New capabilities in Moodle {{Version}}===&lt;br /&gt;
&lt;br /&gt;
* moodle/customfield:configureshared&lt;br /&gt;
&lt;br /&gt;
== Moodle 4.1, 4.2, 4.3, 4.4 and 4.5 upgrading notes ==&lt;br /&gt;
Depending on which version you are upgrading from, please see the section &#039;Possible issues that may affect you&#039; in the documentation:&lt;br /&gt;
* [https://docs.moodle.org/401/en/Upgrading Upgrading to Moodle 4.1]&lt;br /&gt;
* [https://docs.moodle.org/402/en/Upgrading Upgrading to Moodle 4.2]&lt;br /&gt;
* [https://docs.moodle.org/403/en/Upgrading Upgrading to Moodle 4.3]&lt;br /&gt;
* [https://docs.moodle.org/404/en/Upgrading Upgrading to Moodle 4.4]&lt;br /&gt;
* [https://docs.moodle.org/405/en/Upgrading Upgrading to Moodle 4.5]&lt;br /&gt;
&lt;br /&gt;
==Any questions about the process?==&lt;br /&gt;
Please post in the [https://moodle.org/mod/forum/view.php?id=28 Installing and upgrading help forum] on moodle.org.&lt;br /&gt;
&lt;br /&gt;
[[es:Actualización de moodle]]&lt;br /&gt;
[[fr:Mise à jour]]&lt;br /&gt;
[[ja:Moodleをアップグレードする]]&lt;br /&gt;
[[de:Aktualisierung von Moodle]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:fetchanyuserpolicystatus&amp;diff=149908</id>
		<title>Capabilities/moodle/ai:fetchanyuserpolicystatus</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:fetchanyuserpolicystatus&amp;diff=149908"/>
		<updated>2024-10-30T08:45:19Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Capabilities}}&lt;br /&gt;
*This allows a user to get the AI policy acceptance status of another user.&lt;br /&gt;
*This capability is allowed for the default [[Authenticated user|authenticated user]] role&lt;br /&gt;
*The feature to view another user&#039;s AI policy acceptance status is currently under development. For more details, see [https://tracker.moodle.org/browse/MDL-83396 MDL-83396]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[AI_subsystem]]&lt;br /&gt;
&lt;br /&gt;
[[es:Capabilities/moodle/ai:fetchanyuserpolicystatus]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:fetchanyuserpolicystatus&amp;diff=149907</id>
		<title>Capabilities/moodle/ai:fetchanyuserpolicystatus</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:fetchanyuserpolicystatus&amp;diff=149907"/>
		<updated>2024-10-30T08:38:48Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Capabilities}}&lt;br /&gt;
*This allows a user to get the AI policy acceptance status of another user.&lt;br /&gt;
*This capability is allowed for the default [[Authenticated user|authenticated user]] role&lt;br /&gt;
*The feature to view another user&#039;s AI policy acceptance status is currently under development. For more details, see ticket [https://tracker.moodle.org/browse/MDL-83396 MDL-83396]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[AI_subsystem]]&lt;br /&gt;
&lt;br /&gt;
[[es:Capabilities/moodle/ai:fetchanyuserpolicystatus]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:fetchanyuserpolicystatus&amp;diff=149791</id>
		<title>Capabilities/moodle/ai:fetchanyuserpolicystatus</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:fetchanyuserpolicystatus&amp;diff=149791"/>
		<updated>2024-10-25T10:12:42Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Created page with &amp;quot;{{Capabilities}} *This allows a user to get the AI policy acceptance status of another user. *This capability is allowed for the default authenticated user role   ==See also== AI_subsystem&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Capabilities}}&lt;br /&gt;
*This allows a user to get the AI policy acceptance status of another user.&lt;br /&gt;
*This capability is allowed for the default [[Authenticated user|authenticated user]] role&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[AI_subsystem]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:fetchpolicy&amp;diff=149790</id>
		<title>Capabilities/moodle/ai:fetchpolicy</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:fetchpolicy&amp;diff=149790"/>
		<updated>2024-10-25T10:11:59Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Created page with &amp;quot;{{Capabilities}} *This capability allows a user to get AI policy acceptance status. *This capability is allowed for the default authenticated user role   ==See also== AI_subsystem&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Capabilities}}&lt;br /&gt;
*This capability allows a user to get AI policy acceptance status.&lt;br /&gt;
*This capability is allowed for the default [[Authenticated user|authenticated user]] role&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[AI_subsystem]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:acceptpolicy&amp;diff=149789</id>
		<title>Capabilities/moodle/ai:acceptpolicy</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:acceptpolicy&amp;diff=149789"/>
		<updated>2024-10-25T10:11:12Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Capabilities}}&lt;br /&gt;
*This allows a user to set AI policy acceptance&lt;br /&gt;
*This capability is allowed for the default [[Authenticated user|authenticated user]] role&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[AI_subsystem]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:acceptpolicy&amp;diff=149788</id>
		<title>Capabilities/moodle/ai:acceptpolicy</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Capabilities/moodle/ai:acceptpolicy&amp;diff=149788"/>
		<updated>2024-10-25T10:08:02Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: New Capabilities page for ai:acceptpolicy&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Capabilities}}&lt;br /&gt;
*This allows a user to set AI policy acceptance&lt;br /&gt;
*This capability is allowed for the default authenticated user role&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[AI_subsystem]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_placements&amp;diff=149684</id>
		<title>AI placements</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_placements&amp;diff=149684"/>
		<updated>2024-10-18T13:37:22Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Placements define how and where AI Actions can be used in Moodle LMS. Site administrators can choose which actions are available in each Placement through their settings.  &lt;br /&gt;
&lt;br /&gt;
By default, all AI Placements are disabled. You can enable them through the AI Placements page (Go to site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI Placements).&lt;br /&gt;
&lt;br /&gt;
[[File:AI placements.png|none|thumb|600x600px|AI placements]]&lt;br /&gt;
Please be aware that an [[AI providers|AI Provider]] must be enabled and configured before Placements will be available on the site, even if they have been enabled (in this case an error message will also be displayed when accessing each Placement’s settings).&lt;br /&gt;
&lt;br /&gt;
The first time each user attempts to interact with AI via any Placement, they will be presented with an AI usage policy, which they must accept before being allowed to proceed with the AI Action they are attempting. This is only required once per user, so accepting within one Placement will mean they are not prompted by other Placements that may be available.&lt;br /&gt;
&lt;br /&gt;
===HTML Text Editor Placement ===&lt;br /&gt;
Enable Generate Text and Generate Image Actions by toggling the settings.&lt;br /&gt;
&lt;br /&gt;
Once enabled, users can access these options in the editor by clicking the Generate AI content icon or via the Insert menu. If both Actions are enabled, options for AI Generate Text and AI Generate Image will be available. If only one of  the Actions is enabled, that Action will be available as a button rather than a dropdown.[[File:HTML Text editor placement.png|none|thumb|600x600px]]&lt;br /&gt;
&lt;br /&gt;
=====AI generate text:=====&lt;br /&gt;
Users can generate text via the Generate AI content icon or through the insert menu, where they can provide a description of the text to be generated: &lt;br /&gt;
[[File:GenerateText.png|none|thumb|600x600px]]&lt;br /&gt;
&lt;br /&gt;
=====AI generate image:=====&lt;br /&gt;
Users can generate images via the Generate AI content icon or through the Insert menu, where they can provide a description and choose some basic image options:&lt;br /&gt;
[[File:Generate Image.png|none|thumb|600x600px]]&lt;br /&gt;
&lt;br /&gt;
===Course Assistance Placement===&lt;br /&gt;
To enable this feature access to “AI placements” on the “Course assistance placement” click on enable toggle. Click on the settings link to access to the “Actions” page where you can enable the Summarise text option. &lt;br /&gt;
&lt;br /&gt;
Once enabled, the Summarise button can be used in any course page to summarise the main text content of the page. [[File:Summarise.jpg|none|thumb|600x600px|Summarise text]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Colocaciones de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149683</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149683"/>
		<updated>2024-10-18T13:34:59Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle LMS’s integration with OpenAI provides access to AI Actions such as generate text, generate image or summarise course content.   &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found at https://platform.openai.com. &lt;br /&gt;
&lt;br /&gt;
===Requirements:===&lt;br /&gt;
An OpenAI account with access to a paid API key. In Moodle LMS 4.5.0, both an OpenAI API key and OpenAI organization ID are required, however the organization ID will become optional from 4.5.1.&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, although keys can be generate by both free and paid accounts, API usage is restricted based on the paid tokens available on the account. &#039;&#039;&#039;Access to the API used by the Moodle LMS integration requires a subscription to one of OpenAI’s paid API plans&#039;&#039;&#039; (such as pay-as-you-go). Access, usage limits and pricing tiers are dependent on the model used, so it is best to check the [https://openai.com/api/pricing/ OpenAI API pricing page] for the latest information.&lt;br /&gt;
&lt;br /&gt;
===Configuring OpenAI API Provider settings===&lt;br /&gt;
#Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers.&lt;br /&gt;
#Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
#Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
#In the “Settings” area proceed to configure the following: &lt;br /&gt;
#*OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#*OpenAI organization ID: You find this in  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)&lt;br /&gt;
#*Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour.&lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#*Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#*Maximum number of requests per user can be configured after enable “Set user rate limit”.&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API Provider actions ===&lt;br /&gt;
&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
 &lt;br /&gt;
The following Action settings are available for the OpenAI Provider.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:    &lt;br /&gt;
&lt;br /&gt;
* AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about at [https://platform.openai.com/docs/models OpenAI Models]. By default, the model is set to “GPT-4o”,  but this can be configured to any other compatible model. For more details, [https://platform.openai.com/settings/organization/limits see your organization&#039;s settings and limits information].&lt;br /&gt;
&lt;br /&gt;
*API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit [https://platform.openai.com/docs/models/model-endpoint-compatibility Model endpoint compatibility].&lt;br /&gt;
*System instruction: There are default system instructions in place to help direct the expected response format from the AI, but these can be customised to suit your specific needs. These are used to ensure a smooth user experience where only the requested text generation is returned, with no salutations, repetition of the request etc. It is therefore recommended these are not modified unless you are confident the change is absolutely necessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
*AI model: The default is set to “dall-e-3” but it can be changed to  any other image generation compatible model.  For more details, visit: [https://platform.openai.com/docs/models/dall-e DALL-E Models].&lt;br /&gt;
*API endpoint:  Please ensure your API endpoint is compatible with your selected model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With all of the above enabled and configured, the OpenAI Provider can be used for all of the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure [[AI placements|&#039;&#039;&#039;AI Placements&#039;&#039;&#039;]] settings. [[File:Generate text in OpenAI.png|none|thumb|600x600px|OpenAI Provider - Generate text settings]]&lt;br /&gt;
[[File:OpenAI Provider - Generate image.png|none|thumb|600x600px|OpenAI Provider - Generate image settings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149682</id>
		<title>Azure AI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149682"/>
		<updated>2024-10-18T13:34:10Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle LMS’s integration with Azure AI provides access to AI Actions such as generate text, generate an image or summarise course content.&lt;br /&gt;
&lt;br /&gt;
More information about Azure AI can be found at https://learn.microsoft.com/en-us/azure/ai-services/openai &lt;br /&gt;
&lt;br /&gt;
===Requirements:===&lt;br /&gt;
An active Azure account. If you don’t have one, you can create it through the [https://portal.azure.com Azure portal]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ensure you have an active subscription to access&#039;&#039;&#039; [https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits &#039;&#039;&#039;Azure AI services&#039;&#039;&#039;]. Obtain the API key and endpoint from the [https://portal.azure.com Azure Portal] to authenticate your requests (This is found under the &amp;quot;Keys and Endpoint&amp;quot; section of your resource.)&lt;br /&gt;
&lt;br /&gt;
=== Configuring Azure AI API provider===&lt;br /&gt;
&lt;br /&gt;
#Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers&lt;br /&gt;
# Enable the &amp;quot;Azure AI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
#Click on the &amp;quot;Azure AI API Provider&amp;quot; settings link.&lt;br /&gt;
#In the “Settings” area proceed to configure the following:&lt;br /&gt;
#*Azure AI API key: You can find the key in your [https://portal.azure.com Azure AI account]. &lt;br /&gt;
#*Azure AI API endpoint:  Enter the endpoint URL for your Azure AI API, in the following format: &amp;lt;nowiki&amp;gt;https://YOUR_RESOURCE_NAME.openai.azure.com&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
#*Set site-wide rate limit:  An optional feature to limit the number of requests that the Azure AI API Provider can receive across the entire site every hour. &lt;br /&gt;
#*Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#*Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#*Maximum number of requests per user can be configured after enabling “Set user rate limit”&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&lt;br /&gt;
&lt;br /&gt;
===Configuring Azure AI API Provider Actions ===&lt;br /&gt;
[[File:Azure AI Actions.png|none|thumb|600x600px|Azure AI Actions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following Action settings are available for the Azure AI API Provider.  &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings: &lt;br /&gt;
&lt;br /&gt;
* Deployment ID:  The unique identifier assigned to a specific model deployment, which you can find in the &amp;quot;Deployments&amp;quot; section of your Azure OpenAI resource in the Azure Portal.&lt;br /&gt;
* API version: The API specific version of the API you&#039;re interacting with, you can find the latest available version under the &amp;quot;API Management&amp;quot; section of your [https://learn.microsoft.com/en-us/azure/ai-services/openai/ Azure OpenAI] resource.&lt;br /&gt;
* System instruction: There are default system instructions in place to help direct the expected response format from the AI, but these can be customised to suit your specific needs. These are used to ensure a smooth user experience where only the requested text generation is returned, with no salutations, repetition of the request etc. It is therefore recommended these are not modified unless you are confident the change is absolutely necessary.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
* Deployment ID: The unique identifier assigned to the specific DALL-E model deployment, which you can find in the &amp;quot;Deployments&amp;quot; section of your Azure OpenAI resource in the Azure Portal, allowing you to generate images via [https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#image-generation API requests].&lt;br /&gt;
* API version. The API specific version of the API you&#039;re interacting with, you can find the latest available version under the &amp;quot;API Management&amp;quot; section of your [https://learn.microsoft.com/en-us/azure/ai-services/openai/ Azure OpenAI] resource.&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
With all of the above enabled and configured, the Azure AI API Provider can be used for all of the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure [[AI placements|&#039;&#039;&#039;AI Placements&#039;&#039;&#039;]] settings. [[File:Azure AI Provider - Generate text.png|none|thumb|600x600px|Azure AI Provider - Generate text]]&lt;br /&gt;
[[File:Generate AI Image.png|none|thumb|600x600px|Azure AI Provider - Generate image]]  &lt;br /&gt;
[[es:Proveedor Azure AI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149681</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149681"/>
		<updated>2024-10-18T13:32:46Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle LMS’s integration with OpenAI provides access to AI Actions such as generate text, generate image or summarise course content.   &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found at https://platform.openai.com. &lt;br /&gt;
&lt;br /&gt;
===Requirements:===&lt;br /&gt;
An OpenAI account with access to a paid API key. In Moodle LMS 4.5.0, both an OpenAI API key and OpenAI organization ID are required, however the organization ID will become optional from 4.5.1.&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, although keys can be generate by both free and paid accounts, API usage is restricted based on the paid tokens available on the account. &#039;&#039;&#039;Access to the API used by the Moodle LMS integration requires a subscription to one of OpenAI’s paid API plans&#039;&#039;&#039; (such as pay-as-you-go). Access, usage limits and pricing tiers are dependent on the model used, so it is best to check the [https://openai.com/api/pricing/ OpenAI API pricing page] for the latest information.&lt;br /&gt;
&lt;br /&gt;
===Configuring OpenAI API Provider settings===&lt;br /&gt;
#Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers.&lt;br /&gt;
#Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
#Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
#In the “Settings” area proceed to configure the following: &lt;br /&gt;
#*OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#*OpenAI organization ID: You find this in  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)&lt;br /&gt;
#*Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour.&lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#*Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#*Maximum number of requests per user can be configured after enable “Set user rate limit”.&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API Provider actions ===&lt;br /&gt;
&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
 &lt;br /&gt;
The following Action settings are available for the OpenAI Provider.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:    &lt;br /&gt;
&lt;br /&gt;
* AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about at [https://platform.openai.com/docs/models OpenAI Models]. By default, the model is set to “GPT-4o”,  but this can be configured to any other compatible model. For more details, [https://platform.openai.com/settings/organization/limits see your organization&#039;s settings and limits information].&lt;br /&gt;
&lt;br /&gt;
*API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit [https://platform.openai.com/docs/models/model-endpoint-compatibility Model endpoint compatibility].&lt;br /&gt;
*System instruction: There are default system instructions in place to help direct the expected response format from the AI, but these can be customised to suit your specific needs. These are used to ensure a smooth user experience where only the requested text generation is returned, with no salutations, repetition of the request etc. It is therefore recommended these are not modified unless you are confident the change is absolutely necessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
*AI model: The default is set to “dall-e-3” but it can be changed to  any other image generation compatible model.  For more details, visit: [https://platform.openai.com/docs/models/dall-e DALL-E Models].&lt;br /&gt;
*API endpoint:  Please ensure your API endpoint is compatible with your selected model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With all of the above enabled and configured, the OpenAI Provider can be used for all of the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure [[AI placements|&#039;&#039;&#039;AI Placements&#039;&#039;&#039;]] settings. [[File:Generate text in OpenAI.png|none|thumb|600x600px|Settings to generate text in OpenAI]]&lt;br /&gt;
[[File:OpenAI Provider - Generate image.png|none|thumb|600x600px|OpenAI Provider - Generate image]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=File:OpenAI_Provider_-_Generate_image.png&amp;diff=149680</id>
		<title>File:OpenAI Provider - Generate image.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=File:OpenAI_Provider_-_Generate_image.png&amp;diff=149680"/>
		<updated>2024-10-18T13:32:25Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenAI Provider - Generate image&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149679</id>
		<title>Azure AI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149679"/>
		<updated>2024-10-18T13:31:14Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle LMS’s integration with Azure AI provides access to AI Actions such as generate text, generate an image or summarise course content.&lt;br /&gt;
&lt;br /&gt;
More information about Azure AI can be found at https://learn.microsoft.com/en-us/azure/ai-services/openai &lt;br /&gt;
&lt;br /&gt;
===Requirements:===&lt;br /&gt;
An active Azure account. If you don’t have one, you can create it through the [https://portal.azure.com Azure portal]. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Ensure you have an active subscription to access&#039;&#039;&#039; [https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits &#039;&#039;&#039;Azure AI services&#039;&#039;&#039;]. Obtain the API key and endpoint from the [https://portal.azure.com Azure Portal] to authenticate your requests (This is found under the &amp;quot;Keys and Endpoint&amp;quot; section of your resource.)&lt;br /&gt;
&lt;br /&gt;
=== Configuring Azure AI API provider===&lt;br /&gt;
&lt;br /&gt;
#Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers&lt;br /&gt;
# Enable the &amp;quot;Azure AI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
#Click on the &amp;quot;Azure AI API Provider&amp;quot; settings link.&lt;br /&gt;
#In the “Settings” area proceed to configure the following:&lt;br /&gt;
#*Azure AI API key: You can find the key in your [https://portal.azure.com Azure AI account]. &lt;br /&gt;
#*Azure AI API endpoint:  Enter the endpoint URL for your Azure AI API, in the following format: &amp;lt;nowiki&amp;gt;https://YOUR_RESOURCE_NAME.openai.azure.com&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
#*Set site-wide rate limit:  An optional feature to limit the number of requests that the Azure AI API Provider can receive across the entire site every hour. &lt;br /&gt;
#*Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#*Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#*Maximum number of requests per user can be configured after enabling “Set user rate limit”&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&lt;br /&gt;
&lt;br /&gt;
===Configuring Azure AI API Provider Actions ===&lt;br /&gt;
[[File:Azure AI Actions.png|none|thumb|600x600px|Azure AI Actions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following Action settings are available for the Azure AI API Provider.  &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings: &lt;br /&gt;
&lt;br /&gt;
* Deployment ID:  The unique identifier assigned to a specific model deployment, which you can find in the &amp;quot;Deployments&amp;quot; section of your Azure OpenAI resource in the Azure Portal.&lt;br /&gt;
* API version: The API specific version of the API you&#039;re interacting with, you can find the latest available version under the &amp;quot;API Management&amp;quot; section of your [https://learn.microsoft.com/en-us/azure/ai-services/openai/ Azure OpenAI] resource.&lt;br /&gt;
* System instruction: There are default system instructions in place to help direct the expected response format from the AI, but these can be customised to suit your specific needs. These are used to ensure a smooth user experience where only the requested text generation is returned, with no salutations, repetition of the request etc. It is therefore recommended these are not modified unless you are confident the change is absolutely necessary.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
Generate image: You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
* Deployment ID: The unique identifier assigned to the specific DALL-E model deployment, which you can find in the &amp;quot;Deployments&amp;quot; section of your Azure OpenAI resource in the Azure Portal, allowing you to generate images via [https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#image-generation API requests].&lt;br /&gt;
* API version. The API specific version of the API you&#039;re interacting with, you can find the latest available version under the &amp;quot;API Management&amp;quot; section of your [https://learn.microsoft.com/en-us/azure/ai-services/openai/ Azure OpenAI] resource.&lt;br /&gt;
&lt;br /&gt;
With all of the above enabled and configured, the Azure AI API Provider can be used for all of the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure [[AI placements|&#039;&#039;&#039;AI Placements&#039;&#039;&#039;]] settings. [[File:Azure AI Provider - Generate text.png|none|thumb|600x600px|Azure AI Provider - Generate text]]&lt;br /&gt;
[[File:Generate AI Image.png|none|thumb|600x600px|Azure AI Provider - Generate image]]  &lt;br /&gt;
[[es:Proveedor Azure AI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149678</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149678"/>
		<updated>2024-10-18T13:22:00Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle LMS’s integration with OpenAI provides access to AI Actions such as generate text, generate image or summarise course content.   &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found at https://platform.openai.com. &lt;br /&gt;
&lt;br /&gt;
===Requirements:===&lt;br /&gt;
An OpenAI account with access to a paid API key. In Moodle LMS 4.5.0, both an OpenAI API key and OpenAI organization ID are required, however the organization ID will become optional from 4.5.1.&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, although keys can be generate by both free and paid accounts, API usage is restricted based on the paid tokens available on the account. &#039;&#039;&#039;Access to the API used by the Moodle LMS integration requires a subscription to one of OpenAI’s paid API plans&#039;&#039;&#039; (such as pay-as-you-go). Access, usage limits and pricing tiers are dependent on the model used, so it is best to check the [https://openai.com/api/pricing/ OpenAI API pricing page] for the latest information.&lt;br /&gt;
&lt;br /&gt;
===Configuring OpenAI API Provider settings===&lt;br /&gt;
#Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers.&lt;br /&gt;
#Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
#Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
#In the “Settings” area proceed to configure the following: &lt;br /&gt;
#*OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#*OpenAI organization ID: You find this in  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)&lt;br /&gt;
#*Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour.&lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#*Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#*Maximum number of requests per user can be configured after enable “Set user rate limit”.&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API Provider actions ===&lt;br /&gt;
&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
 &lt;br /&gt;
The following Action settings are available for the OpenAI Provider.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:    &lt;br /&gt;
&lt;br /&gt;
* AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about at [https://platform.openai.com/docs/models OpenAI Models]. By default, the model is set to “GPT-4o”,  but this can be configured to any other compatible model. For more details, [https://platform.openai.com/settings/organization/limits see your organization&#039;s settings and limits information].&lt;br /&gt;
&lt;br /&gt;
*API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit [https://platform.openai.com/docs/models/model-endpoint-compatibility Model endpoint compatibility].&lt;br /&gt;
*System instruction: There are default system instructions in place to help direct the expected response format from the AI, but these can be customised to suit your specific needs. These are used to ensure a smooth user experience where only the requested text generation is returned, with no salutations, repetition of the request etc. It is therefore recommended these are not modified unless you are confident the change is absolutely necessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
*AI model: The default is set to “dall-e-3” but it can be changed to  any other image generation compatible model.  For more details, visit: [https://platform.openai.com/docs/models/dall-e DALL-E Models].&lt;br /&gt;
*API endpoint:  Please ensure your API endpoint is compatible with your selected model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With all of the above enabled and configured, the OpenAI Provider can be used for all of the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure [[AI placements|&#039;&#039;&#039;AI Placements&#039;&#039;&#039;]] settings. [[File:Generate text in OpenAI.png|none|thumb|600x600px|Settings to generate text in OpenAI]]&lt;br /&gt;
[[File:Generate AI Image.png|none|thumb|600x600px|Settings to generate image in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149677</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149677"/>
		<updated>2024-10-18T13:19:37Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Update doc&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle LMS’s integration with OpenAI provides access to AI Actions such as generate text, generate image or summarise course content.   &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found at https://platform.openai.com. &lt;br /&gt;
&lt;br /&gt;
===Requirements:===&lt;br /&gt;
An OpenAI account with access to a paid API key. In Moodle LMS 4.5.0, both an OpenAI API key and OpenAI organization ID are required, however the organization ID will become optional from 4.5.1.&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, although keys can be generate by both free and paid accounts, API usage is restricted based on the paid tokens available on the account. &#039;&#039;&#039;Access to the API used by the Moodle LMS integration requires a subscription to one of OpenAI’s paid API plans&#039;&#039;&#039; (such as pay-as-you-go). Access, usage limits and pricing tiers are dependent on the model used, so it is best to check the [https://openai.com/api/pricing/ OpenAI API pricing page] for the latest information.&lt;br /&gt;
&lt;br /&gt;
===Configuring OpenAI API Provider settings===&lt;br /&gt;
#Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers.&lt;br /&gt;
#Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
#Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
#In the “Settings” area proceed to configure the following: &lt;br /&gt;
#*OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#*OpenAI organization ID: You find this in  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)&lt;br /&gt;
#*Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour.&lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#*Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#*Maximum number of requests per user can be configured after enable “Set user rate limit”.&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API Provider actions ===&lt;br /&gt;
&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
 &lt;br /&gt;
The following Action settings are available for the OpenAI Provider.   &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:    &lt;br /&gt;
&lt;br /&gt;
* AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about at [https://platform.openai.com/docs/models OpenAI Models]. By default, the model is set to “GPT-4o”,  but this can be configured to any other compatible model. For more details, [https://platform.openai.com/settings/organization/limits see your organization&#039;s settings and limits information].&lt;br /&gt;
&lt;br /&gt;
*API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit [https://platform.openai.com/docs/models/model-endpoint-compatibility Model endpoint compatibility].&lt;br /&gt;
*System instruction: There are default system instructions in place to help direct the expected response format from the AI, but these can be customised to suit your specific needs. These are used to ensure a smooth user experience where only the requested text generation is returned, with no salutations, repetition of the request etc. It is therefore recommended these are not modified unless you are confident the change is absolutely necessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
*AI model: The default is set to “dall-e-3” but it can be changed to  any other image generation compatible model.  For more details, visit: [https://platform.openai.com/docs/models/dall-e DALL-E Models].&lt;br /&gt;
*API endpoint:  Please ensure your API endpoint is compatible with your selected model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With all of the above enabled and configured, the OpenAI Provider can be used for all of the AI Placements available in your Moodle LMS instance; Course Assistance and HTML Text Editor Placements. Don&#039;t forget to also enable and configure [[AI placements|AI Placements]] settings. [[File:Generate text in OpenAI.png|none|thumb|600x600px|Settings to generate text in OpenAI]]&lt;br /&gt;
[[File:Generate AI Image.png|none|thumb|600x600px|Settings to generate image in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=File:Generate_AI_Image.png&amp;diff=149676</id>
		<title>File:Generate AI Image.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=File:Generate_AI_Image.png&amp;diff=149676"/>
		<updated>2024-10-18T13:16:58Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Generate AI Image&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_providers&amp;diff=149675</id>
		<title>AI providers</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_providers&amp;diff=149675"/>
		<updated>2024-10-18T13:07:07Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle&#039;s AI subsystem allows integration with various AI Providers through their APIs, enabling a range of AI-powered functionalities for your site. These Providers offer &#039;&#039;&#039;Actions&#039;&#039;&#039; such as text generation, course content summarisation, and image generation, which can enhance user interaction and content creation.&lt;br /&gt;
&lt;br /&gt;
By default, all AI Providers are disabled, but  can be enabled through the AI Providers Management page. Each Provider’s settings page also allows you to specify settings for the Actions they support.  &lt;br /&gt;
&lt;br /&gt;
[[File:AI Providers.png|thumb|600x600px|AI Providers|none]]&lt;br /&gt;
&lt;br /&gt;
===OpenAI API Provider===&lt;br /&gt;
The OpenAI API Provider in Moodle enables integration with [https://openai.com/ OpenAI’s services], allowing for features like text generation, course content summarisation, and image generation. To configure this Provider, site administrators need to set up an OpenAI account and subscribe to one of its paid API plans.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[OpenAI API provider|OpenAI API Provider]] for information about this plugin.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Azure AI API provider===&lt;br /&gt;
The Azure AI API Provider connects Moodle with Microsoft&#039;s [https://learn.microsoft.com/en-us/azure/ai-services/openai Azure AI services], offering capabilities such as text generation, course content summarisation, and image generation. To configure this Provider, site administrators require an Azure account and API access, with different service levels available depending on the chosen Azure subscription.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[Azure AI API provider|Azure AI API Provider]] for information about this plugin.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Other providers==&lt;br /&gt;
Numerous other LLM providers, both open-source and commercial, as well as tools like AI proxies or routers, offer an OpenAI API-compatible layer for accessing their services.&lt;br /&gt;
&lt;br /&gt;
See [[Ollama]] for information about how to use a local Ollama provider.&lt;br /&gt;
&lt;br /&gt;
[[es:Proveedores de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149674</id>
		<title>AI tools</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149674"/>
		<updated>2024-10-18T12:39:17Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle LMS 4.5 includes an AI subsystem, a new feature which is the foundation for integrating AI tools into Moodle LMS. Any open source or commercial large language model (LLM) can be supported via Provider plugins. The initial release includes plugins for OpenAI and Azure (which may also function with compatible LLMs), with more Providers on the roadmap for future development.&lt;br /&gt;
&lt;br /&gt;
{{MediaPlayer | url = https://youtu.be/pfpK7SJTPks?si=bt5g5HCNnYCy4MyG | desc = AI subsystem}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI Subsystem is designed to integrate AI functionality seamlessly into teaching and learning activities. It offers a user-friendly interface and backend integration with multiple AI Providers. Users with appropriate capabilities can benefit from functionality such as generating text and images via the text editor, and summarising course content.&lt;br /&gt;
&lt;br /&gt;
This subsystem is structured around &#039;&#039;&#039;Placements&#039;&#039;&#039;, &#039;&#039;&#039;Actions&#039;&#039;&#039; and &#039;&#039;&#039;Providers&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI providers|AI Providers]] for information about Provider plugins&#039;&#039;&#039;. AI Providers add AI functionality to your site by allowing Moodle LMS to communicate with external services, such as OpenAI and Azure AI. You can manage the Actions and configurations for each Provider within their respective settings.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI placements|AI Placements]] for more information about Placements&#039;&#039;&#039;. AI Placements define how and where AI Actions can be used in your site. You can choose which actions are available in each Placement through the settings. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI subsystem adheres to Moodle’s [https://moodle.com/moodle-and-our-ai-principles/ AI Principles].&lt;br /&gt;
&lt;br /&gt;
All administration settings for the AI subsystem can be accessed via Site administration &amp;gt; General &amp;gt; AI.&lt;br /&gt;
[[File:AI subsystem settings.png|none|thumb|700x700px|AI subsystem settings]]&lt;br /&gt;
&lt;br /&gt;
[[es:Subsistema de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149673</id>
		<title>AI tools</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149673"/>
		<updated>2024-10-18T12:37:45Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
&lt;br /&gt;
Moodle LMS 4.5 includes an AI subsystem, a new feature which is the foundation for integrating AI tools into Moodle LMS. Any open source or commercial large language model (LLM) can be supported via Provider plugins. The initial release includes plugins for OpenAI and Azure (which may also function with compatible LLMs), with more Providers on the roadmap for future development.&lt;br /&gt;
&lt;br /&gt;
{{MediaPlayer | url = https://youtu.be/pfpK7SJTPks?si=bt5g5HCNnYCy4MyG | desc = AI subsystem}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI Subsystem is designed to integrate AI functionality seamlessly into teaching and learning activities. It offers a user-friendly interface and backend integration with multiple AI Providers. Users with appropriate capabilities can benefit from functionality such as generating text and images via the text editor, and summarising course content.&lt;br /&gt;
&lt;br /&gt;
This subsystem is structured around &#039;&#039;&#039;Placements&#039;&#039;&#039;, &#039;&#039;&#039;Actions&#039;&#039;&#039; and &#039;&#039;&#039;Providers&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI providers|AI Providers]] for information about Provider plugins&#039;&#039;&#039;. AI Providers add AI functionality to your site by allowing Moodle LMS to communicate with external services, such as OpenAI and Azure AI. You can manage the Actions and configurations for each Provider within their respective settings.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI placements|AI Placements]] for more information about Placements&#039;&#039;&#039;. AI Placements define how and where AI Actions can be used in your site. You can choose which actions are available in each Placement through the settings. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI subsystem adheres to Moodle’s [https://moodle.com/moodle-and-our-ai-principles/ AI Principles].&lt;br /&gt;
&lt;br /&gt;
All administration settings for the AI subsystem can be accessed via Site administration &amp;gt; General &amp;gt; AI.&lt;br /&gt;
[[File:AI subsystem settings.png|none|thumb|700x700px|AI subsystem settings]]&lt;br /&gt;
&lt;br /&gt;
[[es:Subsistema de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149672</id>
		<title>AI tools</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149672"/>
		<updated>2024-10-18T12:36:31Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Update&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
&lt;br /&gt;
{Work in progresMoodle LMS 4.5 includes an AI subsystem, a new feature which is the foundation for integrating AI tools into Moodle LMS. Any open source or commercial large language model (LLM) can be supported via Provider plugins. The initial release includes plugins for OpenAI and Azure (which may also function with compatible LLMs), with more Providers on the roadmap for future development.&lt;br /&gt;
&lt;br /&gt;
{{MediaPlayer | url = https://youtu.be/pfpK7SJTPks?si=bt5g5HCNnYCy4MyG | desc = AI subsystem}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI Subsystem is designed to integrate AI functionality seamlessly into teaching and learning activities. It offers a user-friendly interface and backend integration with multiple AI Providers. Users with appropriate capabilities can benefit from functionality such as generating text and images via the text editor, and summarising course content.&lt;br /&gt;
&lt;br /&gt;
This subsystem is structured around &#039;&#039;&#039;Placements&#039;&#039;&#039;, &#039;&#039;&#039;Actions&#039;&#039;&#039; and &#039;&#039;&#039;Providers&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI providers|AI Providers]] for information about Provider plugins&#039;&#039;&#039;. AI Providers add AI functionality to your site by allowing Moodle LMS to communicate with external services, such as OpenAI and Azure AI. You can manage the Actions and configurations for each Provider within their respective settings.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI placements|AI Placements]] for more information about Placements&#039;&#039;&#039;. AI Placements define how and where AI Actions can be used in your site. You can choose which actions are available in each Placement through the settings. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI subsystem adheres to Moodle’s [https://moodle.com/moodle-and-our-ai-principles/ AI Principles].&lt;br /&gt;
&lt;br /&gt;
All administration settings for the AI subsystem can be accessed via Site administration &amp;gt; General &amp;gt; AI.&lt;br /&gt;
[[File:AI subsystem settings.png|none|thumb|700x700px|AI subsystem settings]]&lt;br /&gt;
&lt;br /&gt;
[[es:Subsistema de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149667</id>
		<title>Azure AI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149667"/>
		<updated>2024-10-17T13:43:01Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with Azure AI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarise a text.&lt;br /&gt;
&lt;br /&gt;
More information about Azure AI can be found at https://learn.microsoft.com/en-us/azure/ai-services/openai &lt;br /&gt;
&lt;br /&gt;
=== Requirements: ===&lt;br /&gt;
An active Azure account. If you don’t have one, you can create it through the [https://portal.azure.com Azure portal]. &lt;br /&gt;
&lt;br /&gt;
An active subscription to access [https://learn.microsoft.com/en-us/azure/ai-services/openai/ Azure AI services].&lt;br /&gt;
&lt;br /&gt;
Ensure you have an active subscription to access Azure AI services. Obtain the API key and endpoint from the [https://portal.azure.com Azure portal] to authenticate your requests (This is found under the &amp;quot;Keys and Endpoint&amp;quot; section of your resource.)&lt;br /&gt;
&lt;br /&gt;
=== Configuring Azure AI API provider ===&lt;br /&gt;
&lt;br /&gt;
# Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers&lt;br /&gt;
# Enable the &amp;quot;Azure AI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;Azure AI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* Azure AI API key: You can get the key from your [https://portal.azure.com Azure AI account.] &lt;br /&gt;
#* Azure AI API endpoint:  Enter the endpoint URL for your Azure AI API, in the following format: &amp;lt;nowiki&amp;gt;https://YOUR_RESOURCE_NAME.openai.azure.com&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
#* Set site-wide rate limit:  An optional feature to limit the number of requests that the Azure AI API Provider can receive across the entire site every hour. &lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”&lt;br /&gt;
#* Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&lt;br /&gt;
&lt;br /&gt;
=== Configuring Azure AI API Provider Actions ===&lt;br /&gt;
[[File:Azure AI Actions.png|none|thumb|600x600px|Azure AI Actions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following Action settings are available for the Azure AI API Provider. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings: &lt;br /&gt;
&lt;br /&gt;
* Deployment ID:  The unique identifier assigned to a specific model deployment, which you can find in the &amp;quot;Deployments&amp;quot; section of your Azure OpenAI resource in the Azure Portal.&lt;br /&gt;
* API version; The API specific version of the API you&#039;re interacting with, you can find the latest available version under the &amp;quot;API Management&amp;quot; section of your [https://learn.microsoft.com/en-us/azure/ai-services/openai/ Azure OpenAI] resource.&lt;br /&gt;
* System Instruction: There are default system instructions in place, but these can be customised to suit your specific needs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
* Deployment ID: The unique identifier assigned to the specific DALL-E model deployment, which you can find in the &amp;quot;Deployments&amp;quot; section of your Azure OpenAI resource in the Azure Portal, allowing you to generate images via [https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#image-generation API requests].&lt;br /&gt;
* API version. The API specific version of the API you&#039;re interacting with, you can find the latest available version under the &amp;quot;API Management&amp;quot; section of your [https://learn.microsoft.com/en-us/azure/ai-services/openai/ Azure OpenAI] resource.&lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
[[File:Azure AI Provider - Generate text.png|none|thumb|600x600px|Azure AI Provider - Generate text]]&lt;br /&gt;
 &lt;br /&gt;
With the above enabled and configured, the Azure AI API Provider can be used for the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure [[AI placements|&#039;&#039;&#039;AI Placements&#039;&#039;&#039;]] settings.  &lt;br /&gt;
[[es:Proveedor Azure AI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=File:Azure_AI_Actions.png&amp;diff=149666</id>
		<title>File:Azure AI Actions.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=File:Azure_AI_Actions.png&amp;diff=149666"/>
		<updated>2024-10-17T13:39:47Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Azure AI Actions&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149664</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149664"/>
		<updated>2024-10-17T13:23:43Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with OpenAI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarise a text.  &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found at https://platform.openai.com &lt;br /&gt;
&lt;br /&gt;
=== Requirements: ===&lt;br /&gt;
A paid OpenAI account with access to the API key (Usage limits and pricing tiers are dependent on the level of access and the volume of queries). In Moodle LMS 4.5.0, both an OpenAI API key and OpenAI organization ID are required, however the organization ID will become optional from 4.5.1.&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, site administrators can generate keys with both free and paid accounts, however API usage is restricted based on the account type and payment method. &#039;&#039;&#039;Access to the API used by the Moodle LMS integration requires a subscription to one of OpenAI’s paid plans&#039;&#039;&#039;, such as the Pay-as-you-go or Pro/Enterprise plan, which provide different levels of access depending on the selected pricing tier.&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API provider settings ===&lt;br /&gt;
# Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers.&lt;br /&gt;
# Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#* OpenAI organization ID: You find this in  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)&lt;br /&gt;
#* Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour. &lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#* Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API Provider actions ===&lt;br /&gt;
&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
 &lt;br /&gt;
The following Action settings are available for the OpenAI Provider.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:   &lt;br /&gt;
&lt;br /&gt;
*AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about at [https://platform.openai.com/docs/models OpenAI Models]. By default, the model is set to “GPT-4o”,  but this can be configured to any other compatible model. For more details, see [https://platform.openai.com/settings/organization/limits your organization&#039;s settings and limits information]. &lt;br /&gt;
&lt;br /&gt;
*API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit [https://platform.openai.com/docs/models/model-endpoint-compatibility Model endpoint compatibility]. &lt;br /&gt;
&lt;br /&gt;
*System instruction: There are default system instructions in place, but these can be customised to suit your specific needs.&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
*AI model: The default is set to “dall-e-3” but it can be changed to  any other image generation compatible model.  For more details, visit: [https://platform.openai.com/docs/models/dall-e DALL-E Models].&lt;br /&gt;
*API endpoint:  Please ensure your API endpoint is compatible with your selected model.&lt;br /&gt;
&lt;br /&gt;
[[File:Generate text in OpenAI.png|none|thumb|600x600px|Generate text in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With the above enabled and configured, the OpenAI Provider can be used for the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure &#039;&#039;&#039;[[AI placements|AI Placements]]&#039;&#039;&#039; settings.  &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149660</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149660"/>
		<updated>2024-10-17T13:07:13Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with OpenAI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarise a text.  &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found at https://platform.openai.com &lt;br /&gt;
&lt;br /&gt;
=== Requirements: ===&lt;br /&gt;
A paid OpenAI account with access to the API key (Usage limits and pricing tiers are dependent on the level of access and the volume of queries). In Moodle LMS 4.5.0, both an OpenAI API key and OpenAI organization ID are required, however the organization ID will become optional from 4.5.1.&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, site administrators can generate keys with both free and paid accounts, however API usage is restricted based on the account type and payment method. &#039;&#039;&#039;Access to the API used by the Moodle LMS integration requires a subscription to one of OpenAI’s paid plans&#039;&#039;&#039;, such as the Pay-as-you-go or Pro/Enterprise plan, which provide different levels of access depending on the selected pricing tier.&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API provider settings ===&lt;br /&gt;
# Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers.&lt;br /&gt;
# Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#* OpenAI organization ID: You find this in  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)&lt;br /&gt;
#* Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour. &lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#* Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API Provider actions ===&lt;br /&gt;
&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
 &lt;br /&gt;
The following Action settings are available for the OpenAI Provider.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:   &lt;br /&gt;
&lt;br /&gt;
*AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about OpenAI models at [https://platform.openai.com/docs/models OpenAI Models]. By default, the model is set to “GPT-4o”,  but this can be configured to any other compatible model. For more details, see [https://platform.openai.com/settings/organization/limits your organization&#039;s settings and limits information]. &lt;br /&gt;
&lt;br /&gt;
*API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit [https://platform.openai.com/docs/models/model-endpoint-compatibility Model endpoint compatibility]. &lt;br /&gt;
&lt;br /&gt;
*System instruction: There are default system instructions in place, but these can be customised to suit your specific needs.&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
*AI model: The default is set to “dall-e-3” but it can be changed to  any other image generation compatible model.  For more details, visit: [https://platform.openai.com/docs/models/dall-e DALL-E Models].&lt;br /&gt;
*API endpoint:  Please ensure your API endpoint is compatible with your selected model.&lt;br /&gt;
&lt;br /&gt;
[[File:Generate text in OpenAI.png|none|thumb|600x600px|Generate text in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With the above enabled and configured, the OpenAI Provider can be used for the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure &#039;&#039;&#039;[[AI placements|AI Placements]]&#039;&#039;&#039; settings.  &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149658</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149658"/>
		<updated>2024-10-17T12:52:22Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with OpenAI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarize a text.  &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found at https://platform.openai.com &lt;br /&gt;
&lt;br /&gt;
=== Requirements: ===&lt;br /&gt;
A paid OpenAI account with access to the API key (Usage limits and pricing tiers are dependent on the level of access and the volume of queries). In Moodle LMS 4.5.0, both an OpenAI API key and OpenAI organization ID are required, however the organization ID will become optional from 4.5.1.&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, site administrators can generate keys with both free and paid accounts, however API usage is restricted based on the account type and payment method. &#039;&#039;&#039;Access to the API used by the Moodle LMS integration requires a subscription to one of OpenAI’s paid plans&#039;&#039;&#039;, such as the Pay-as-you-go or Pro/Enterprise plan, which provide different levels of access depending on the selected pricing tier.&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API provider settings ===&lt;br /&gt;
# Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers.&lt;br /&gt;
# Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#* OpenAI organization ID: You find this in  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)&lt;br /&gt;
#* Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour. &lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#* Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API Provider actions ===&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
 &lt;br /&gt;
The following Action settings are available for the OpenAI Provider.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:  &lt;br /&gt;
&lt;br /&gt;
* AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about OpenAI models at [https://platform.openai.com/docs/models OpenAI Models]. By default, the model is set to “GPT-4o”,  but this can be configured to any other compatible model. For more details, see [https://platform.openai.com/settings/organization/limits your organization&#039;s settings and limits information].&lt;br /&gt;
&lt;br /&gt;
* API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit [https://platform.openai.com/docs/models/model-endpoint-compatibility Model endpoint compatibility]. &lt;br /&gt;
&lt;br /&gt;
* System instruction: There are default system instructions in place, but these can be customised to suit your specific needs.&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* AI model: The default is set to “dall-e-3” but it can be changed to  any other image generation compatible model.  For more details, visit: [https://platform.openai.com/docs/models/dall-e DALL-E Models]. &lt;br /&gt;
* API endpoint:  Please ensure your API endpoint is compatible with your selected model.&lt;br /&gt;
[[File:Generate text in OpenAI.png|none|thumb|600x600px|Generate text in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With the above enabled and configured, the OpenAI Provider can be used for the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure &#039;&#039;&#039;[[AI placements|AI Placements]]&#039;&#039;&#039; settings.  &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149657</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149657"/>
		<updated>2024-10-17T12:37:25Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: /* Configuring OpenAI API Provider actions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with OpenAI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarize a text.  &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found at https://platform.openai.com &lt;br /&gt;
&lt;br /&gt;
=== Requirements: ===&lt;br /&gt;
A paid OpenAI account with access to the API key (Usage limits and pricing tiers are dependent on the level of access and the volume of queries). In Moodle LMS 4.5.0, both an OpenAI API key and OpenAI organization ID are required, however the organization ID will become optional from 4.5.1.&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, site administrators can generate keys with both free and paid accounts, however API usage is restricted based on the account type and payment method. &#039;&#039;&#039;Access to the API used by the Moodle LMS integration requires a subscription to one of OpenAI’s paid plans&#039;&#039;&#039;, such as the Pay-as-you-go or Pro/Enterprise plan, which provide different levels of access depending on the selected pricing tier.&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API provider settings ===&lt;br /&gt;
# Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers.&lt;br /&gt;
# Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#* OpenAI organization ID: You find this in  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)&lt;br /&gt;
#* Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour. &lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#* Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API Provider actions ===&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
 &lt;br /&gt;
The following Action settings are available for the OpenAI Provider.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:  &lt;br /&gt;
&lt;br /&gt;
* AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about OpenAI models at the following link [https://platform.openai.com/docs/models OpenAI Models]. By default, the model is set to “GPT-4o”,  but this can be configured to any other compatible model. For more details, see [https://platform.openai.com/settings/organization/limits your organization&#039;s settings and limits information].&lt;br /&gt;
&lt;br /&gt;
* API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit this link  &amp;lt;nowiki&amp;gt;https://platform.openai.com/docs/models/model-endpoint-compatibility&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* System instruction: There are default system instructions in place, but these can be customised to suit your specific needs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* AI model: The default is set to “dall-e-3” but it can be changed to  any other image generation compatible model.  For more details, visit: [https://platform.openai.com/docs/models/dall-e DALL-E Models]. &lt;br /&gt;
* API endpoint:  Please ensure your API endpoint is compatible with your selected model.&lt;br /&gt;
&lt;br /&gt;
[[File:Generate text in OpenAI.png|none|thumb|600x600px|Generate text in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With the above enabled and configured, the OpenAI Provider can be used for the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure &#039;&#039;&#039;[[AI placements|AI Placements]]&#039;&#039;&#039; settings.  &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149656</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149656"/>
		<updated>2024-10-17T12:36:49Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with OpenAI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarize a text.  &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found at https://platform.openai.com &lt;br /&gt;
&lt;br /&gt;
=== Requirements: ===&lt;br /&gt;
A paid OpenAI account with access to the API key (Usage limits and pricing tiers are dependent on the level of access and the volume of queries). In Moodle LMS 4.5.0, both an OpenAI API key and OpenAI organization ID are required, however the organization ID will become optional from 4.5.1.&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, site administrators can generate keys with both free and paid accounts, however API usage is restricted based on the account type and payment method. &#039;&#039;&#039;Access to the API used by the Moodle LMS integration requires a subscription to one of OpenAI’s paid plans&#039;&#039;&#039;, such as the Pay-as-you-go or Pro/Enterprise plan, which provide different levels of access depending on the selected pricing tier.&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API provider settings ===&lt;br /&gt;
# Go to Site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers.&lt;br /&gt;
# Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#* OpenAI organization ID: You find this in  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]). (This is a required field for Moodle LMS 4.5.0, but will be optional from 4.5.1.)&lt;br /&gt;
#* Set site-wide rate limit: An optional feature to limit the number of requests that the OpenAI API Provider can receive across the entire site every hour. &lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”.&lt;br /&gt;
#* Set user rate limit: An optional feature to limit the number of AI requests each user can make to this provider each hour.&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area you can control which available Actions are enabled and configure further Action settings.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API Provider actions ===&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
 &lt;br /&gt;
The following Action settings are available for the OpenAI Provider.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:  &lt;br /&gt;
&lt;br /&gt;
* AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about OpenAI models at the following link [https://platform.openai.com/docs/models OpenAI Models]. By default, the model is set to “GPT-4o”,  but this can be configured to any other compatible model. For more details, see [https://platform.openai.com/settings/organization/limits your organization&#039;s settings and limits information].&lt;br /&gt;
&lt;br /&gt;
* API endpoint. Please ensure your API endpoint is compatible with your selected model. For more information, visit this link  &amp;lt;nowiki&amp;gt;https://platform.openai.com/docs/models/model-endpoint-compatibility&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* System instruction: There are default system instructions in place, but these can be customised to suit your specific needs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text Action. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* AI model: The default is set to “dall-e-3” but it can be changed to  any other image generation compatible model.  For more details, visit: [https://platform.openai.com/docs/models/dall-e DALL-E Models]. &lt;br /&gt;
* API endpoint:  Please ensure your API endpoint is compatible with your selected model.&lt;br /&gt;
&lt;br /&gt;
[[File:Generate text in OpenAI.png|none|thumb|600x600px|Generate text in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With the above enabled and configured, the OpenAI Provider can be used for the AI Placements available in your Moodle LMS instance; &#039;&#039;&#039;Course Assistance&#039;&#039;&#039; and &#039;&#039;&#039;HTML Text Editor&#039;&#039;&#039; Placements. Don&#039;t forget to also enable and configure &#039;&#039;&#039;[[AI placements|AI Placements]]&#039;&#039;&#039; settings.  &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_providers&amp;diff=149655</id>
		<title>AI providers</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_providers&amp;diff=149655"/>
		<updated>2024-10-17T12:21:50Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle&#039;s AI subsystem allows integration with various AI Providers through their APIs, enabling a range of AI-powered functionalities for your site. These Providers offer Actions such as text generation, course content summarisation, and image generation, which can enhance user interaction and content creation.&lt;br /&gt;
&lt;br /&gt;
By default, all AI Providers are disabled, but  can be enabled through the AI Providers Management page. Each Provider’s settings page also allows you to specify settings for the Actions they support.  &lt;br /&gt;
&lt;br /&gt;
[[File:AI Providers.png|thumb|600x600px|Moodle 4.5 AI Providers|none]]&lt;br /&gt;
&lt;br /&gt;
=== OpenAI API Provider ===&lt;br /&gt;
The OpenAI API Provider in Moodle enables integration with [https://openai.com/ OpenAI’s services], allowing for features like text generation, course content summarisation, and image generation. To configure this Provider, site administrators need to set up an OpenAI account and subscribe to one of its paid API plans.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[OpenAI API provider|OpenAI API Provider]] for information about this plugin.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Azure AI API provider ===&lt;br /&gt;
The Azure AI API Provider connects Moodle with Microsoft&#039;s Azure AI services, offering capabilities such as text generation, course content summarisation, and image generation. To configure this Provider, site administrators require an Azure account and API access, with different service levels available depending on the chosen Azure subscription.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[Azure AI API provider|Azure AI API Provider]] for information about this plugin.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Other providers==&lt;br /&gt;
Many other LLM providers, both open and commercial, along with tools like AI proxies or routers, come with an OpenAI API-compatible layer to use their services.&lt;br /&gt;
&lt;br /&gt;
See [[Ollama]] for information on how to use a local Ollama provider.&lt;br /&gt;
&lt;br /&gt;
[[es:Proveedores de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149654</id>
		<title>AI tools</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149654"/>
		<updated>2024-10-17T12:13:12Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}Moodle LMS 4.5 includes an AI subsystem, a new feature which is the foundation for integrating AI tools into Moodle LMS. Any open source or commercial large language model (LLM) can be supported via Provider plugins. The initial release includes plugins for OpenAI and Azure (which may also function with compatible LLMs), with more Providers on the roadmap for future development.&lt;br /&gt;
&lt;br /&gt;
{{MediaPlayer | url = https://youtu.be/pfpK7SJTPks?si=bt5g5HCNnYCy4MyG | desc = AI subsystem}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI Subsystem is designed to integrate AI functionality seamlessly into teaching and learning activities. It offers a user-friendly interface and backend integration with multiple AI Providers. Users with appropriate capabilities can benefit from functionality such as generating text and images via the text editor, and summarising course content.&lt;br /&gt;
&lt;br /&gt;
This subsystem is structured around &#039;&#039;&#039;Placements, Actions&#039;&#039;&#039; and &#039;&#039;&#039;Providers.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI providers|AI Providers]] for information about Provider plugins&#039;&#039;&#039;. AI Providers add AI functionality to your site by allowing Moodle LMS to communicate with external services, such as OpenAI and Azure AI. You can manage the Actions and configurations for each Provider within their respective settings. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI placements|AI Placements]] for more information about Placements&#039;&#039;&#039;. AI Placements define how and where AI Actions can be used in your site. You can choose which actions are available in each Placement through the settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI subsystem adheres to Moodle’s [https://moodle.com/moodle-and-our-ai-principles/ AI Principles].&lt;br /&gt;
&lt;br /&gt;
All admin settings for the AI subsystem can be accessed via Site administration &amp;gt; General &amp;gt; AI.&lt;br /&gt;
[[File:AI subsystem settings.png|none|thumb|700x700px|AI subsystem settings]]&lt;br /&gt;
&lt;br /&gt;
[[es:Subsistema de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149634</id>
		<title>Azure AI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149634"/>
		<updated>2024-10-16T13:51:34Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with Azure AI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarize a text.&lt;br /&gt;
&lt;br /&gt;
More information and documentation about Azure AI can be found on the following link https://learn.microsoft.com/en-us/azure/ai-services/openai&lt;br /&gt;
&lt;br /&gt;
=== Requirements: ===&lt;br /&gt;
Create an Azure account if you don’t already have one. You can sign up for a free account on the Azure portal. &lt;br /&gt;
&lt;br /&gt;
Ensure you have an active subscription to access Azure AI services. Go to the Azure Portal and sign in with your Azure account.  Obtain the API key and endpoint from the Azure portal to authenticate your requests (Keys and Endpoint” can be found under the Resource Management section)&lt;br /&gt;
&lt;br /&gt;
More information about this can be found in &lt;br /&gt;
&lt;br /&gt;
https://learn.microsoft.com/en-us/azure/ai-services/openai/&lt;br /&gt;
&lt;br /&gt;
https://learn.microsoft.com/en-us/azure/ai-services/openai/overview#how-do-i-get-access-to-azure-openai&lt;br /&gt;
&lt;br /&gt;
=== Configuring Azure AI API provider ===&lt;br /&gt;
# Go to Admin -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers&lt;br /&gt;
# Enable the &amp;quot;Azure AI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;Azure AI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* Azure AI API key: You can get the key from your Azure AI account &lt;br /&gt;
#* Azure AI API endpoint:  Enter the endpoint URL for your Azure AI API, in the following format: &amp;lt;nowiki&amp;gt;https://YOUR_RESOURCE_NAME.openai.azure.com&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
#* Set site-wide rate limit: Limit the number of requests that the Azure AI API provider can receive across the entire site every hour.&lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”&lt;br /&gt;
#* Set user rate limit&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area enable all actions by clicking on their “Enabled” toggle.&lt;br /&gt;
&lt;br /&gt;
=== Configuring Azure AI API provider actions ===&lt;br /&gt;
&lt;br /&gt;
===== Generate text: =====&lt;br /&gt;
You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
* Deployment ID: It can be found in the &amp;quot;Deployments&amp;quot; section within your resource.  &lt;br /&gt;
* API version; The API version can be found in the &#039;&#039;&#039;API Reference&#039;&#039;&#039; section of your service. [https://learn.microsoft.com/en-us/azure/ai-services/openai/ Azure API documentation.]&lt;br /&gt;
&lt;br /&gt;
* System Instruction: There are some system instructions as default, but this can be adapted to your needs.&lt;br /&gt;
&lt;br /&gt;
===== Summarise text: =====&lt;br /&gt;
The required configuration is the same as for the Generate text action.&lt;br /&gt;
&lt;br /&gt;
===== Generate image: =====&lt;br /&gt;
You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
* Deployment ID: More information can be found in image generation area of [https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#image-generation Azure API documentation] &lt;br /&gt;
&lt;br /&gt;
* API version.&lt;br /&gt;
[[File:Azure AI Provider - Generate text.png|none|thumb|600x600px|Azure AI Provider - Generate text]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Now we should be able to use Azure AI API provider for the AI placements available in our Moodle instance: Course Assistance and HTML Text Editor Placements. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Don&#039;t forget to enable and configure [[AI placements]] settings.&#039;&#039;&#039; &lt;br /&gt;
[[es:Proveedor Azure AI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149633</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149633"/>
		<updated>2024-10-16T13:51:21Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: /* Generate text: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with OpenAI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarize a text. &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found on the following link https://platform.openai.com&lt;br /&gt;
&lt;br /&gt;
=== Requirements: ===&lt;br /&gt;
An OpenAI account with access to the API key (Usage limits and pricing tiers are dependent on the level of access and the volume of queries).&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, users can generate keys with both free and paid accounts, but API usage is restricted based on the account type and payment method. &#039;&#039;&#039;Access to the API requires a subscription to one of OpenAI’s paid plans&#039;&#039;&#039;, such as the Pay-as-you-go or Pro/Enterprise plan, which provide different levels of access depending on the selected pricing tier.&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API provider settings ===&lt;br /&gt;
# Go to Admin -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers&lt;br /&gt;
# Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#* OpenAI organization ID: You can get it from  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]).&lt;br /&gt;
#* Set site-wide rate limit: Limit the number of requests that the OpenAI API provider can receive across the entire site every hour.&lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”&lt;br /&gt;
#* Set user rate limit&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area enable all actions by clicking on their “Enabled” toggle.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API provider actions ===&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
Access to the Settings link on each action to configure them. &lt;br /&gt;
&lt;br /&gt;
=====  Generate text: =====&lt;br /&gt;
You can configure the following settings:  &lt;br /&gt;
&lt;br /&gt;
*AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about OpenAI models in the following link https://platform.openai.com/docs/models   As default is set to “GPT-4o” but it can be change for any other compatible model, see your settings organization limits for more information (https://platform.openai.com/settings/organization/limits) &lt;br /&gt;
&lt;br /&gt;
*API endpoint. Please ensure your API endpoint is compatible with your Model, see more information in the following link https://platform.openai.com/docs/models/model-endpoint-compatibility &lt;br /&gt;
&lt;br /&gt;
*System instruction: There are some system instructions as default, but this can be adapted to your needs.&lt;br /&gt;
&lt;br /&gt;
=====  Summarise text: =====&lt;br /&gt;
The required configuration is the same as for the Generate text action.  &lt;br /&gt;
&lt;br /&gt;
=====  Generate image: =====&lt;br /&gt;
You can configure the following settings:  &lt;br /&gt;
&lt;br /&gt;
*AI model: As default is set to “dall-e-3” but it can be changed for any other image generation compatible model. See more information in the following link https://platform.openai.com/docs/models/dall-e&lt;br /&gt;
* API endpoint:  Please ensure your API endpoint is compatible with your Model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Generate text in OpenAI.png|none|thumb|600x600px|Generate text in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we should be able to use OpenAI provider for the AI placements available in our Moodle instance: Course Assistance and HTML Text Editor Placements. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Don&#039;t forget to enable and configure [[AI placements|AI Placements]] settings.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149632</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149632"/>
		<updated>2024-10-16T13:46:17Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with OpenAI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarize a text. &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found on the following link https://platform.openai.com&lt;br /&gt;
&lt;br /&gt;
=== Requirements: ===&lt;br /&gt;
An OpenAI account with access to the API key (Usage limits and pricing tiers are dependent on the level of access and the volume of queries).&lt;br /&gt;
&lt;br /&gt;
When setting up an OpenAI account with an API key, users can generate keys with both free and paid accounts, but API usage is restricted based on the account type and payment method. &#039;&#039;&#039;Access to the API requires a subscription to one of OpenAI’s paid plans&#039;&#039;&#039;, such as the Pay-as-you-go or Pro/Enterprise plan, which provide different levels of access depending on the selected pricing tier.&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API provider settings ===&lt;br /&gt;
# Go to Admin -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers&lt;br /&gt;
# Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#* OpenAI organization ID: You can get it from  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]).&lt;br /&gt;
#* Set site-wide rate limit: Limit the number of requests that the OpenAI API provider can receive across the entire site every hour.&lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”&lt;br /&gt;
#* Set user rate limit&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area enable all actions by clicking on their “Enabled” toggle.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring OpenAI API provider actions ===&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
Access to the Settings link on each action to configure them. &lt;br /&gt;
&lt;br /&gt;
=====  Generate text: =====&lt;br /&gt;
You can configure the following settings:  &lt;br /&gt;
&lt;br /&gt;
*AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about OpenAI models in the following link https://platform.openai.com/docs/models   As default is set to “GPT-4o” but it can be change for any other compatible model, see your settings organization limits for more information (https://platform.openai.com/settings/organization/limits) &lt;br /&gt;
&lt;br /&gt;
*API endpoint. Please ensure your API endpoint is compatible with your Model, see more information in the following link https://platform.openai.com/docs/models/model-endpoint-compatibility &lt;br /&gt;
&lt;br /&gt;
*System instruction: There are some system instructions as default, but this can be adapted to your needs.&lt;br /&gt;
&lt;br /&gt;
=====  Summarise text: =====&lt;br /&gt;
The required configuration is the same as for the Generate text action.  &lt;br /&gt;
&lt;br /&gt;
=====  Generate image: =====&lt;br /&gt;
You can configure the following settings:  &lt;br /&gt;
&lt;br /&gt;
*AI model: As default is set to “dall-e-3” but it can be changed for any other image generation compatible model. See more information in the following link https://platform.openai.com/docs/models/dall-e&lt;br /&gt;
* API endpoint:  Please ensure your API endpoint is compatible with your Model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Generate text in OpenAI.png|none|thumb|600x600px|Generate text in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we should be able to use OpenAI provider for the AI placements available in our Moodle instance: Course Assistance and HTML Text Editor Placements. &#039;&#039;&#039;Don&#039;t forget to enable and configure [[AI placements|AI Placements]] settings.&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149631</id>
		<title>AI tools</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149631"/>
		<updated>2024-10-16T13:35:51Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}Moodle LMS 4.5 includes an AI subsystem, a new feature which is the foundation for integrating AI tools into Moodle LMS. Any open source or commercial large language model (LLM) can be supported via Provider plugins. The initial release includes plugins for OpenAI and Azure (which may also function with compatible LLMs), with more Providers on the roadmap for future development.&lt;br /&gt;
&lt;br /&gt;
{{MediaPlayer | url = https://youtu.be/pfpK7SJTPks?si=bt5g5HCNnYCy4MyG | desc = AI subsystem}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI Subsystem is designed to integrate AI functionality seamlessly into teaching and learning activities. It offers a user-friendly interface and backend integration with multiple AI Providers. Users with appropriate capabilities can benefit from functionality such as generating text and images via the text editor, and summarising course content.&lt;br /&gt;
&lt;br /&gt;
This subsystem is structured around &#039;&#039;&#039;Placements, Actions&#039;&#039;&#039; and &#039;&#039;&#039;Providers.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI providers|AI Providers]] for information about provider plugins.&#039;&#039;&#039; AI Providers add AI functionality to your site through external services integrated into Moodle, such as OpenAI or Azure AI APIs. You can manage the actions and configurations for each provider within their respective settings.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI placements|AI Placements]] for information about placements.&#039;&#039;&#039; AI Placements define how and where AI actions can be used in your site. You can choose which actions are available in each placement through the settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI subsystem adheres to Moodle’s [https://moodle.com/moodle-and-our-ai-principles/ AI Principles].&lt;br /&gt;
&lt;br /&gt;
All admin settings for the AI subsystem can be accessed via Site administration &amp;gt; General &amp;gt; AI.&lt;br /&gt;
[[File:AI subsystem settings.png|none|thumb|700x700px|AI subsystem settings]]&lt;br /&gt;
&lt;br /&gt;
[[es:Subsistema de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149630</id>
		<title>AI tools</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149630"/>
		<updated>2024-10-16T13:35:05Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}Moodle LMS 4.5 includes an AI subsystem, a new feature which is the foundation for integrating AI tools into Moodle LMS. Any open source or commercial large language model (LLM) can be supported via Provider plugins. The initial release includes plugins for OpenAI and Azure (which may also function with compatible LLMs), with more Providers on the roadmap for future development.&lt;br /&gt;
&lt;br /&gt;
{{MediaPlayer | url = https://youtu.be/pfpK7SJTPks?si=bt5g5HCNnYCy4MyG | desc = AI subsystem}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI Subsystem is designed to integrate AI functionality seamlessly into teaching and learning activities. It offers a user-friendly interface and backend integration with multiple AI Providers. Users with appropriate capabilities can benefit from functionality such as generating text and images via the text editor, and summarising course content.&lt;br /&gt;
&lt;br /&gt;
This subsystem is structured around &#039;&#039;&#039;Placements, Actions&#039;&#039;&#039; and &#039;&#039;&#039;Providers.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI providers|AI Providers]] for information about provider plugins.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
AI Providers add AI functionality to your site through external services integrated into Moodle, such as OpenAI or Azure AI APIs. You can manage the actions and configurations for each provider within their respective settings.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See [[AI placements|AI Placements]] for information about placements.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
AI Placements define how and where AI actions can be used in your site. You can choose which actions are available in each placement through the settings. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI subsystem adheres to Moodle’s [https://moodle.com/moodle-and-our-ai-principles/ AI Principles].&lt;br /&gt;
&lt;br /&gt;
All admin settings for the AI subsystem can be accessed via Site administration &amp;gt; General &amp;gt; AI.&lt;br /&gt;
[[File:AI subsystem settings.png|none|thumb|700x700px|AI subsystem settings]]&lt;br /&gt;
&lt;br /&gt;
[[es:Subsistema de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149629</id>
		<title>AI tools</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_tools&amp;diff=149629"/>
		<updated>2024-10-16T13:30:18Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}Moodle LMS 4.5 includes an AI subsystem, a new feature which is the foundation for integrating AI tools into Moodle LMS. Any open source or commercial large language model (LLM) can be supported via Provider plugins. The initial release includes plugins for OpenAI and Azure (which may also function with compatible LLMs), with more Providers on the roadmap for future development.&lt;br /&gt;
&lt;br /&gt;
{{MediaPlayer | url = https://youtu.be/pfpK7SJTPks?si=bt5g5HCNnYCy4MyG | desc = AI subsystem}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The AI Subsystem is designed to integrate AI functionality seamlessly into teaching and learning activities. It offers a user-friendly interface and backend integration with multiple AI Providers. Users with appropriate capabilities can benefit from functionality such as generating text and images via the text editor, and summarising course content.&lt;br /&gt;
&lt;br /&gt;
This subsystem is structured around &#039;&#039;&#039;Placements, Actions&#039;&#039;&#039; and &#039;&#039;&#039;Providers.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;AI providers&#039;&#039;&#039; add AI functionality to your site through external services integrated into Moodle, such as OpenAI or Azure AI APIs. You can manage the actions and configurations for each provider within their respective settings. &#039;&#039;&#039;See [[AI providers]] for information about provider plugins.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;AI Placements&#039;&#039;&#039; define how and where AI actions can be used in your site. You can choose which actions are available in each placement through the settings. &#039;&#039;&#039;See [[AI placements]] for information about placements.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The AI subsystem adheres to Moodle’s [https://moodle.com/moodle-and-our-ai-principles/ AI Principles].&lt;br /&gt;
[[File:AI subsystem settings.png|none|thumb|700x700px|All admin settings for the AI subsystem can be accessed via Site administration &amp;gt; General &amp;gt; AI.]]&lt;br /&gt;
&lt;br /&gt;
[[es:Subsistema de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=File:AI_subsystem_settings.png&amp;diff=149628</id>
		<title>File:AI subsystem settings.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=File:AI_subsystem_settings.png&amp;diff=149628"/>
		<updated>2024-10-16T13:27:54Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All admin settings for the AI subsystem can be accessed via Site administration &amp;gt; General &amp;gt; AI.&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_placements&amp;diff=149623</id>
		<title>AI placements</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_placements&amp;diff=149623"/>
		<updated>2024-10-16T08:04:44Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
 {{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Placements define how and where AI actions can be used in your site. You can choose which actions are available in each placement through the settings. &lt;br /&gt;
&lt;br /&gt;
By default, all AI placements are disabled. You can enable them through the AI placements page (Go to site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI placements).&lt;br /&gt;
[[File:AI placements.png|none|thumb|600x600px|AI placements]]&lt;br /&gt;
Please be aware that an [[AI providers|AI provider]] should be enabled and configured before using this feature otherwise an error message will be displayed when accessing each placement settings.&lt;br /&gt;
&lt;br /&gt;
=== HTML Text Editor Placement ===&lt;br /&gt;
Enable Generate Text and Generate Image actions by toggling the settings.&lt;br /&gt;
&lt;br /&gt;
Once enabled, admin can access these options in the editor by clicking the Generate AI content icon or via the Insert menu. If both actions are enabled, options for AI Generate Text and AI Generate Image will be available.&lt;br /&gt;
[[File:HTML Text editor placement.png|none|thumb|600x600px]]&lt;br /&gt;
&lt;br /&gt;
===== AI generate text: =====&lt;br /&gt;
Upon first use, users must accept the AI usage policy before the Generate Text Using AI modal is displayed, after that user can start using AI generate text tool: &lt;br /&gt;
[[File:GenerateText.png|none|thumb|600x600px]]&lt;br /&gt;
&lt;br /&gt;
===== AI generate image: =====&lt;br /&gt;
Users can generate images via the Generate AI content icon or the Insert menu.&lt;br /&gt;
[[File:Generate Image.png|none|thumb|600x600px]]&lt;br /&gt;
&lt;br /&gt;
=== Course Assistance Placement ===&lt;br /&gt;
To enable this feature, go to &#039;AI Placements&#039; in the &#039;Course Assistance Placement&#039; section and click on the toggle to enable it. From the settings link, you can access the &#039;Actions&#039; page, where you can enable the &#039;Summarize Text&#039; option. &lt;br /&gt;
&lt;br /&gt;
Once enabled, The &#039;&#039;&#039;Summarise&#039;&#039;&#039; button can be used in any course page. &lt;br /&gt;
[[File:Summarise.jpg|none|thumb|600x600px|Summarise text]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Colocaciones de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=File:Summarise.jpg&amp;diff=149622</id>
		<title>File:Summarise.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=File:Summarise.jpg&amp;diff=149622"/>
		<updated>2024-10-16T08:02:45Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Summarise&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149620</id>
		<title>Azure AI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=Azure_AI_API_provider&amp;diff=149620"/>
		<updated>2024-10-16T07:37:31Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: Update documentation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with Azure AI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarize a text.&lt;br /&gt;
&lt;br /&gt;
More information and documentation about Azure AI can be found on the following link https://learn.microsoft.com/en-us/azure/ai-services/openai &lt;br /&gt;
&lt;br /&gt;
==== Requirements: ====&lt;br /&gt;
Create an Azure account if you don’t already have one. You can sign up for a free account on the Azure portal. &lt;br /&gt;
&lt;br /&gt;
Ensure you have an active subscription to access Azure AI services. Go to the Azure Portal and sign in with your Azure account.  Obtain the API key and endpoint from the Azure portal to authenticate your requests (Keys and Endpoint” can be found under the Resource Management section)&lt;br /&gt;
&lt;br /&gt;
More information about this can be found in &lt;br /&gt;
&lt;br /&gt;
https://learn.microsoft.com/en-us/azure/ai-services/openai/&lt;br /&gt;
&lt;br /&gt;
https://learn.microsoft.com/en-us/azure/ai-services/openai/overview#how-do-i-get-access-to-azure-openai &lt;br /&gt;
&lt;br /&gt;
==== Configuring Azure AI API provider ====&lt;br /&gt;
&lt;br /&gt;
# Go to Admin -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers&lt;br /&gt;
# Enable the &amp;quot;Azure AI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;Azure AI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* Azure AI API key: You can get the key from your Azure AI account &lt;br /&gt;
#* Azure AI API endpoint:  Enter the endpoint URL for your Azure AI API, in the following format: &amp;lt;nowiki&amp;gt;https://YOUR_RESOURCE_NAME.openai.azure.com&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
#* Set site-wide rate limit: Limit the number of requests that the Azure AI API provider can receive across the entire site every hour.&lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”&lt;br /&gt;
#* Set user rate limit&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area enable all actions by clicking on their “Enabled” toggle.&lt;br /&gt;
&lt;br /&gt;
==== Configuring Azure AI API provider actions ====&lt;br /&gt;
&#039;&#039;&#039;Generate text:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
* Deployment ID: It can be found in the &amp;quot;Deployments&amp;quot; section within your resource.  &lt;br /&gt;
* API version; The API version can be found in the &#039;&#039;&#039;API Reference&#039;&#039;&#039; section of your service. [https://learn.microsoft.com/en-us/azure/ai-services/openai/ Azure API documentation.]&lt;br /&gt;
&lt;br /&gt;
* System Instruction: There are some system instructions as default, but this can be adapted to your needs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Summarise text:&#039;&#039;&#039; The required configuration is the same as for the Generate text action.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generate image:&#039;&#039;&#039; You can configure the following settings:&lt;br /&gt;
&lt;br /&gt;
* Deployment ID: More information can be found in image generation area of [https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#image-generation Azure API documentation] &lt;br /&gt;
&lt;br /&gt;
* API version.&lt;br /&gt;
&lt;br /&gt;
[[File:Azure AI Provider - Generate text.png|none|thumb|600x600px|Azure AI Provider - Generate text]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we should be able to use Azure AI API provider for the AI placements available in our Moodle instance: Course Assistance and HTML Text Editor Placements. &lt;br /&gt;
&lt;br /&gt;
Don&#039;t forget to enable and configure [https://docs.moodle.org/502/en/AI_placements AI Placements] settings. &lt;br /&gt;
[[es:Proveedor Azure AI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=File:Azure_AI_Provider_-_Generate_text.png&amp;diff=149619</id>
		<title>File:Azure AI Provider - Generate text.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=File:Azure_AI_Provider_-_Generate_text.png&amp;diff=149619"/>
		<updated>2024-10-16T07:35:36Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Azure AI Provider - Generate text&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149616</id>
		<title>OpenAI API provider</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=OpenAI_API_provider&amp;diff=149616"/>
		<updated>2024-10-15T19:14:49Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
{{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Moodle integration with OpenAI provides a service that lets people use advanced AI tools like generate a text, generate an image or summarize a text. &lt;br /&gt;
&lt;br /&gt;
More information about OpenAI can be found on the following link https://platform.openai.com &lt;br /&gt;
&lt;br /&gt;
==== Requirements: ====&lt;br /&gt;
An OpenAI account with access to the API key (Usage limits and pricing tiers are dependent on the level of access and the volume of queries).&lt;br /&gt;
&lt;br /&gt;
==== Configuring OpenAI API provider settings ====&lt;br /&gt;
&lt;br /&gt;
# Go to Admin -&amp;gt; General -&amp;gt; AI -&amp;gt; AI providers&lt;br /&gt;
# Enable the &amp;quot;OpenAI API Provider&amp;quot; by clicking on the “Enabled” toggle.&lt;br /&gt;
# Click on the &amp;quot;OpenAI API Provider&amp;quot; settings link.&lt;br /&gt;
# In the “Settings” area proceed to configure the following: &lt;br /&gt;
#* OpenAI API key: You can get the key from your OpenAI account / API Keys ([https://platform.openai.com/account/api-keys OpenAI API keys]).&lt;br /&gt;
#* OpenAI organization ID: You can get it from  your OpenAI account / Organization settings page ([https://platform.openai.com/account/org-settings OpenAI account]).&lt;br /&gt;
#* Set site-wide rate limit: Limit the number of requests that the OpenAI API provider can receive across the entire site every hour. &lt;br /&gt;
#* Maximum number of site-wide requests can be configured after enable “Set site-wide rate limit”&lt;br /&gt;
#* Set user rate limit&lt;br /&gt;
#* Maximum number of requests per user can be configured after enable “Set user rate limit”&lt;br /&gt;
# In the “Actions” area enable all actions by clicking on their “Enabled” toggle.&lt;br /&gt;
.[[File:OpenAI.jpg|none|thumb|600x600px|OpenAI Dashboard]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Configuring OpenAI API provider actions====&lt;br /&gt;
[[File:OpenAI Actions.png|none|thumb|600x600px|OpenAI Actions]]&lt;br /&gt;
Access to the Settings link on each action to configure them. &lt;br /&gt;
&lt;br /&gt;
=====  Generate text: =====&lt;br /&gt;
You can configure the following settings:  &lt;br /&gt;
&lt;br /&gt;
*AI model: OpenAI API is powered by a diverse set of models with different capabilities and price points. There is more information about OpenAI models in the following link https://platform.openai.com/docs/models   As default is set to “GPT-4o” but it can be change for any other compatible model, see your settings organization limits for more information (https://platform.openai.com/settings/organization/limits) &lt;br /&gt;
&lt;br /&gt;
*API endpoint. Please ensure your API endpoint is compatible with your Model, see more information in the following link https://platform.openai.com/docs/models/model-endpoint-compatibility &lt;br /&gt;
&lt;br /&gt;
*System instruction: There are some system instructions as default, but this can be adapted to your needs.&lt;br /&gt;
&lt;br /&gt;
=====  Summarise text: =====&lt;br /&gt;
The required configuration is the same as for the Generate text action.  &lt;br /&gt;
&lt;br /&gt;
=====  Generate image: =====&lt;br /&gt;
You can configure the following settings:  &lt;br /&gt;
&lt;br /&gt;
*AI model: As default is set to “dall-e-3” but it can be changed for any other image generation compatible model. See more information in the following link https://platform.openai.com/docs/models/dall-e&lt;br /&gt;
* API endpoint:  Please ensure your API endpoint is compatible with your Model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Generate text in OpenAI.png|none|thumb|600x600px|Generate text in OpenAI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we should be able to use OpenAI provider for the AI placements available in our Moodle instance: Course Assistance and HTML Text Editor Placements. Don&#039;t forget to enable and configure [[AI placements|AI Placements]] settings. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[es:Proveedor OpenAI API]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/502/en/index.php?title=AI_placements&amp;diff=149615</id>
		<title>AI placements</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/502/en/index.php?title=AI_placements&amp;diff=149615"/>
		<updated>2024-10-15T19:10:18Z</updated>

		<summary type="html">&lt;p&gt;Raortegar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AI subsystem}}&lt;br /&gt;
 {{Work in progress}}&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Placements define how and where AI actions can be used in your site. You can choose which actions are available in each placement through the settings. &lt;br /&gt;
&lt;br /&gt;
By default, all AI placements are disabled. You can enable them through the AI placements page (Go to site administration -&amp;gt; General -&amp;gt; AI -&amp;gt; AI placements).&lt;br /&gt;
[[File:AI placements.png|none|thumb|600x600px|AI placements]]&lt;br /&gt;
Please be aware that an [[AI providers|AI provider]] should be enabled and configured before using this feature otherwise an error message will be displayed when accessing each placement settings.&lt;br /&gt;
&lt;br /&gt;
=== HTML Text Editor Placement ===&lt;br /&gt;
Enable Generate Text and Generate Image actions by toggling the settings.&lt;br /&gt;
&lt;br /&gt;
Once enabled, admin can access these options in the editor by clicking the Generate AI content icon or via the Insert menu. If both actions are enabled, options for AI Generate Text and AI Generate Image will be available.&lt;br /&gt;
[[File:HTML Text editor placement.png|none|thumb|600x600px]]&lt;br /&gt;
&lt;br /&gt;
===== AI generate text: =====&lt;br /&gt;
Upon first use, users must accept the AI usage policy before the Generate Text Using AI modal is displayed, after that user can start using AI generate text tool: &lt;br /&gt;
[[File:GenerateText.png|none|thumb|600x600px]]&lt;br /&gt;
&lt;br /&gt;
===== AI generate image: =====&lt;br /&gt;
Users can generate images via the Generate AI content icon or the Insert menu.&lt;br /&gt;
[[File:Generate Image.png|none|thumb|600x600px]]&lt;br /&gt;
&lt;br /&gt;
=== Course Assistance Placement ===&lt;br /&gt;
To enable this feature access to “AI placements” click on the Course assistance placement toggle. &lt;br /&gt;
[[es:Colocaciones de IA]]&lt;/div&gt;</summary>
		<author><name>Raortegar</name></author>
	</entry>
</feed>