Allow for empty lora (no loras option) in Lora Pool

This commit is contained in:
dogatech
2026-03-11 16:15:18 -07:00
committed by pixelpaws
parent 03e1fa75c5
commit 8dd849892d
15 changed files with 170 additions and 59 deletions

View File

@@ -62,6 +62,7 @@ export function useLoraPoolApi() {
foldersExclude?: string[]
noCreditRequired?: boolean
allowSelling?: boolean
includeEmptyLora?: boolean
page?: number
pageSize?: number
}
@@ -92,6 +93,10 @@ export function useLoraPoolApi() {
urlParams.set('allow_selling_generated_content', String(params.allowSelling))
}
if (params.includeEmptyLora !== undefined) {
urlParams.set('include_empty_lora', String(params.includeEmptyLora))
}
const response = await fetch(`/api/lm/loras/list?${urlParams}`)
const data = await response.json()