Add support for enabling/disabling individual AI providers via admin configuration UI

Created on 6 May 2025, 3 days ago

Problem/Motivation

Currently, there is no way to enable or disable configured AI providers in the system. All configured providers are treated as active once their configuration forms are filled, with no global or individual toggle to control their activation state. This limits administrative control, especially when multiple providers are configured and selectively enabling/disabling them is desirable (e.g., for testing, etc).

Steps to reproduce

  • Navigate to /admin/config/ai or /admin/config/ai/providers.
  • Observe that there is no way to enable or disable a configured provider.
  • Open a specific provider configuration page, e.g., /admin/config/ai/providers/openai or /admin/config/ai/providers/gemini.
  • Confirm that these pages also do not provide an option to enable/disable the provider.

Proposed resolution

Introduce an enable/disable checkbox for each configured provider.
Options for implementation:

  1. Provide a centralized list of all configured providers at /admin/config/ai/providers with checkboxes to enable or disable each.
  2. Alternatively, require each provider module (e.g., openai, gemini) to implement its own enable/disable toggle on its settings page (/admin/config/ai/providers/[provider]). But this does not seem to be a flexible one.
  3. The system should respect the enable/disable status when invoking a provider for tasks or inference.

Remaining tasks

TBD

User interface changes

TBD

API changes

None initially, unless we want to expose provider status via JSON: API, etc.

Data model changes

Configuration schema update to include an "enabled" boolean value for each provider.

Feature request
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