Make compatible with 1.1.x series of the AI module

Created on 14 May 2025, 3 months ago
Updated 15 July 2025, about 1 month ago

Problem/Motivation

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.

I ran into the following error, which is likely a hangover from implementing against the 1.0.x series.

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

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States lpeabody

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024