Issue #3469178 by marcus_johansson: Add provider and model feature flags for filtering
See ticket https://www.drupal.org/project/ai/issues/3469178
This makes it possible to:
- List all models with specific features -
$provider->getConfiguredModels('chat', [AiModelCapability::ChatWithImageVision]);
- Check if a provider has specific features -
$provider->supportsCapability(AiProviderCapability::StreamChatOutput);
- Also fixes the helper method on the provider plugin for this.
Note that this makes breaking changes to the ai provider interface, so we need to contact the person that does the Gemini provider, if this will be in the next release.