From 82d3fcdf4b97566357633801df047027240aa286 Mon Sep 17 00:00:00 2001 From: Roy Williams Date: Wed, 2 Oct 2024 09:29:11 -0400 Subject: [PATCH] Tweak assistant prompt to only fix diagnostic issues when requested to do so (#18596) Release Notes: - Assistant: Make the model less likely to incorporate diagnostic information when not requested to fix any issues. ![CleanShot 2024-10-01 at 13 44 08](https://github.com/user-attachments/assets/f0e9a132-6cac-4dc6-889f-467e59ec8bbc) --- assets/prompts/content_prompt.hbs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/prompts/content_prompt.hbs b/assets/prompts/content_prompt.hbs index e944e230f5..c029f84b24 100644 --- a/assets/prompts/content_prompt.hbs +++ b/assets/prompts/content_prompt.hbs @@ -50,6 +50,9 @@ And here's the section to rewrite based on that prompt again for reference: {{#if diagnostic_errors}} {{#each diagnostic_errors}} + +Below are the diagnostic errors visible to the user. If the user requests problems to be fixed, use this information, but do not try to fix these errors if the user hasn't asked you to. + {{line_number}} {{error_message}}