preserve language for titles

main
Cogent Apps 2023-03-16 20:06:28 +00:00
parent c4a14110eb
commit bad79bc2b2
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import { createChatCompletion, defaultModel } from "./openai";
import { OpenAIMessage, Chat } from "./types"; import { OpenAIMessage, Chat } from "./types";
const systemPrompt = ` 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(); `.trim();
const userPrompt = (user: string, assistant: string) => ` const userPrompt = (user: string, assistant: string) => `