Fix broken embeddings dialog when the lora info couldn't be fetched

This commit is contained in:
cmdr2 2023-09-15 19:09:14 +05:30
parent 9fb0ee2d1b
commit a12ed7533b

View File

@ -733,5 +733,5 @@
})()
async function getLoraKeywords(model) {
return Bucket.retrieve(`modelinfo/lora/${model}`)
.then((info) => info.keywords)
.then((info) => info ? info.keywords : [])
}