diff --git a/src/Desktop/RodelAgent.UI/ViewModels/Core/ChatAgentConfigViewModel/ChatAgentConfigViewModel.cs b/src/Desktop/RodelAgent.UI/ViewModels/Core/ChatAgentConfigViewModel/ChatAgentConfigViewModel.cs index aab1feff..efede1de 100644 --- a/src/Desktop/RodelAgent.UI/ViewModels/Core/ChatAgentConfigViewModel/ChatAgentConfigViewModel.cs +++ b/src/Desktop/RodelAgent.UI/ViewModels/Core/ChatAgentConfigViewModel/ChatAgentConfigViewModel.cs @@ -47,6 +47,7 @@ public void SetData(ChatAgentItemViewModel data) { IsManualClose = false; Agent = data.Data; + CurrentOptions = Agent.Options; Name = data.Name; SystemInstruction = Agent.SystemInstruction; StopSequences.Clear(); @@ -247,10 +248,7 @@ private void UpdatePresetData() Agent.Options = options; - if (FilterCharacters.Count > 0) - { - Agent.FilterCharacters = [.. FilterCharacters]; - } + Agent.FilterCharacters = [.. FilterCharacters]; } private void CheckStep()