Add Prompt Builder page for multi-scene prompt sequences.
Name, save, and load ordered scenes on the server; assemble copyable text with a Batch-compatible double blank line between scenes.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { deletePromptSequence, listPromptSequences } from '~/server/utils/promptSequences'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const { owner } = assertLibraryOwner(event)
|
||||
const id = String(getRouterParam(event, 'id') || '')
|
||||
await deletePromptSequence(owner, id)
|
||||
return {
|
||||
ok: true,
|
||||
sequences: listPromptSequences(owner)
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user