fix: When switching application models, the model parameters should be set to the default values of the current model (#2826)
This commit is contained in:
parent
7a3a975645
commit
43702e42b8
@ -97,6 +97,7 @@ const props = defineProps<{
|
||||
const emit = defineEmits(['update:modelValue', 'change', 'submitModel'])
|
||||
const modelValue = computed({
|
||||
set: (item) => {
|
||||
emit('change', item)
|
||||
emit('update:modelValue', item)
|
||||
},
|
||||
get: () => {
|
||||
@ -127,7 +128,6 @@ const openCreateModel = (provider?: Provider, model_type?: string) => {
|
||||
if (provider && provider.provider) {
|
||||
createModelRef.value?.open(provider, model_type)
|
||||
} else {
|
||||
console.log(model_type)
|
||||
selectProviderRef.value?.open(model_type)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user