fix: tighten Gemini prompt to avoid conversational filler

This commit is contained in:
Christian Vidal Wolf
2026-04-09 11:00:12 +02:00
parent 3f3c7eb3b2
commit e773c6c9c4
+1 -1
View File
@@ -164,7 +164,7 @@ export function EditPanel({ row, rowIndex, onSave, onClose, onCaptureState }: Ed
let prompt = ''; 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 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 (field === 'longDe') {
if (formData.longEn) { if (formData.longEn) {