Add sidecar Qwen VL prompt recommend, fix queued shot bursts, and leave unused MiniMax identity slots empty.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { createPromptPreset, listPromptPresets } from '~/server/utils/promptPresets'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const body = await readBody<{ name?: string; systemPrompt?: string; description?: string }>(event).catch(() => ({}))
|
||||
const owner = libraryOwnerKey(event)
|
||||
const created = await createPromptPreset(owner, {
|
||||
name: body.name || '',
|
||||
systemPrompt: body.systemPrompt || '',
|
||||
description: body.description
|
||||
})
|
||||
return {
|
||||
preset: created,
|
||||
presets: listPromptPresets(owner)
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user