From 3abcf52f0dac543a4ab58c7462718df1d4e25ebf Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 26 Sep 2024 21:55:19 +1200 Subject: [PATCH] adjust generateTitle system prompt (#190) --- src/Ai.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Ai.ts b/src/Ai.ts index 76d9d2a..92b1315 100644 --- a/src/Ai.ts +++ b/src/Ai.ts @@ -20,7 +20,9 @@ const make = Effect.gen(function* () { const generateTitle = (prompt: string) => completions.create.pipe( - AiInput.provideSystem("Create a short title summarizing the message."), + AiInput.provideSystem( + "Create a short title summarizing the message. Do not include markdown in the title.", + ), AiInput.provide(Str.truncateWords(prompt, 500)), Effect.provideService(OpenAiCompletions.OpenAiConfig, { temperature: 0.25,