mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: update model params
This commit is contained in:
parent
527a0953d8
commit
b1fc202960
|
|
@ -327,7 +327,7 @@
|
|||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<AIModeParamSettingDialog ref="AIModeParamSettingDialogRef" @refresh="refreshParam" :id="id" />
|
||||
<AIModeParamSettingDialog ref="AIModeParamSettingDialogRef" :id="id" @refresh="refreshForm" />
|
||||
<ParamSettingDialog ref="ParamSettingDialogRef" @refresh="refreshParam" />
|
||||
<AddDatasetDialog
|
||||
ref="AddDatasetDialogRef"
|
||||
|
|
@ -468,6 +468,15 @@ function refreshParam(data: any) {
|
|||
applicationForm.value.dataset_setting = data
|
||||
}
|
||||
|
||||
function refreshForm(data: any) {
|
||||
// data是一个对象 把data的值赋值给model_setting 但是是合并
|
||||
applicationForm.value.model_setting = {
|
||||
...applicationForm.value.model_setting,
|
||||
...data
|
||||
}
|
||||
console.log(applicationForm.value.model_setting)
|
||||
}
|
||||
|
||||
const openCreateModel = (provider?: Provider) => {
|
||||
if (provider && provider.provider) {
|
||||
createModelRef.value?.open(provider)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
type="primary"
|
||||
link
|
||||
@click="openAIParamSettingDialog(chat_data.model_id)"
|
||||
@refresh="refreshParam"
|
||||
@refreshForm="refreshParam"
|
||||
>
|
||||
{{ $t('views.application.applicationForm.form.paramSetting') }}
|
||||
</el-button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue