Recent comments

🇵🇫French Polynesia laurentb Tahiti

Attached patch adds a new Symfony event (AiAssistantPrePromptContextEvent) to allow modules to alter the pre-prompt context before token replacement. This improves extensibility by allowing dynamic tokens.

Testing instructions:

  • Apply the patch.
  • Implement an event subscriber to inject custom tokens.
  • Verify that new tokens are available and replaced correctly in the AI Assistant prompts.
🇵🇫French Polynesia laurentb Tahiti

The issue is now resolved.

The solution was to enable the following setting in settings.php:

$settings['ai_assistant_custom_prompts'] = TRUE;

Thanks to the following issue, I realized that the AI module requires this configuration to allow custom prompts:
Issue #3499378 Add an setting that is required to set to override prompts Active

Thanks, everyone, for the help! I'm closing this ticket now. 🚀

Production build 0.71.5 2024