From e248eb26d80abad4a72e9e80909557e8c2b6aa8e Mon Sep 17 00:00:00 2001 From: Towsty Date: Tue, 1 Sep 2026 20:18:25 -0500 Subject: [PATCH] Fix video generate 500 from a leftover promptRaw log. The pre/prompt/post split renamed the variable but one console.info still used the old name, which crashed POST /api/generate on xAIGen. Co-authored-by: Cursor --- pages/index.vue | 2 +- pages/library.vue | 2 +- server/api/generate.post.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 62cbc48..b5799bc 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -5923,7 +5923,7 @@ async function sendStillToBackup(still: Pick) { backupBusyId.value = still.id try { await $fetch(`/api/library/stills/${still.id}/backup`, { method: 'POST' }) - toast('Sent to Backup as a hidden input.') + toast('Sent to Backup') } catch (error: any) { toast(error?.data?.statusMessage || 'Could not send that still to Backup') } finally { diff --git a/pages/library.vue b/pages/library.vue index c239ad0..01e883e 100644 --- a/pages/library.vue +++ b/pages/library.vue @@ -777,7 +777,7 @@ async function sendFocusedToBackup() { backupBusy.value = true try { await $fetch(`/api/library/stills/${still.id}/backup`, { method: 'POST' }) - toast('Sent to Backup as a hidden input.') + toast('Sent to Backup') } catch (error: any) { toast(error?.data?.statusMessage || 'Could not send that still to Backup') } finally { diff --git a/server/api/generate.post.ts b/server/api/generate.post.ts index fc13b97..6a069f5 100644 --- a/server/api/generate.post.ts +++ b/server/api/generate.post.ts @@ -218,7 +218,7 @@ export default defineEventHandler(async (event) => { stillId: still?.id || '', postedStillId, workflow, - promptChars: promptRaw.length, + promptChars: promptMid.length, textToVideo }) const referenceStillIds: Array = [null, null, null, null]