Handle errors for API explorers when a provider not configured

Created on 15 April 2025, 7 days ago

Problem/Motivation

When the provider for the AI is not configured, such as the provider module is enabled for key that is not configured, then most of the API explorers do not show any user-friendly message, instead throwing an error in the console or the "Response will appear here" section of the API explorer itself.

Steps to reproduce

  • Enable a provider, say https://www.drupal.org/project/ai_provider_openai
  • Do not create a key for it
  • Go to the explorers admin/config/ai/explorers
  • Try each of the explorers
  • Observe the console errors and "Response will appear here." section on the explorer page

Following screenshot is from the Chat explorer:

Proposed resolution

Show user-friendly error or warning messages to configure the provider.

Remaining tasks

TBD

User interface changes

NA

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

AI Core module

Created by

🇮🇳India prashant.c Dharamshala

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