moodle-aiprovider_gemini

Gemini API Provider for Moodle

Overview

The Gemini API Provider plugin integrates Google’s Gemini AI models into Moodle’s AI framework, enabling powerful AI capabilities across your learning management system. This plugin supports text generation, image generation, and text summarization using Google’s state-of-the-art AI models.

Features

Supported AI Actions

Key Features

Installation

Prerequisites

Installation Steps

  1. Download the Plugin
  2. Install the Plugin
    • Extract the plugin to your Moodle installation’s /ai/provider/ directory
    • The final path should be: /ai/provider/aiprovider_gemini/
  3. Install via Moodle Admin
    • Log in to your Moodle site as an administrator
    • Navigate to Site administration > Notifications
    • Follow the installation prompts
  4. Configure the Plugin
    • Go to Site administration > Plugins > AI providers > Gemini API provider
    • Enter your Google AI Studio API key
    • Configure rate limiting settings as needed

Configuration

API Key Setup

  1. Get a Google AI Studio API Key
  2. Configure in Moodle
    • Navigate to Site administration > Plugins > AI providers > Gemini API provider
    • Paste your API key in the “Gemini API key” field
    • Save changes

Rate Limiting Configuration

The plugin supports two types of rate limiting:

Global Rate Limiting

User Rate Limiting

Model Configuration

Text Generation Models

Image Generation Models

Text Summarization Models

Usage

For Administrators

  1. Enable AI Features
    • Navigate to Site administration > Plugins > AI providers
    • Enable the Gemini API provider
    • Configure global settings
  2. Monitor Usage
    • Check rate limiting status in the admin interface
    • Monitor API usage through Google AI Studio dashboard

For Teachers

  1. Access AI Features
    • AI features are available in supported activities and resources
    • Look for AI-powered options in content creation tools

Troubleshooting

Common Issues

API Key Errors

Rate Limiting Issues

Model Loading Issues

Debug Information

Enable debugging in Moodle to get detailed error information:

  1. Go to Site administration > Development > Debugging
  2. Enable debugging and set appropriate levels
  3. Check the debug output for detailed error messages

Support

Getting Help

Contributing

We welcome contributions! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

This plugin is licensed under the GNU General Public License v3.0.

Credits

See Also