diff --git a/supabase/functions/llm-pipeline/index.ts b/supabase/functions/llm-pipeline/index.ts index 84f55bf..ee26d2f 100644 --- a/supabase/functions/llm-pipeline/index.ts +++ b/supabase/functions/llm-pipeline/index.ts @@ -61,7 +61,7 @@ async function extractMemories(controller, messages, doc, user: User, allTags, r const response = await openai.chat.completions.create({ model: 'gpt-4.1', temperature: 0.1, - max_completion_tokens: 50000, + max_completion_tokens: 32000, messages: [ { role: 'system', content: system_prompt }, ...messages, diff --git a/supabase/functions/llm-pipeline/prompts.xml b/supabase/functions/llm-pipeline/prompts.xml index 7081d26..ff5f13e 100644 --- a/supabase/functions/llm-pipeline/prompts.xml +++ b/supabase/functions/llm-pipeline/prompts.xml @@ -28,7 +28,7 @@ • Use **bold** sparingly for emphasis on key words or phrases • Use *italics* for subtle emphasis or inner thoughts • Use simple bullet points (•) or numbered lists when listing things - • NEVER use em dashes (—) for parenthetical asides or lists + • NEVER use em dashes (—) • NEVER use headings (##, ###) unless organizing a long technical response • Use `code` only for actual code or technical terms • Keep it natural and human, avoid the polished, structured AI writing style