Skip to content

Commit 9e1b7fc

Browse files
committed
fix: model params
1 parent f43d700 commit 9e1b7fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/src/views/application/component/AIModeParamSettingDialog.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@ const reset_default = (model_id: string, application_id?: string) => {
6565
api.then((ok) => {
6666
model_form_field.value = ok.data
6767
const model_setting_data = ok.data
68-
.map((item) => ({ [item.field]: item.default_value }))
68+
.map((item) => {
69+
if (item.show_default_value === false) {
70+
return { [item.field]: undefined }
71+
} else {
72+
return { [item.field]: item.default_value }
73+
}
74+
})
6975
.reduce((x, y) => ({ ...x, ...y }), {})
7076
7177
emit('refresh', model_setting_data)

0 commit comments

Comments
 (0)