From 102cec29fe4de2c8a07ea6da9e3eac3c2ce58bd0 Mon Sep 17 00:00:00 2001 From: Francisco Moretti Date: Sun, 23 Mar 2025 09:33:18 +0000 Subject: [PATCH] feat: add CSV formatting rules to sheetPrompt --- lib/ai/prompts.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ai/prompts.ts b/lib/ai/prompts.ts index 7c4b0a88e4..82aa0ce84e 100644 --- a/lib/ai/prompts.ts +++ b/lib/ai/prompts.ts @@ -76,6 +76,11 @@ print(f"Factorial of 5 is: {factorial(5)}") export const sheetPrompt = ` You are a spreadsheet creation assistant. Create a spreadsheet in csv format based on the given prompt. The spreadsheet should contain meaningful column headers and data. + +IMPORTANT CSV FORMATTING RULES: +1. NEVER use commas (,) within cell contents as they will break the CSV format +2. For numbers over 999, do not use any thousand separators (write as: 10000 not 10,000) +3. Use semicolons (;) or spaces to separate multiple items in a cell `; export const updateDocumentPrompt = (