Skip to content

Commit

Permalink
fix: model_type change reset model_param_form
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Dec 26, 2024
1 parent 7df98e2 commit d424420
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/views/template/component/CreateModelDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ const open = (provider: Provider) => {
const list_base_model = (model_type: any, change?: boolean) => {
if (change) {
base_form_data.value.model_name = ''
base_form_data.value.model_params_form = []
}
if (providerValue.value) {
ModelApi.listBaseModel(providerValue.value.provider, model_type, base_model_loading).then(
Expand Down

0 comments on commit d424420

Please sign in to comment.