- Issue created by @marcus_johansson
- π©πͺGermany marcus_johansson
I also added some new documentation for all things recipes and AI module.
- π©πͺGermany marcus_johansson
I have discussed this with @thejimbirch and @phenaproxima and there is not clear solution to this - this is obviously a workaround, so I will not merge this until we have a good solution in recipes/drupal core for this or they confirm that there will not be a solution for recipes.
- Status changed to Needs review
about 1 month ago 8:45am 28 August 2025 - π¨πSwitzerland dan2k3k4 Zurich
Read through the MR, I like the idea and agree that we do need a way to check for a provider being set up and/or the different models being set up.
One thing that we're thinking about for the amazee.ai provider is to have a hidden feature flag, something like "redirect_to_auth_if_not_setup" which would do as described, redirect the user (check has access to configure the provider) to the provider settings page after login.
In the sense that if you install the module via a recipe, and then boot up the site, you would get redirected (as admin) to the provider settings page to login/authenticate the provider.
I will try to test the MR with a modified recipe (of the ai_provider_amazeeio_recipe) to test out how it looks and feels.
- π¨πSwitzerland dan2k3k4 Zurich
Tested this with a new Drupal site.
I used this issue's MR for the AI module and grabbed the ai_provider_amazeeio_recipe then edited the recipe.yml to include a check for the provider.
Test Steps
# drop the DB drush sql-drop -y # install drupal based on config, note none of the ai modules/providers are in core.extension.yml drush si --existing-config -y # test the recipe drush recipe ../recipes/ai_provider_amazeeio_recipe
For a failing test, I checked that openai was attempted to be set up with this in the recipe.yml
(note: minified recipe.yml, config.actions has other things and not just ai.settings)config: actions: ai.settings: verifySetupAi: provider_is_setup: - openai
For a passing test, I checked that amazeeio was set up with this in the recipe.yml
config: actions: ai.settings: verifySetupAi: provider_is_setup: - amazeeio