WSOD when saving an assistant with an invalid model

Created on 6 February 2025, 5 months ago

Problem/Motivation

I've got a site with the AWS Bedrock provider where my key doesn't have access to list models, so I get not list of models (probably should have a separate issue for handling that were models can be configured without that permission...).

Saving the AI Assistant form results in a WSOD:

TypeError: Cannot assign null to property Drupal\ai_assistant_api\Entity\AiAssistant::$llm_model of type string in Drupal\Core\Config\Entity\ConfigEntityBase->set() (line 173 of core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

AI Assistants API

Created by

🇬🇧United Kingdom andrewbelcher

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