Default model dropdown does not reset when no default provider is selected

Created on 19 May 2025, 14 days ago

Problem/Motivation

When visiting the AI module settings form and leaving the “Default provider” field unselected, the “Default model” dropdown may still show an old or pre-selected value. This creates a confusing user experience and may result in unexpected behavior.

Steps to reproduce

1. Go to "/admin/config/ai/settings".
2. Do not select a value for the Default provider dropdown.
3. Observe that the Default model dropdown does not reset or display an unexpected option.
Please follow the screenshot below for reference:

Expected behavior:
If no default provider is selected, the default model dropdown should:

  • Reset to a - Select - placeholder.
  • Do not display or submit a value that doesn’t belong to the current context.

Proposed resolution

Add logic in the form builder to:

  • Set the default model select field to a - Select - placeholder when no provider is selected.
  • Optionally disable the model dropdown until a provider is chosen..

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

AI Core module

Created by

🇮🇳India Ishani Patel

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

Comments & Activities

Production build 0.71.5 2024