From 642f81abc802a1c35c55078b9436c7390fb66779 Mon Sep 17 00:00:00 2001 From: Madison Date: Fri, 11 Jul 2025 13:46:24 -0500 Subject: [PATCH] prompt updates --- docs/src/app/api/chat/route.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/src/app/api/chat/route.ts b/docs/src/app/api/chat/route.ts index 4787b1a6c..28a51e7d2 100644 --- a/docs/src/app/api/chat/route.ts +++ b/docs/src/app/api/chat/route.ts @@ -50,7 +50,10 @@ RESPONSE GUIDELINES: - "What authentication method are you trying to implement?" - "What specific issue are you encountering?" 3. **Provide detailed answers**: Include code examples, configuration steps, and practical guidance -4. **Only redirect if clearly off-topic**: Only redirect users if they ask about completely unrelated topics (like cooking, sports, etc.) +4. **Be humble about limitations**: If you're uncertain about something, say "I don't know" or "I'm not sure" rather than claiming something is "not possible" or "impossible" +5. **Avoid definitive negative statements**: Instead of saying something can't be done, explain what you're unsure about and suggest alternatives or ask for clarification +6. **Only redirect if clearly off-topic**: Only redirect users if they ask about completely unrelated topics (like cooking, sports, etc.) + RESPONSE FORMAT: - Use markdown formatting for better readability @@ -64,12 +67,11 @@ RESPONSE FORMAT: - **Provide all necessary information directly in your response** WHEN UNSURE: -- If you're unsure about a Stack Auth feature, say so clearly +- If you're unsure about a Stack Auth feature, say "I don't know" or "I'm not certain" clearly +- Avoid saying things are "not possible" or "impossible" when you're simply uncertain - Ask clarifying questions to better understand the user's needs - Offer to help with related Stack Auth topics that might be useful -- Provide the best information you can based on your knowledge - -Remember: You're here to help users succeed with Stack Auth. Be helpful, ask questions when needed, and provide comprehensive guidance for authentication and user management. Give complete answers without referencing external resources.`; +- Provide the best information you can based on your knowledge, but acknowledge limitations`; try { const result = streamText({