Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

This is the first OpenAI module or connector published (First version published on 06-Jan,2023) in drupal.org. This is a very lightweight and simple OpenAI/ChatGPT module which has the below 3 features along with the configuration to choose either of GPT-3.5, GPT-4 or GPT-4o mini as per your needs.

  1. Act as a content generator
  2. Act as a content translator
  3. Act as a content assistance tool like creating images from text, extracting SEO keywords from content etc.

Act as a Content Generator:
It will add a link on the content add and edit page. On clicking this link,
it will open a popup which will provide access to the ChatGPT content search.
Content creators can copy the article from the popup and can create a new
content with it. This will be highly beneficial to the content creators
and editors as they will be able to generate content instantly with ChatGPT
AI on the content creation page itself.

Act as a Content Translator:
It will show a "Translate using ChatGPT" on the content "Translate" tab against
each enabled languages if translation is not present for that language.
On clicking this link it will fetch the original content and will translate
it using ChatGPT service. But there is a limitation, OpenAI will not be able
to provide you translation with HTML and styling. It will be a flat text translation,
on top of which we can add the styling manually.

Act as a Content Assistance Tool:
This will add a new tab called "OpenAI Content Assistance Tool" in the
content admin page (admin/content) and will give you give you different options
like creating images from text, extracting SEO keywords from a content etc.

The module has two parts:

  1. ChatGPT API Configuration page - A "ChatGPT API Settings" link will appear on the Admin->Configuration page from where you can update the API endpoint, access token and other required information to make the API Call.
  2. ChatGPT Content Search link on the content add and edit page.

Supported Versions - Drupal 9 and 10
ChatGPT API Information - https://beta.openai.com/docs/api-reference/completions, please go through README.md file for detailed information.

** Important Info for local projects** - ChatGPT will not allow your system to make API request if the site is not SSL enabled. So in order to make it work with your local project setup, you can download the cacert.pem file from here - https://curl.se/docs/caextract.html. Then create a 'certificates' folder inside your wamp directory and place the cacert file inside the folder. Now you can edit your php.ini file and provide the cacert.pem file path for the "curl.cainfo" option. This will allow your local project also to make secure cURL call.

Users are solely responsible for ensuring that AI-generated content adhere to the OpenAI Terms and Policies.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
15
Tracked since
Jan 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
2.1.5 Stable Jul 24, 2024
2.1.4 Stable Jul 5, 2023
2.1.3 Stable May 14, 2023
2.1.2 Stable Apr 23, 2023
2.1.1 Stable Mar 5, 2023
2.1.0 Stable Mar 5, 2023
2.0.x-dev Dev Mar 4, 2023
2.0.0 Stable Feb 27, 2023
1.0.2 Stable Feb 19, 2023
1.0.1 Stable Jan 30, 2023
1.0.0 Stable Jan 29, 2023
1.0.1-rc1 Pre-release Jan 25, 2023
1.0.0-rc1 Pre-release Jan 25, 2023
1.0.1-beta1 Pre-release Jan 15, 2023
1.0.0-beta1 Pre-release Jan 14, 2023