From 5b8245562766a5d42226d4c7cd1d8a351e90b1b6 Mon Sep 17 00:00:00 2001 From: lotherk Date: Fri, 27 Mar 2026 09:34:00 +0000 Subject: [PATCH] refactor: rename systemPromptWithJson to systemPrompt --- backend/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 14bf828..050f706 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -401,7 +401,7 @@ CRITICAL RULES: 9. NEVER include any closing remarks, sign-offs, or follow-up offers`; const userInstructions = settings?.journalPrompt; - const systemPromptWithJson = userInstructions + const systemPrompt = userInstructions ? `${defaultPrompt}\n\n${jsonInstruction}\n\nCUSTOM USER INSTRUCTIONS:\n${userInstructions}` : `${defaultPrompt}\n\n${jsonInstruction}`; @@ -435,7 +435,7 @@ CRITICAL RULES: status: 'pending', provider, model: model, - prompt: `${systemPromptWithJson}\n\n---\n\n${userPrompt}`, + prompt: `${systemPrompt}\n\n---\n\n${userPrompt}`, request: '', response: '', }, @@ -455,7 +455,7 @@ CRITICAL RULES: console.log(`[Journal Generate] AI Provider created: ${aiProvider.provider}`); - const result = await aiProvider.generate(userPrompt, systemPromptWithJson, { jsonMode: true }); + const result = await aiProvider.generate(userPrompt, systemPrompt, { jsonMode: true }); if (!result.content) { throw new Error('No content generated from AI');