mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
Merge branch 'pr@main@model_embedding' of github.com:1Panel-dev/MaxKB into pr@main@model_embedding
This commit is contained in:
commit
48d6812233
|
|
@ -170,18 +170,6 @@ async function submit() {
|
|||
}
|
||||
}
|
||||
|
||||
function reEmbeddingDataset(row: any) {
|
||||
datasetApi.putReEmbeddingDataset(row.id).then(() => {
|
||||
MsgSuccess('提交成功')
|
||||
})
|
||||
}
|
||||
|
||||
function saveDataset(data: any) {
|
||||
datasetApi.putDataset(id, data, loading).then((res) => {
|
||||
MsgSuccess('保存成功')
|
||||
})
|
||||
}
|
||||
|
||||
function getDetail() {
|
||||
dataset.asyncGetDatasetDetail(id, loading).then((res: any) => {
|
||||
detail.value = res.data
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ watch(
|
|||
(value) => {
|
||||
if (value && JSON.stringify(value) !== '{}') {
|
||||
form.value.name = value.name
|
||||
form.value.desc = value.desc
|
||||
form.value.embedding_mode_id = value.embedding_mode_id
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue