Setting up the AI Image repository requires first installing the plugin, and then configuring it.
Installing the AI Image repository
Until it is available on Moodle.org you should get the plugin from the GitHub repository.
https://github.com/justinhunt/moodle-repository_aiimage
You can install using git or using a zip file.
Using GIT
If you know how to use git to install plugins. It will be something like this:
cd [path-to-moodle-respositories folder]
sudo -u www-data git clone https://github.com/justinhunt/moodle-repository_aiimage.git aiimage
Using ZIP files
1. Download the zip file from the following location
https://github.com/justinhunt/moodle-repository_aiimage/archive/refs/heads/master.zip
2. Place the plugin files in the correct location
- Using Moodle Plugins Installer
This is the recommended method. Visit your site's Site administration -> Plugins page and choose to "Install Plugins." Drag and drop the zip file you downloaded and follow the steps to install it.
- Manually place the files in the correct location -
Do this if you have access to the Moodle file system via the command line or CPanel or something like that.
Unzip the zip file and rename the resulting folder to "aiimage". (NB That folder should contain files like lib.php and version.php. Those files should not be in a subfolder beneath that point. Then upload, or move, the "aiimage" folder into the "repositories" folder on your Moodle site, to create a new folder at "repositories/aiimage."
Configuring the AI Image repository
- Navigate to the: Site administration > Notifications page in Moodle to complete the installation.
Moodle will recognize a new plugin is available and will take you through a series of pages to install it. - Configure the plugin settings by going to : Site administration > Plugins > Repositories > Manage Repositories.
There set "AI Image" to "Enabled and Visible." This will take you to the settings page.
- On the settings page you will need choose your AI provider.
If you have a Poodll account, choose "Cloud Poodll" and enter your API user and secret here.
If you have another AI provider installed that supports image generation , eg OpenAI - you can choose that.
