I found an issue in the Admin Panel when trying to add new entries under Configuration → Model specs → List.
Admin Panel tag: librechat-admin-panel:e1aa21343e0570ffb75ea5575cee802ca4281853
Librechat tag: v0.8.6
The issue appears in two related scenarios:
- When editing the Base configuration, clicking Add entry initially creates a new item and the counter changes from 4/4 to 5/5, but after entering the Name field and moving to the Label field, the list goes back to 4/4. After saving, the new entry does not get appended to the list. Instead, it overwrites the existing entry at position 0.
- When adding a modelSpecs entry for a specific AD group, the configuration seems to be saved to MongoDB, and the main LibreChat UI reacts to this change. However, the saved changes are not visible correctly in the Admin Panel UI after saving. Additionally, the main LibreChat UI can fail with:
Error Message:
x is not iterable
Steps to reproduce
Scenario 1: Base configuration
- Open the Admin Panel.
- Go to Configuration.
- Select Base configuration from the dropdown.
- Open the Model specs tab.
- Under Model specs → List, click Add entry.
- The list counter changes from 4/4 to 5/5.
- Enter a value in the Name field, for example:
TEST1
- Move focus to the Label field.
- The list counter changes back from 5/5 to 4/4.
- Save the configuration.
Actual behavior
The newly added entry is not appended to the list.
Instead, after saving, the first existing model spec entry at index 0 is overwritten by the new entry.
For example, before adding the new entry, the first item was:
smart-assistant
smart-assistantPokaż więcej wierszy
After adding and saving TEST1, the first item becomes:
TEST1
The total number of list entries remains 4/4, so the new item replaces the first existing item instead of being added as a new one.
Scenario 2: Group-specific configuration
The second issue happens when setting a model spec override for a specific AD group.
Steps to reproduce
- Open the Admin Panel.
- Go to Configuration.
- Select a specific AD group from the configuration dropdown, for example:
AG-Librechat-Admin
- Open the Model specs tab.
- Add a new entry under Model specs → List.
- Fill in fields such as:
- Save the configuration.
- Reopen or refresh the Admin Panel configuration view for the same group
Actual behavior
The change appears to be saved in MongoDB, but it is not rendered correctly in the Admin Panel UI after saving.
The following document is created in the MongoDB config collection:
{
"_id": "6a3253fd8d703f6da345fc78",
"principalType": "group",
"principalId": "69f078d66308f05c49270386",
"__v": 0,
"configVersion": 2,
"createdAt": "2026-06-17T07:59:57.956+00:00",
"isActive": true,
"overrides": {
"modelSpecs": {
"list": {
"0": {
"name": "TEST",
"group": "Agents"
}
}
}
},
"principalModel": "Group",
"priority": 20,
"updatedAt": "2026-06-17T08:01:30.972+00:00"
}
This looks like modelSpecs.list is being saved as an object with numeric keys:
"list": {
"0": {
"name": "TEST",
"group": "Agents"
}
}
instead of an array, for example:
"list": [
{
"name": "TEST",
"group": "Agents"
}
]
This may explain why the main LibreChat UI fails with x is not iterable, and why the Admin Panel UI does not render the saved group-specific override correctly.
Expected behavior
When saving modelSpecs.list for a group-specific configuration:
- the value should be saved in a structure that both the Admin Panel and the main LibreChat UI can read correctly;
- the saved model spec should be visible in the Admin Panel UI after saving or refreshing;
- the main LibreChat UI should not fail with x is not iterable;
- the group-specific override should not corrupt or reshape the modelSpecs.list structure.
Impact
This makes it difficult or impossible to safely add new modelSpecs entries from the Admin Panel.
For Base configuration, adding a new model spec can overwrite an existing entry.
For group-specific configuration, saved overrides are not displayed correctly in the Admin Panel UI and may cause the main LibreChat UI to fail with x is not iterable.
I found an issue in the Admin Panel when trying to add new entries under Configuration → Model specs → List.
Admin Panel tag: librechat-admin-panel:e1aa21343e0570ffb75ea5575cee802ca4281853
Librechat tag: v0.8.6
The issue appears in two related scenarios:
Steps to reproduce
Scenario 1: Base configuration
TEST1Actual behavior
The newly added entry is not appended to the list.
Instead, after saving, the first existing model spec entry at index 0 is overwritten by the new entry.
For example, before adding the new entry, the first item was:
smart-assistantsmart-assistantPokaż więcej wierszy
After adding and saving TEST1, the first item becomes:
TEST1The total number of list entries remains 4/4, so the new item replaces the first existing item instead of being added as a new one.
Scenario 2: Group-specific configuration
The second issue happens when setting a model spec override for a specific AD group.
Steps to reproduce
AG-Librechat-AdminActual behavior
The change appears to be saved in MongoDB, but it is not rendered correctly in the Admin Panel UI after saving.
The following document is created in the MongoDB config collection:
This looks like modelSpecs.list is being saved as an object with numeric keys:
instead of an array, for example:
This may explain why the main LibreChat UI fails with x is not iterable, and why the Admin Panel UI does not render the saved group-specific override correctly.
Expected behavior
When saving modelSpecs.list for a group-specific configuration:
Impact
This makes it difficult or impossible to safely add new modelSpecs entries from the Admin Panel.
For Base configuration, adding a new model spec can overwrite an existing entry.
For group-specific configuration, saved overrides are not displayed correctly in the Admin Panel UI and may cause the main LibreChat UI to fail with x is not iterable.