Can't import config because of "missing" module ai_models

Created on 16 October 2024, 2 months ago

Problem/Motivation

With the most recent dev version of the AI module, I created some model configuration for a new provider. When the config is exported, a ai_models.settings.yml file is created. Drupal refuses to import that file (and other configs too), as it insist requiring ai_models extension, based on the file name, which obviously doesn't exist.

I might be that you can't have a settings.yml file on other name than the module name?

Error message:

[error] Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
Configuration ai_models.settings depends on the ai_models extension that will not be installed after import. in Drupal\Core\Config\ConfigImporter->validate() (line 823 of /var/www/html/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php).

Steps to reproduce

  • Configure and save a model for a provider
  • Export configuration
  • Try to re-import the config

Proposed resolution

Incorporate the ai_models.settings settings inside ai.settings.

Remaining tasks

* Do the implementation changes.

🐛 Bug report
Status

Active

Version

1.0

Component

AI Core module

Created by

🇫🇮Finland jhuhta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024