Fix conversation summary prompt to use user query language

Co-authored-by: dartpain <15183589+dartpain@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-07-15 09:33:52 +00:00
parent a00c44386e
commit 2a4ec0cf5b

View File

@@ -213,13 +213,13 @@ def save_conversation(
"role": "assistant", "role": "assistant",
"content": "Summarise following conversation in no more than 3 " "content": "Summarise following conversation in no more than 3 "
"words, respond ONLY with the summary, use the same " "words, respond ONLY with the summary, use the same "
"language as the system", "language as the user query",
}, },
{ {
"role": "user", "role": "user",
"content": "Summarise following conversation in no more than 3 words, " "content": "Summarise following conversation in no more than 3 words, "
"respond ONLY with the summary, use the same language as the " "respond ONLY with the summary, use the same language as the "
"system \n\nUser: " + question + "\n\n" + "AI: " + response, "user query \n\nUser: " + question + "\n\n" + "AI: " + response,
}, },
] ]