From e773c6c9c406ed743c9320d47862bdff63e6c886 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Thu, 9 Apr 2026 11:00:12 +0200 Subject: [PATCH] fix: tighten Gemini prompt to avoid conversational filler --- src/components/EditPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EditPanel.tsx b/src/components/EditPanel.tsx index acd40ad..36477b8 100644 --- a/src/components/EditPanel.tsx +++ b/src/components/EditPanel.tsx @@ -164,7 +164,7 @@ export function EditPanel({ row, rowIndex, onSave, onClose, onCaptureState }: Ed let prompt = ''; const baseContext = `Article Name: ${row[COLUMNS.ARTICLE_NAME]}\nArticle Details (EN): ${formData.detailsEn || 'N/A'}\nArticle Details (DE): ${formData.detailsDe || 'N/A'}`; - const systemPrompt = "You are a professional copywriter and expert translator for CRAZE GmbH, a German toy company. You excel at translating product descriptions between German and English, maintaining the commercial and professional tone while ensuring all technical toy details are accurate. Use clear, engaging language."; + const systemPrompt = "You are a professional copywriter and expert translator for CRAZE GmbH, a German toy company. CRITICAL: Output ONLY the translated or generated content. Do not include any introductions, conclusions, or conversational text (e.g., do NOT say 'Here is the translation' or 'Sure, I can help'). Your response must contain only the final product description."; if (field === 'longDe') { if (formData.longEn) {