From bad79bc2b29a082b1fef7f75492915938021e4f0 Mon Sep 17 00:00:00 2001 From: Cogent Apps Date: Thu, 16 Mar 2023 20:06:28 +0000 Subject: [PATCH] preserve language for titles --- app/src/titles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/titles.ts b/app/src/titles.ts index 0f7143e..3ae6618 100644 --- a/app/src/titles.ts +++ b/app/src/titles.ts @@ -2,7 +2,7 @@ import { createChatCompletion, defaultModel } from "./openai"; import { OpenAIMessage, Chat } from "./types"; const systemPrompt = ` -Please read the following exchange and write a short, concise title describing the topic. +Please read the following exchange and write a short, concise title describing the topic (in the user's language). `.trim(); const userPrompt = (user: string, assistant: string) => `