preserve language for titles
parent
c4a14110eb
commit
bad79bc2b2
|
@ -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) => `
|
||||||
|
|
Loading…
Reference in New Issue