![]() |
8 months ago | |
---|---|---|
.. | ||
Entity | 3 years ago | |
lang | 8 months ago | |
src | 8 months ago | |
tool | 8 months ago | |
AiHelperPlugin.php | 8 months ago | |
README.md | 8 months ago | |
install.php | ||
plugin.php | ||
uninstall.php |
README.md
AI Helper Plugin
Version 1.2
This plugin is designed to integrate AI functionality into Chamilo, providing tools for generating educational content, such as quizzes or learning paths, using AI providers like OpenAI or DeepSeek.
Overview
The AI Helper plugin integrates into parts of the Chamilo platform that are most useful to teachers/trainers or learners. It allows pre-generating content, letting teachers/trainers review it before publishing.
Currently, this plugin is integrated into:
- Exercises: In the Aiken import form, with options to generate questions using OpenAI or DeepSeek.
- Learnpaths: Option to create structured learning paths with OpenAI or DeepSeek.
Supported AI Providers
OpenAI/ChatGPT
The plugin, created in early 2023, supports OpenAI's ChatGPT API.
- Setup:
- Create an account at OpenAI (or login if you already have one).
- Generate a secret key at API Keys.
- Click "Create new secret key", copy the key, and paste it into the "API key" field in the plugin configuration.
DeepSeek
DeepSeek is an alternative Open Source AI provider.
- Setup:
- Create an account at DeepSeek (or login if you already have one).
- Generate an API key at API Keys.
- Click "Create new API key", copy the key, and paste it into the "API key" field in the plugin configuration.
Features
- Generate quizzes in the Aiken format using AI.
- Create structured learning paths with AI assistance.
- Support for multiple AI providers, enabling easy switching between OpenAI and DeepSeek.
- Tracks API requests for monitoring usage and limits.
Database Requirements
No additional database changes are required for v1.2.
The existing table plugin_ai_helper_requests
is sufficient for tracking requests from both OpenAI and DeepSeek.
If you're updating from v1.0, ensure the following table exists:
CREATE TABLE plugin_ai_helper_requests (
id int(11) NOT NULL AUTO_INCREMENT,
user_id int(11) NOT NULL,
tool_name varchar(255) COLLATE utf8_unicode_ci NOT NULL,
requested_at datetime DEFAULT NULL,
request_text varchar(255) COLLATE utf8_unicode_ci NOT NULL,
prompt_tokens int(11) NOT NULL,
completion_tokens int(11) NOT NULL,
total_tokens int(11) NOT NULL,
PRIMARY KEY (id)
) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB;
If you got this update through Git, you will also need to run composer install
to update the autoload mechanism.