From 339230cd74a6b3e5f285059611680563182c3fe3 Mon Sep 17 00:00:00 2001 From: Daniel Avila Date: Sat, 11 Mar 2023 16:26:41 -0500 Subject: [PATCH] feat: title the chat in user's language --- api/app/titleConvo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/titleConvo.js b/api/app/titleConvo.js index f793075d98..b8b1afe319 100644 --- a/api/app/titleConvo.js +++ b/api/app/titleConvo.js @@ -13,7 +13,7 @@ const titleConvo = async ({ message, response, model }) => { content: 'You are a title-generator with one job: titling the conversation provided by a user in title case.' }, - { role: 'user', content: `In 5 words or less, summarize the conversation below with a title in title case. Don't refer to the participants of the conversation by name. Do not include punctuation or quotation marks. Your response should be in title case, exclusively containing the title. Conversation:\n\nUser: "${message}"\n\n${model}: "${response}"\n\nTitle: ` }, + { role: 'user', content: `In 5 words or less, summarize the conversation below with a title in title case. Don't refer to the participants of the conversation by name. Do not include punctuation or quotation marks. Your response should be in title case, exclusively containing the title. Title the conversation in the language the user writes in. Conversation:\n\nUser: "${message}"\n\n${model}: "${response}"\n\nTitle: ` }, ] });