Undefined array key "search_similar_tags"

Created on 3 December 2024, 15 days ago

When adding a node that has entity reference (Taxonomy) fields which use the ai_interpolator_openai, this warning appear:

Warning: Undefined array key "search_similar_tags" in Drupal\ai_interpolator_openai\Plugin\AiInterPolatorFieldRules\OpenAiTaxonomy->generate() (line 168 of modules/contrib/ai_interpolator_openai/src/Plugin/AiInterpolatorFieldRules/OpenAiTaxonomy.php).

Proposed resolution

Add checking if these array keys are defined.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇯🇴Jordan yasmeensalah

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024