Update file OpenAIEventSubscriber.php for redirecting user to setting page when API key is not present, before it was thowing error
Compare changes
Conflict: This file was modified in both the source and target branches.
Ask someone with write access to resolve it.
@@ -6,9 +6,12 @@ namespace Drupal\openai\EventSubscriber;
@@ -6,9 +6,12 @@ namespace Drupal\openai\EventSubscriber;
@@ -33,16 +36,26 @@ final class OpenAIEventSubscriber implements EventSubscriberInterface {
@@ -33,16 +36,26 @@ final class OpenAIEventSubscriber implements EventSubscriberInterface {
$message = $this->t('You have not provided an OpenAI API key yet. This is required for its functionality to work. Please obtain an API key from <a href=":account">your OpenAI account</a> and add it to the <a href=":settings">OpenAI settings configuration here</a>.',