Install
From the Magento root, run these commands as the filesystem owner. Install the metapackage from your configured Composer repository, then check the connection.
Add the package
- Run
composer require arlanix/ai-assistant. - Run
bin/magento setup:upgrade. - In production mode, run
bin/magento setup:di:compile. - In production mode, run
bin/magento setup:static-content:deploywith your deployment's locales. - Run
bin/magento cache:flush.
Check cron
Make sure your deployment runs Magento cron. The following jobs use the default cron group.
| Job | Schedule | What it cleans |
|---|---|---|
arlanix_ai_usage_expire |
*/5 * * * * |
Marks stale requests as timed out. Their reservations still count toward the applicable limits. |
arlanix_ai_usage_cleanup |
40 3 * * * |
Removes old usage entries and budget counters. |
arlanix_ai_history_cleanup |
50 3 * * * |
Removes expired chats, actions, personal-data mappings and temporary files. |
arlanix_ai_debug_log_cleanup |
20 4 * * * |
Removes debug entries past retention. |
Verify a model call
- Configure the provider in the admin.
- Run
bin/magento arlanix:ai:pingto send a short request using the configured model and key.
If the command fails, see Troubleshooting.
Remove the package
- Make a backup of the database and any assistant records you need to keep.
- Run
composer remove arlanix/ai-assistant. - Run
bin/magento setup:upgrade. - In production mode, repeat the compilation step.
- In production mode, repeat the static content deployment step.
- Run
bin/magento cache:flush.