Name outputs from the input, engine, and LoRA keys instead of aigen_0001. Image-edit presets now store prompts, and aspect fill pads stills without stretching.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { libraryOwnerKey, publicLibrary, setLoraAlias } from '~/server/utils/library'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const body = await readBody<{ key?: unknown; alias?: unknown }>(event)
|
||||
const owner = libraryOwnerKey(event)
|
||||
await setLoraAlias(owner, String(body?.key || ''), String(body?.alias || ''))
|
||||
return publicLibrary(event)
|
||||
})
|
||||
Reference in New Issue
Block a user