After choosing a different backend, api key options disappear

Created on 7 March 2024, 9 months ago
Updated 14 April 2024, 7 months ago

Problem/Motivation

After choosing a different backend, api key options disappear

Steps to reproduce

1. Enable multiple backends.
2. Go to /admin/structure/aichat/manage/test
3. Change the backend
4. "OpenAI API key" element should display keys and there should be description, but key options and description disappear.

Proposed resolution

  1. Form element is controller by the Key module. While their issue queue does not contain ajax related issues except #2635252: Add original key to $form_state
  2. Maybe try fixing similar but different bug in the same form 🐛 After choosing a different backend, default form values could be retained Active
  3. $form_state->setRebuild();

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇱🇹Lithuania mindaugasd

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

Comments & Activities

Production build 0.71.5 2024