openeuropa/oe_ai_provider_gpt_at_ec

Enables the use of GPT@EC as provider for the AI module.

Maintainers

Package info

github.com/openeuropa/oe_ai_provider_gpt_at_ec

Type:drupal-module

pkg:composer/openeuropa/oe_ai_provider_gpt_at_ec

Transparency log

Statistics

Installs: 17

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0-alpha4 2026-06-30 14:19 UTC

This package is auto-updated.

Last update: 2026-07-23 09:12:31 UTC


README

Enables the use of GPT@EC as provider for the Drupal AI module.

Installation

Add this repository to your composer.json:

repositories: [
  {
    "type": "git",
    "url": "https://github.com/openeuropa/oe_ai_provider_gpt_at_ec"
  },
  {
    "type": "git",
    "url": "https://github.com/openeuropa/gpt-at-ec-php-client"
  },
  ...
]

then execute:

composer require openeuropa/oe_ai_provider_gpt_at_ec

Install and enable as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

In order to use the provider, you need a GPT@EC key.
Once you have obtained one, the recommended approach is to set the value as environmental variable, e.g. KEY_AI_GPT_AT_EC.

Log in as a user with administrative rights, and create a new key in Drupal by visiting /admin/config/system/keys/add:

  • Key name: any name easily identifiable.
  • Key type: set to Authentication.
  • Key provider: select Environment.
  • Environment variable: enter the variable name, e.g. as above KEY_AI_GPT_AT_EC.

Save the new key. Now visit /admin/config/ai/providers/gpt-at-ec. Select the key previously created and save.
If the key was valid, you should see a success message and a list of models, for which you can check the quota consumption.

Now you can use GPT@EC as provider for any AI module functionality.

Development

Inside the cloned project run:

# Fire up the Docker containers.
ddev start
# Install the PHP dependencies.
ddev poser
# Symlink the module inside "web/modules/custom".
ddev symlink-project
# Install Drupal and enable the module.
ddev install
# Run this if you want to use the eslint command.
ddev exec "cd web/core && yarn install"