User selected key combination are not getting preserved after saving the setting.
Describe the bug
In the IBM Natural Language Understanding settings, when users select the option to add API keys using API URL + API KEY and save the settings, it unexpectedly displays a different combination of keys, such as API URL + API USERNAME + API PASSWORD. This discrepancy creates confusion for users, as it incorrectly appears as if they have added an API USERNAME, even though they intended to use only the API URL and API KEY.
Expected Behavior: The settings should accurately reflect the user's choice and only display the selected API URL + API KEY combination, without any reference to API USERNAME.
Steps to Reproduce
Steps to Reproduce:
- Navigate to IBM Natural Language Understanding settings.
- Choose the option to add AI keys using API URL + API KEY.
- Save the settings.
- Observe that the saved configuration displays API URL + API USERNAME + API PW.
Screenshots, screen recording, code snippet
| User Selected Combination | Combination After Saving |
|---|---|
Detailed Explanation:
https://github.com/10up/classifai/assets/6384299/0ad46b74-bf7d-4129-8549-f3fc383d7664
Environment information
No response
WordPress information
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct