preserve language for titles

This commit is contained in:
Cogent Apps
2023-03-16 20:06:28 +00:00
parent c4a14110eb
commit bad79bc2b2

View File

@@ -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) => `