drupalninja / drupalai
A Drupal module for integrating AI capabilities into your website.
Installs: 156
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 5
Forks: 0
Open Issues: 2
Type:drupal-module
- dev-main
- 2.x-dev
- 2.0.0-alpha1
- 1.2.1-beta1
- 1.2.0-beta1
- 1.0.1-beta1
- 1.0.0-beta2
- 1.0.0-beta1
- dev-feature/type-hint
- dev-feature/php-recommendation
- dev-feature/small-pr
- dev-feature/test-pr
- dev-feature/ollama
- dev-feature/groq
- dev-feature/refactor-class
- dev-feature/scrape
- dev-feature/ollama-models
- dev-feature/stories-image
- dev-feature/component
- dev-feature/cleanup
- dev-feature/block-config
- dev-feature/refactor-config
This package is auto-updated.
Last update: 2024-11-17 17:48:10 UTC
README
Description
The Drupal AI module provides drush commands for generating code with AI.
Features
- Module code generation supporting multiple AI models (Gemini, ChatGPT, Claude 3, Llama 3)
- Easy-to-use CLI command(s) powered by Drush
- Simple configuration for managing prompt template(s)
Installation
-
To install with Composer run the command:
composer require drupalninja/drupalai
-
Enable the module through the Drupal admin interface or using Drush:
drush en drupalai
-
Configure the module settings under "Admin -> Configuration -> Drupal AI Settings".
- API keys required to use Gemini or ChatGPT (OpenAI)
- Prompt template can and should be configured for best results (i.e. trial and error)
- The Llama 3 expects the 'ollama' tool to be running the Llama 3 module locally.
Requirements
- Drupal 10.x
- PHP 7.4 or higher
Usage
drush ai-create-module
You will be prompted to for the following inputs:
- Which model you would like to use.
- The machine name of the module you would like to create.
- What you would like the module to do.
NOTE: This is experimental, use with caution.
License
This module is licensed under the GNU General Public License.