Make compatible with 1.1.x series of the AI module
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3524557. --> Reported by: [lpeabody](https://www.drupal.org/user/1137356) Related to !2 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Compatibility with 1.1.x series of AI module. The 1.1.x series is the new direction of the AI module and I believe the maintainers have stated there will be no BC support with the 1.0.x series.</p> <p>I ran into the following error, which is likely a hangover from implementing against the 1.0.x series.</p> <blockquote><p>Fatal error: Declaration of Drupal\ai_vdb_provider_opensearch\Plugin\VdbProvider\OpensearchProvider::vectorSearch(string $collection_name, array $vector_input, array $output_fields, mixed $filters = '', int $limit = 10, int $offset = 0, string $database = 'default'): array must be compatible with Drupal\ai\AiVdbProviderInterface::vectorSearch(string $collection_name, array $vector_input, array $output_fields, Drupal\search_api\Query\QueryInterface $query, string $filters = '', int $limit = 10, int $offset = 0, string $database = 'default'): array in /opt/drupal/web/modules/contrib/ai_vdb_provider_opensearch/src/Plugin/VdbProvider/OpensearchProvider.php on line 609</p></blockquote> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3486166](https://www.drupal.org/node/3486166)
issue