Can't import config because of "missing" module ai_models
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3481112. --> Reported by: [jhuhta](https://www.drupal.org/user/3387868) Related to !194 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>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.</p> <p>I might be that you can't have a settings.yml file on other name than the module name?</p> <p>Error message:</p> <blockquote><p>[error] Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.<br> Configuration <em class="placeholder">ai_models.settings</em> depends on the <em class="placeholder">ai_models</em> extension that will not be installed after import. in Drupal\Core\Config\ConfigImporter-&gt;validate() (line 823 of /var/www/html/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php).</p></blockquote> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ul> <li>Configure and save a model for a provider</li> <li>Export configuration</li> <li>Try to re-import the config</li> </ul> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Incorporate the ai_models.settings settings inside ai.settings.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>* Do the implementation changes.</p>
issue