Fix unhandled match cases in AiModelCapability.php

Created on 15 October 2025, 22 days ago
Updated 16 October 2025, 20 days ago

I'm getting the following error in my ai provider (azure) when trying to add a chat model:

UnhandledMatchError: Unhandled match case Drupal\ai\Enum\AiModelCapability::ImageToImageUpscale in Drupal\ai\Enum\AiModelCapability->getBaseOperationType() (line 48 of modules/contrib/ai/src/Enum/AiModelCapability.php).

I think this case (and the other ones in this file) should be handled

🐛 Bug report
Status

RTBC

Version

1.2

Component

AI Core module

Created by

🇧🇪Belgium yorickdv

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024