Skip to content

Commit fb8ae0e

Browse files
committed
Make follow‑up questions and title summarization respect conversation
language - Update the prompts for generating follow‑up questions and summarizing the conversation title to explicitly ask the model to use the language of the current conversation. - The wording is also tweaked to emphasize plain‑text, no‑markdown output. This change improves consistency across multi‑lingual chats and ensures that the assistant’s responses match the user’s language.
1 parent 1bb62cb commit fb8ae0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llamachatmanager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void ChatManager::followUpQuestions(const QString &convId,
316316
txt["type"] = "text";
317317
txt["text"] = "Generate up to five follow up questions in the context of the "
318318
"current conversation. The questions are from the user point of view. "
319-
"Only questions, no explanations. "
319+
"Only questions, no explanations. Use the language used in the conversation. "
320320
"Return the questions in the form of a JSON array as plain text strings, "
321321
"no markdown.";
322322
parts.append(txt);
@@ -442,7 +442,7 @@ void ChatManager::summarizeConversationTitle(const QString &convId,
442442
QJsonObject txt;
443443
txt["type"] = "text";
444444
txt["text"] = "Summarize the title of the conversation in a few words including one emoji. Use "
445-
"plain text, no markdown.";
445+
"the language used in the conversation. Use plain text, no markdown.";
446446
parts.append(txt);
447447
QJsonObject prompt;
448448
prompt["role"] = "user";

0 commit comments

Comments
 (0)