πŸ‡ΊπŸ‡ΈUnited States @sirkitree

Account created on 4 May 2006, about 18 years ago
  • Senior Technical Project Manager at LullabotΒ 
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States sirkitree

Can confirm that pulling the dev version worked. I used ddev composer require 'drupal/ai_interpolator_openai:^1.0@dev' rather than modify the composer.json.

πŸ‡ΊπŸ‡ΈUnited States sirkitree

I was unable to replicate this with a fresh drupal10 install using OSX, colima, ddev
```
ddev composer require 'drupal/ai_interpolator:^1.0@alpha'
ddev composer require 'drupal/openai:^1.0@beta'
ddev composer require 'drupal/ai_interpolator_openai:^1.0@alpha'
```
- modified Story content type
- added new field labeled 'Automated Summary'
- saved, saved settings on config page

No errors presented.

Note that I had not configured the module yet...

As soon as I put in my OpenAI API key and went to configure the field, I got the following error:
```
Fatal error: Declaration of Drupal\ai_interpolator_openai\OpenAiBase::generate(string $prompt, Drupal\Core\Entity\ContentEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $fieldDefinition, array $interpolatorConfig) must be compatible with Drupal\ai_interpolator\Annotation\AiInterpolatorFieldRule::generate(Drupal\Core\Entity\ContentEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $fieldDefinition, array $interpolatorConfig) in /var/www/html/web/modules/contrib/ai_interpolator_openai/src/OpenAiBase.php on line 102
```

Production build 0.69.0 2024