From 3f905d57e5f7a6ddc020bd0052424356314471ad Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:44:06 -0300 Subject: [PATCH] assistant: Adjust title summarization prompt (#20822) Meant to avoid the excessive use of "Here's a concise 3-7 word title..." and "Title:" instances we've been seeing lately. Follow up to: https://github.com/zed-industries/zed/pull/19530 Release Notes: - Improve prompt for generating title summaries, avoiding preambles --- crates/assistant/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/assistant/src/context.rs b/crates/assistant/src/context.rs index 807d03ea5f..d6f0a48868 100644 --- a/crates/assistant/src/context.rs +++ b/crates/assistant/src/context.rs @@ -2891,7 +2891,7 @@ impl Context { request.messages.push(LanguageModelRequestMessage { role: Role::User, content: vec![ - "Generate a concise 3-7 word title for this conversation, omitting punctuation" + "Generate a concise 3-7 word title for this conversation, omitting punctuation. Go straight to the title, without any preamble and prefix like `Here's a concise suggestion:...` or `Title:`" .into(), ], cache: false,