Show reason for unauthorized access on AI Explorer pages (e.g., speech_to_speech_generator, translation_generator, image_classification_generator, audio_to_audio_generator)

Created on 19 May 2025, about 2 months ago

Problem/Motivation

Some AI Explorer pages like speech_to_speech_generator, translation_generator, image_classification_generator, and audio_to_audio_generator return an unauthorized access error (403) if the required provider (for example, ElevenLabs) is not installed.

It would improve the user experience if these pages displayed a clear message explaining why access is denied—for example:
“This operation requires a supported provider (e.g., ElevenLabs) to be installed and configured.”

Steps to reproduce

  1. Install the AI module along with ai_api_explorer and ai_provider_openai.
  2. Set the OpenAI API key using the Key module.
  3. Navigate to admin/config/ai/explorers.
  4. Observe that plugins like speech_to_speech_generator, translation_generator, image_classification_generator, and audio_to_audio_generator are not listed.
  5. Attempt to access any of these plugins manually via URL.(/admin/config/ai/explorers/speech_to_speech_generator)
  6. Notice the "You are not authorized to access this page" error.

Proposed resolution

Instead of showing a generic "403 Unauthorized" error, display a message such as:
"Access denied: This operation requires a supported provider (e.g., ElevenLabs) to be installed and configured."

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.1

Component

Other Submodules

Created by

🇮🇳India prabha1997

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