You need to select an AI Provider. - Error when trying to ask the question

Created on 26 June 2025, about 2 months ago

Problem/Motivation

It seems like something in the AI Module has changed or something because the Gutenberg AI module suddenly stopped working:

Even though I set the AI provider:

Must be something that the AI API has changed, I know they keep making changes all the time:

    $provider_model = $ai_settings->get('provider_model');
    $ai_provider = $ai_settings->get('ai_provider');

    if (!$ai_provider) {
      $error = $this->t("You need to select an AI Provider.");
      $this->logger->error($error);
      $response = new ResourceResponse($error);

      return $response;
    }

Steps to reproduce

Install the Gutenberg AI module, add an AI model and try

Proposed resolution

Spot the bug and fix it

Remaining tasks

Testing and more testing

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada danrod Ottawa

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

Comments & Activities

Production build 0.71.5 2024