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
This commit is contained in:
Danilo Leal 2024-11-18 12:44:06 -03:00 committed by GitHub
parent f01a86c644
commit 3f905d57e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,