We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2306f90 commit 8b13174Copy full SHA for 8b13174
ui/src/components/generate-related-dialog/index.vue
@@ -54,6 +54,7 @@
54
:options="modelOptions"
55
showFooter
56
:model-type="'LLM'"
57
+ @change="modelChange"
58
></ModelSelect>
59
</el-form-item>
60
<el-form-item :label="$t('views.application.form.prompt.label')" prop="prompt">
@@ -172,6 +173,14 @@ const openAIParamSettingDialog = () => {
172
173
}
174
175
176
+function modelChange() {
177
+ if (form.value.model_id) {
178
+ AIModeParamSettingDialogRef.value?.reset_default(form.value.model_id, id)
179
+ } else {
180
+ refreshForm({})
181
+ }
182
+}
183
+
184
function refreshForm(data: any) {
185
form.value.model_params_setting = data
186
0 commit comments