Skip to content

Commit 43702e4

Browse files
authored
fix: When switching application models, the model parameters should be set to the default values of the current model (#2826)
1 parent 7a3a975 commit 43702e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/model-select/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ const props = defineProps<{
9797
const emit = defineEmits(['update:modelValue', 'change', 'submitModel'])
9898
const modelValue = computed({
9999
set: (item) => {
100+
emit('change', item)
100101
emit('update:modelValue', item)
101102
},
102103
get: () => {
@@ -127,7 +128,6 @@ const openCreateModel = (provider?: Provider, model_type?: string) => {
127128
if (provider && provider.provider) {
128129
createModelRef.value?.open(provider, model_type)
129130
} else {
130-
console.log(model_type)
131131
selectProviderRef.value?.open(model_type)
132132
}
133133
}

0 commit comments

Comments
 (0)