web-ui icon indicating copy to clipboard operation
web-ui copied to clipboard

fix: correctly save and load configs in UI

Open marginal23326 opened this issue 8 months ago • 2 comments

  • Fixed saving UI configs (previously, it would only save the default configs).
  • Fixed to correctly set the model name in the UI from the config even when it's a custom one.

marginal23326 avatar Mar 29 '25 08:03 marginal23326

def save_current_config(self, *component_values): I think we do not need to input component_values to save_current_config fn and we should use components saved in config_manager, because the value of components may change during using.

vvincent1234 avatar Mar 29 '25 11:03 vvincent1234

@vvincent1234

updated the logic to use the manager's state directly; it should be alright now.

marginal23326 avatar Mar 30 '25 01:03 marginal23326