mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-07 01:56:53 +00:00
fix(channels): avoid expanding advanced settings for model mapping
- remove model mapping from advanced settings error detection so visible model configuration errors do not expand the advanced panel. - update the edit-time advanced settings auto-expand check to only depend on fields actually rendered in the advanced section. - add regression coverage to verify model_mapping errors are not classified as advanced settings errors.
This commit is contained in:
@@ -30,7 +30,6 @@ const ADVANCED_SETTINGS_FIELDS = new Set<FieldPath<ChannelFormValues>>([
|
||||
'auto_ban',
|
||||
'tag',
|
||||
'remark',
|
||||
'model_mapping',
|
||||
'param_override',
|
||||
'header_override',
|
||||
'status_code_mapping',
|
||||
|
||||
Reference in New Issue
Block a user